From afc5271a0ce0d51a9b0fe24cfb02b45300a532eb Mon Sep 17 00:00:00 2001 From: Valentin Pratz Date: Tue, 2 Sep 2025 10:06:24 +0000 Subject: [PATCH 1/2] Enable Python 3.13 support, allow numpy 2.x --- .github/workflows/tests.yaml | 4 +--- README.md | 2 +- pyproject.toml | 5 +++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index eee02895c..47f776509 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,4 +1,3 @@ - name: Multi-Backend Tests on: @@ -16,7 +15,6 @@ defaults: run: shell: bash - jobs: test: name: Run Multi-Backend Tests @@ -24,7 +22,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ["3.10"] # we usually only need to test the oldest python version + python-version: ["3.10", "3.13"] # we usually only need to test the oldest python version backend: ["jax", "tensorflow", "torch"] runs-on: ${{ matrix.os }} diff --git a/README.md b/README.md index 04cd06f28..877d21d66 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ complex to be described analytically. ## Install -We currently support Python 3.10 to 3.12. You can install the latest stable version from PyPI using: +We currently support Python 3.10 to 3.13. You can install the latest stable version from PyPI using: ```bash pip install "bayesflow>=2.0" diff --git a/pyproject.toml b/pyproject.toml index 3aeaf1a2b..5d8a864bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,17 +17,18 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Scientific/Engineering :: Artificial Intelligence", ] description = "Amortizing Bayesian Inference With Neural Networks" readme = { file = "README.md", content-type = "text/markdown" } license = { file = "LICENSE" } -requires-python = ">= 3.10, < 3.13" +requires-python = ">= 3.10, < 3.14" dependencies = [ "keras >= 3.9", "matplotlib", - "numpy >= 1.24, <2.0", + "numpy >= 1.24", "pandas", "scipy", "seaborn", From 7feeec9c0e73ed0bce0af1ef62baf165ad42e50a Mon Sep 17 00:00:00 2001 From: Valentin Pratz Date: Tue, 2 Sep 2025 15:14:07 +0000 Subject: [PATCH 2/2] Disable Python 3.13 test again [no ci] --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 47f776509..6d5f3ae4b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -22,7 +22,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ["3.10", "3.13"] # we usually only need to test the oldest python version + python-version: ["3.10"] # we usually only need to test the oldest python version backend: ["jax", "tensorflow", "torch"] runs-on: ${{ matrix.os }}