Skip to content

Commit

Permalink
Set dependency to Python >= 3.10
Browse files Browse the repository at this point in the history
Numpy 2 needs this, and we depend on that. So, it's a good idea to
explicitly not support older versions instead of claiming something wrong.
  • Loading branch information
p-snft committed Nov 26, 2024
1 parent d3410d7 commit 5246204
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: "3.10"

- name: Install Python dependencies
run: pip install black flake8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.9]
python-version: ["3.10"]

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tox_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
- name: Git clone
uses: actions/checkout@v2

- name: Set up Python ${{ env.default_python || '3.9' }}
- name: Set up Python ${{ env.default_python || '3.10' }}
uses: actions/setup-python@v5
with:
python-version: "${{ env.default_python || '3.9' }}"
python-version: "${{ env.default_python || '3.10' }}"

- name: Pip cache
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tox_pytests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v1
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Utilities",
]
requires-python = ">=3.8"
requires-python = ">=3.10"
dependencies = [
"blinker",
"dill",
Expand Down
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ envlist =

[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313

[testenv]
basepython =
Expand Down Expand Up @@ -114,8 +115,8 @@ deps =
pytest-cov


[testenv:py39]
basepython = {env:TOXPYTHON:python3.9}
[testenv:py312]
basepython = {env:TOXPYTHON:python3.12}
setenv =
{[testenv]setenv}
usedevelop = true
Expand All @@ -125,8 +126,8 @@ deps =
{[testenv]deps}
pytest-cov

[testenv:py38]
basepython = {env:TOXPYTHON:python3.8}
[testenv:py313]
basepython = {env:TOXPYTHON:python3.13}
setenv =
{[testenv]setenv}
usedevelop = true
Expand Down

0 comments on commit 5246204

Please sign in to comment.