From c2d15ddb8d5d81dfecb0010d7e723f004bcee121 Mon Sep 17 00:00:00 2001 From: HadenSmith Date: Tue, 10 Nov 2026 18:16:20 -0700 Subject: [PATCH] pynumerics: require Python 3.11 or later (3.10 reached end of life, and the test extras need 3.11); the publish matrix tests 3.11 and 3.14 --- .github/workflows/PythonPublish.yml | 2 +- README.md | 2 +- python/pynumerics/CHANGELOG.md | 2 +- python/pynumerics/README.md | 2 +- python/pynumerics/docs/getting-started.md | 2 +- python/pynumerics/pyproject.toml | 5 ++--- 6 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/PythonPublish.yml b/.github/workflows/PythonPublish.yml index c432e3c6..07b42d68 100644 --- a/.github/workflows/PythonPublish.yml +++ b/.github/workflows/PythonPublish.yml @@ -187,7 +187,7 @@ jobs: fail-fast: true matrix: os: [ ubuntu-24.04, windows-2025 ] - python: [ '3.10', '3.14' ] + python: [ '3.11', '3.14' ] defaults: run: shell: bash diff --git a/README.md b/README.md index 842bfc92..03bc8d06 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Or search for [RMC.Numerics](https://www.nuget.org/packages/RMC.Numerics/) in th ### Python -[pynumerics](python/pynumerics/README.md) ships the same `Numerics.dll` with typed Python wrappers over every Numerics area. It requires CPython 3.10 to 3.14 on Linux or Windows and the .NET 10 runtime: +[pynumerics](python/pynumerics/README.md) ships the same `Numerics.dll` with typed Python wrappers over every Numerics area. It requires CPython 3.11 to 3.14 on Linux or Windows and the .NET 10 runtime: ```bash pip install pynumerics ``` diff --git a/python/pynumerics/CHANGELOG.md b/python/pynumerics/CHANGELOG.md index a46e010a..084f7563 100644 --- a/python/pynumerics/CHANGELOG.md +++ b/python/pynumerics/CHANGELOG.md @@ -28,7 +28,7 @@ rmc-numerics" in the getting-started guide). ### Requirements -- CPython 3.10 to 3.14 on Linux or Windows. +- CPython 3.11 to 3.14 on Linux or Windows. - The .NET 10 runtime (`Microsoft.NETCore.App` 10.0). Set `DOTNET_ROOT` when .NET is not installed in the default location. - pythonnet 3.1 and NumPy 1.26 or later, installed as dependencies. diff --git a/python/pynumerics/README.md b/python/pynumerics/README.md index 16298f31..1160ff67 100644 --- a/python/pynumerics/README.md +++ b/python/pynumerics/README.md @@ -19,7 +19,7 @@ pip install pynumerics==2.3.0 ``` The 2.3.0 wheel bundles `Numerics.dll` from the RMC.Numerics 2.3.0 NuGet package. Requirements: -CPython 3.10 to 3.14 on Linux or Windows, and the .NET 10 runtime (`Microsoft.NETCore.App` 10.0). +CPython 3.11 to 3.14 on Linux or Windows, and the .NET 10 runtime (`Microsoft.NETCore.App` 10.0). Set `DOTNET_ROOT` when .NET is not installed in the default location. ```python diff --git a/python/pynumerics/docs/getting-started.md b/python/pynumerics/docs/getting-started.md index 6793196c..63d72e53 100644 --- a/python/pynumerics/docs/getting-started.md +++ b/python/pynumerics/docs/getting-started.md @@ -6,7 +6,7 @@ pip install pynumerics ``` -The wheel is pure Python and runs on CPython 3.10 to 3.14 on Linux and Windows. It bundles +The wheel is pure Python and runs on CPython 3.11 to 3.14 on Linux and Windows. It bundles `Numerics.dll` and the Roslyn C# compiler assemblies, so the one system requirement is the .NET 10 runtime (`Microsoft.NETCore.App` 10.0). Set `DOTNET_ROOT` when .NET is not installed in its default location. The Python dependencies, pythonnet and NumPy, install with the wheel. diff --git a/python/pynumerics/pyproject.toml b/python/pynumerics/pyproject.toml index 7ddb6f32..1cd3eab5 100644 --- a/python/pynumerics/pyproject.toml +++ b/python/pynumerics/pyproject.toml @@ -11,7 +11,7 @@ name = "pynumerics" dynamic = ["version"] description = "RMC.Numerics for Python: probability distributions, statistics, MCMC, optimization and numerical methods from the USACE-RMC Numerics library." readme = "README.md" -requires-python = ">=3.10,<3.15" +requires-python = ">=3.11,<3.15" license = "0BSD" license-files = ["LICENSE"] authors = [{ name = "Haden Smith", email = "cole.h.smith@usace.army.mil" }] @@ -24,7 +24,6 @@ classifiers = [ "Operating System :: POSIX :: Linux", "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", @@ -68,7 +67,7 @@ addopts = "-m 'not benchmark'" [tool.ruff] line-length = 120 -target-version = "py310" +target-version = "py311" [tool.ruff.lint] select = ["E", "F", "W", "I", "B"]