Skip to content

Commit

Permalink
Drop Python 3.8 support. Test Python 3.13 final
Browse files Browse the repository at this point in the history
  • Loading branch information
hukkin committed Oct 11, 2024
1 parent 88b9ff1 commit a7d0a0f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 32 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.11'

- name: Install pre-commit
run: |
Expand All @@ -32,18 +32,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['pypy-3.10', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13-dev']
python-version: ['pypy-3.10', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14-dev']
os: [ubuntu-latest, macos-latest, windows-latest]
continue-on-error: ${{ matrix.python-version == '3.13-dev' }}
continue-on-error: ${{ matrix.python-version == '3.14-dev' }}

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

- name: Install test deps
run: |
Expand All @@ -56,7 +55,9 @@ jobs:
- name: Report coverage
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

allgood:
runs-on: ubuntu-latest
Expand All @@ -73,7 +74,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install build and publish tools
Expand Down
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ repos:
- flake8-builtins
- flake8-comprehensions
- repo: https://github.com/PyCQA/isort
rev: dbf82f2dd09ae41d9355bcd7ab69187a19e6bf2f # frozen: 5.12.0
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3 # frozen: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 34974913abb598ee76541db1900f24fde7dd1d76 # frozen: 23.11.0
rev: c53240a7f974b3707e13eac6710542cc96a2d61a # frozen: 24.10.0
hooks:
- id: black
- repo: https://github.com/PyCQA/docformatter
rev: dfefe062799848234b4cd60b04aa633c0608025e # frozen: v1.7.5
- repo: https://github.com/hukkin/docformatter
rev: ab802050e6e96aaaf7f917fcbc333bb74e2e57f7 # frozen: v1.4.2
hooks:
- id: docformatter
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
- id: check-yaml
- repo: https://github.com/pre-commit/pygrep-hooks
Expand All @@ -36,15 +36,15 @@ repos:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- repo: https://github.com/PyCQA/flake8
rev: 10f4af6dbcf93456ba7df762278ae61ba3120dc6 # frozen: 6.1.0
rev: e43806be3607110919eff72939fda031776e885a # frozen: 7.1.1
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-builtins
- flake8-comprehensions
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 4c8a8c7d5eb892ab5a6e23e11f36dbba5874d40c # frozen: v1.7.0
rev: d4911cfb7f1010759fde68da196036feeb25b99d # frozen: v1.11.2
hooks:
- id: mypy
args: ["--scripts-are-modules"]
Expand Down
25 changes: 8 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,14 @@ authors = [
{ name = "Taneli Hukkinen", email = "[email protected]" },
]
license = { file = "LICENSE" }
requires-python = ">=3.8"
requires-python = ">=3.9"
readme = "README.md"
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down Expand Up @@ -53,18 +48,14 @@ xfail_strict = true


[tool.tox]
legacy_tox_ini = '''
[tox]
requires = ["tox>=4.21.1"]
# Only run pytest envs when no args given to tox
envlist = py{38,39,310,311,312}
isolated_build = True
[testenv:py{38,39,310,311,312}]
description = run tests
deps = -r tests/requirements.txt
commands =
pytest {posargs}
'''
env_list = ["3.9", "3.10", "3.11", "3.12", "3.13"]

[tool.tox.env_run_base]
description = "Run tests under {base_python}"
deps = ["-r tests/requirements.txt"]
commands = [["pytest", { replace = "posargs", extend = true }]]


[tool.coverage.run]
Expand Down

0 comments on commit a7d0a0f

Please sign in to comment.