From be866f5d9d5e5b5607bfd27b272d5dc9637a9202 Mon Sep 17 00:00:00 2001 From: Marcus Baw Date: Tue, 16 Jun 2026 15:28:11 +0100 Subject: [PATCH 1/2] Bump Python: dev image to 3.13, drop 3.9, require >=3.10 - Dockerfile: python:3.12-slim -> python:3.13-slim - docker-compose.yml: site-packages volume path 3.12 -> 3.13 - pyproject.toml: requires-python >=3.8 -> >=3.10; classifiers drop 3.9, add 3.13 - setup.py: python_requires ">3.8" -> ">=3.10"; classifiers synced with pyproject - CI test matrix: drop 3.9 (EOL Oct 2025), add 3.13 - CI publish workflow: 3.12 -> 3.13 - .binder/runtime.txt: 3.10 -> 3.12 (conservative; repo2docker support) Refs #83 --- .binder/runtime.txt | 2 +- .github/workflows/python-publish.yml | 2 +- .github/workflows/run-pytest-on-push-and-all-prs.yml | 2 +- Dockerfile | 2 +- docker-compose.yml | 2 +- pyproject.toml | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.binder/runtime.txt b/.binder/runtime.txt index f31904f..0a8325a 100755 --- a/.binder/runtime.txt +++ b/.binder/runtime.txt @@ -1 +1 @@ -python-3.10 \ No newline at end of file +python-3.12 \ No newline at end of file diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 7d84216..73e14d4 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -29,7 +29,7 @@ jobs: - name: Set up Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: "3.12" + python-version: "3.13" - name: Cache pip uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 diff --git a/.github/workflows/run-pytest-on-push-and-all-prs.yml b/.github/workflows/run-pytest-on-push-and-all-prs.yml index ba44923..886abcf 100644 --- a/.github/workflows/run-pytest-on-push-and-all-prs.yml +++ b/.github/workflows/run-pytest-on-push-and-all-prs.yml @@ -28,7 +28,7 @@ jobs: # Runs tests on multiple python versions across the range we support strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 diff --git a/Dockerfile b/Dockerfile index 1dc45d4..d0fd2ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12-slim +FROM python:3.13-slim # Environment hygiene ENV PYTHONDONTWRITEBYTECODE=1 \ diff --git a/docker-compose.yml b/docker-compose.yml index bf0312f..9ac9c66 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: # Mount the entire project directory for live development - .:/app # Prevent overwriting installed packages and cache directories - - /usr/local/lib/python3.12/site-packages + - /usr/local/lib/python3.13/site-packages - /app/.pytest_cache working_dir: /app environment: diff --git a/pyproject.toml b/pyproject.toml index 62c0f68..05f770c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ authors = [ maintainers = [ { name = "RCPCH Incubator", email = "incubator@rcpch.ac.uk" }, ] -requires-python = ">=3.8" +requires-python = ">=3.10" dependencies = [ "python-dateutil", "scipy", @@ -23,10 +23,10 @@ dependencies = [ classifiers = [ "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 3 :: Only", - "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", "Topic :: Scientific/Engineering :: Medical Science Apps.", ] From 7e598a9ba979955b7ea60b8575f8b0797922f850 Mon Sep 17 00:00:00 2001 From: Marcus Baw Date: Tue, 16 Jun 2026 15:28:11 +0100 Subject: [PATCH 2/2] incidental fix to backtick formatting --- notebooks/Quickstart.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/Quickstart.ipynb b/notebooks/Quickstart.ipynb index f8c0084..c53a1f9 100644 --- a/notebooks/Quickstart.ipynb +++ b/notebooks/Quickstart.ipynb @@ -143,7 +143,7 @@ "}\n", "```\n", "\n", - "### `measurement_calculated_values\n", + "### `measurement_calculated_values`\n", "\n", "These are the sds and centile calculations. Note that corrected and chronological results are always provided, even if the gestation is 40+0 (when they will be the same).\n", "\n", @@ -612,7 +612,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.11" + "version": "3.12.13" } }, "nbformat": 4,