diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 81a53fe..ab35af2 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.9' - name: Install pre-commit run: | @@ -32,15 +32,15 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ['pypy-3.7', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12-dev'] + python-version: ['pypy-3.9', '3.9', '3.10', '3.11', '3.12', '3.13-dev'] os: [ubuntu-latest, macos-latest, windows-latest] - continue-on-error: ${{ matrix.python-version == '3.12-dev' }} + continue-on-error: ${{ matrix.python-version == '3.13-dev' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -54,7 +54,7 @@ jobs: - name: Report coverage if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 allgood: runs-on: ubuntu-latest @@ -70,10 +70,10 @@ jobs: if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.7' + python-version: '3.x' - name: Install build and publish tools run: | pip install build twine diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8cb7071..3da57a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,10 +23,6 @@ repos: rev: e87737140f32d3cd7c44ede75f02dcd58e55820e # frozen: 23.9.1 hooks: - id: black -- repo: https://github.com/PyCQA/docformatter - rev: dfefe062799848234b4cd60b04aa633c0608025e # frozen: v1.7.5 - hooks: - - id: docformatter - repo: https://github.com/pre-commit/pre-commit-hooks rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # frozen: v4.4.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index aa59df2..f9a1568 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ authors = [ { name = "Taneli Hukkinen", email = "hukkin@users.noreply.github.com" }, ] license = { file = "LICENSE" } -requires-python = ">=3.7" +requires-python = ">=3.9" readme = "README.md" classifiers = [ "License :: OSI Approved :: MIT License", @@ -18,10 +18,6 @@ classifiers = [ "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", @@ -56,10 +52,10 @@ xfail_strict = true legacy_tox_ini = ''' [tox] # Only run pytest envs when no args given to tox -envlist = py{37,38,39,310} +envlist = py{39,310,311,312} isolated_build = True -[testenv:py{37,38,39,310}] +[testenv:py{39,310,311,312}] description = run tests against a built package deps = -r tests/requirements.txt commands =