From b7dd95b0dddd76d1444b6927eedc81fa022032e5 Mon Sep 17 00:00:00 2001 From: Toon Verstraelen Date: Fri, 3 Apr 2026 16:05:44 +0200 Subject: [PATCH 1/3] Target oldest and newest supported Python version in tests --- .github/workflows/pytest.yaml | 4 ++-- pyproject.toml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml index 9ddff18..ef0c8fa 100644 --- a/.github/workflows/pytest.yaml +++ b/.github/workflows/pytest.yaml @@ -14,7 +14,7 @@ jobs: tests: strategy: matrix: - python-version: ["3.11", "3.12"] + python-version: ["3.10", "3.14"] runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v4 @@ -23,7 +23,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install oldest versions of supported dependencies - if: ${{ matrix.python-version == '3.11'}} + if: ${{ matrix.python-version == '3.10'}} run: pip install -r .github/requirements-old.txt - name: Install development version run: pip install -e .[dev] diff --git a/pyproject.toml b/pyproject.toml index 6a9799b..9e5b10c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ authors = [ description = "Minimalistic atomic DFT code." readme = "README.md" license = "GPL-3.0-or-later" -requires-python = ">=3.11" +requires-python = ">=3.10" classifiers = [ "Environment :: Console", "Intended Audience :: Education", @@ -47,7 +47,7 @@ addopts = "-vv -W error --cov=src/tinydft --cov-report=term-missing -n auto" [tool.ruff] line-length = 100 -target-version = "py311" +target-version = "py310" [tool.ruff.lint] select = [ From 914441bf5cadf5c2168bd5173c546eb282a5cde0 Mon Sep 17 00:00:00 2001 From: Toon Verstraelen Date: Fri, 3 Apr 2026 16:10:54 +0200 Subject: [PATCH 2/3] Lower NumPy dependency --- .github/requirements-old.txt | 2 +- pyproject.toml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/requirements-old.txt b/.github/requirements-old.txt index fd784ba..563fa4c 100644 --- a/.github/requirements-old.txt +++ b/.github/requirements-old.txt @@ -1,5 +1,5 @@ # Ensure changes to these dependencies are reflected in pyproject.toml -numpy==2.3.1 +numpy==2.2.6 scipy==1.16.0 matplotlib==3.6.3 autograd==1.8.0 diff --git a/pyproject.toml b/pyproject.toml index 9e5b10c..f67c6d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,12 +17,18 @@ classifiers = [ "Operating System :: POSIX", "Operating System :: MacOS", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: Scientific/Engineering", "Topic :: Education :: Computer Aided Instruction (CAI)", ] dependencies = [ # Ensure changes to these dependencies are reflected in .github/requirements-old.txt - "numpy>=2.3.1", + "numpy>=2.2.6", "scipy>=1.16.0", "matplotlib>=3.6.3", "autograd>=1.8.0", From 564a95d34c70e3058be8bb121272c3013ab468aa Mon Sep 17 00:00:00 2001 From: Toon Verstraelen Date: Fri, 3 Apr 2026 16:12:36 +0200 Subject: [PATCH 3/3] Lower SciPy dependency --- .github/requirements-old.txt | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/requirements-old.txt b/.github/requirements-old.txt index 563fa4c..4f25cef 100644 --- a/.github/requirements-old.txt +++ b/.github/requirements-old.txt @@ -1,5 +1,5 @@ # Ensure changes to these dependencies are reflected in pyproject.toml numpy==2.2.6 -scipy==1.16.0 +scipy==1.15.3 matplotlib==3.6.3 autograd==1.8.0 diff --git a/pyproject.toml b/pyproject.toml index f67c6d4..d12490e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ classifiers = [ dependencies = [ # Ensure changes to these dependencies are reflected in .github/requirements-old.txt "numpy>=2.2.6", - "scipy>=1.16.0", + "scipy>=1.15.3", "matplotlib>=3.6.3", "autograd>=1.8.0", ]