Skip to content

Commit 2a73259

Browse files
authored
Merge pull request #14 from tovrstra/py-310-314
Target oldest and newest supported Python version in tests
2 parents e58b8fc + 564a95d commit 2a73259

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/requirements-old.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Ensure changes to these dependencies are reflected in pyproject.toml
2-
numpy==2.3.1
3-
scipy==1.16.0
2+
numpy==2.2.6
3+
scipy==1.15.3
44
matplotlib==3.6.3
55
autograd==1.8.0

.github/workflows/pytest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
tests:
1515
strategy:
1616
matrix:
17-
python-version: ["3.11", "3.12"]
17+
python-version: ["3.10", "3.14"]
1818
runs-on: "ubuntu-latest"
1919
steps:
2020
- uses: actions/checkout@v4
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install oldest versions of supported dependencies
26-
if: ${{ matrix.python-version == '3.11'}}
26+
if: ${{ matrix.python-version == '3.10'}}
2727
run: pip install -r .github/requirements-old.txt
2828
- name: Install development version
2929
run: pip install -e .[dev]

pyproject.toml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,26 @@ authors = [
1010
description = "Minimalistic atomic DFT code."
1111
readme = "README.md"
1212
license = "GPL-3.0-or-later"
13-
requires-python = ">=3.11"
13+
requires-python = ">=3.10"
1414
classifiers = [
1515
"Environment :: Console",
1616
"Intended Audience :: Education",
1717
"Operating System :: POSIX",
1818
"Operating System :: MacOS",
1919
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3 :: Only",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
25+
"Programming Language :: Python :: 3.14",
2026
"Topic :: Scientific/Engineering",
2127
"Topic :: Education :: Computer Aided Instruction (CAI)",
2228
]
2329
dependencies = [
2430
# Ensure changes to these dependencies are reflected in .github/requirements-old.txt
25-
"numpy>=2.3.1",
26-
"scipy>=1.16.0",
31+
"numpy>=2.2.6",
32+
"scipy>=1.15.3",
2733
"matplotlib>=3.6.3",
2834
"autograd>=1.8.0",
2935
]
@@ -47,7 +53,7 @@ addopts = "-vv -W error --cov=src/tinydft --cov-report=term-missing -n auto"
4753

4854
[tool.ruff]
4955
line-length = 100
50-
target-version = "py311"
56+
target-version = "py310"
5157

5258
[tool.ruff.lint]
5359
select = [

0 commit comments

Comments
 (0)