From 9a2c5bc6902843eb95f78ef3709aecc40b06f834 Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Wed, 6 Aug 2025 05:19:01 +0000 Subject: [PATCH] chore: Update project configuration and ci for python version changes - Drop support for Python 2 - Drop support for Python 3.7, 3.8 is new minimum - Update tox to include newer python version and drop old ones - Update GitHub action for python version changes, use standard python setup action - Update GitHub action to use pinned action versions - Update version to 2.0.0-dev --- .github/workflows/default.yml | 30 ++++++++++-------------------- pyproject.toml | 2 +- setup.cfg | 7 +++---- tox.ini | 2 +- 4 files changed, 15 insertions(+), 26 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index b2a742a..6173a8f 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -2,19 +2,15 @@ name: Default CI/CD -on: - push: - branches: [master] - pull_request: - branches: [master] +on: push jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Python 3.x - uses: actions/setup-python@v5 + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: 3.x - name: Install dependencies @@ -30,6 +26,8 @@ jobs: strategy: matrix: include: + - os: ubuntu-latest + python-version: 3.13 - os: ubuntu-latest python-version: 3.12 - os: ubuntu-latest @@ -40,27 +38,19 @@ jobs: python-version: 3.9 - os: ubuntu-latest python-version: 3.8 - - os: ubuntu-latest - python-version: 3.7 - - os: ubuntu-latest - python-version: 2.7 # - os: macos-latest - # python-version: 3.11 - # - os: macos-latestgit push + # python-version: 3.13 + # - os: macos-latest # python-version: 3.8 - # - os: macos-latest - # python-version: 2.7 - os: windows-latest - python-version: 3.12 + python-version: 3.13 - os: windows-latest python-version: 3.8 - - os: windows-latest - python-version: 2.7 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Set up Python ${{ matrix.python-version }} - uses: LizardByte/setup-python-action@master + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/pyproject.toml b/pyproject.toml index 324fad1..4fafdd7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools >= 40.6.0"] +requires = ["setuptools >= 75.3.1"] build-backend = "setuptools.build_meta" [tool.black] diff --git a/setup.cfg b/setup.cfg index 415ee1f..900e96d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = Send2Trash -version = 1.8.3 +version = 2.0.0-dev url = https://github.com/arsenetar/send2trash project_urls = Bug Reports = https://github.com/arsenetar/send2trash/issues @@ -18,20 +18,19 @@ classifiers = Operating System :: MacOS :: MacOS X Operating System :: Microsoft :: Windows Operating System :: POSIX - Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 Programming Language :: Python :: 3.12 + Programming Language :: Python :: 3.13 Topic :: Desktop Environment :: File Managers [options] packages = find: tests_require = pytest -python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.* +python_requires = !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.* [options.packages.find] include= diff --git a/tox.ini b/tox.ini index 320d7a5..4b7b0d9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{27,34,35,36,37,38,39,310} +envlist = py{38,39,310,311,312,313} skip_missing_interpreters = True isolated_build = True