From cfdbcb8e6c4d27491c880c00913f5a87921d9a94 Mon Sep 17 00:00:00 2001 From: Marvin Pfoertner Date: Fri, 25 Feb 2022 17:10:45 +0100 Subject: [PATCH 1/2] Add support for Python 3.10 --- .github/workflows/CI-build.yml | 2 +- setup.cfg | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI-build.yml b/.github/workflows/CI-build.yml index bdde8199f..e5297ee4f 100644 --- a/.github/workflows/CI-build.yml +++ b/.github/workflows/CI-build.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: platform: [ubuntu-latest, macos-latest, windows-latest] - python: ["3.8", "3.9"] + python: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v2 diff --git a/setup.cfg b/setup.cfg index e5f2ac063..1b19ce250 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,11 +34,13 @@ package_dir = # Dependencies of the project (semicolon/line-separated): install_requires = numpy>=1.20 + numpy>=1.21.3; python_version>="3.10" scipy>=1.4 + scipy>=1.8.0; python_version>="3.10" # The usage of test_requires is discouraged, see `Dependency Management` docs # tests_require = pytest; pytest-cov # Require a specific Python version, e.g. Python 2.7 or >= 3.6 -python_requires = >=3.8 +python_requires = >=3.8,<3.11 [options.packages.find] where = src @@ -52,7 +54,7 @@ exclude = # Autodiff backends jax = - jax[minimum-jaxlib]<0.3.2; platform_system!="Windows" + jax[cpu]<0.3.2; platform_system!="Windows" # Problem zoo dependencies zoo = From cb74ef6be356dbb85fc1f55909e65888a2df9137 Mon Sep 17 00:00:00 2001 From: Marvin Pfoertner Date: Sat, 26 Feb 2022 12:23:59 +0100 Subject: [PATCH 2/2] Add Python 3.10 classifier --- setup.cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 1b19ce250..22e41ec22 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,6 +22,7 @@ classifiers = Operating System :: OS Independent Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 [options] zip_safe = False @@ -65,7 +66,7 @@ zoo = # Calibration in the probabilistic linear solver pls_calib = GPy - # GPy can't be imported without matplolib. + # GPy can't be imported without matplotlib. # This is and should not be a ProbNum dependency. matplotlib