From 23f84341eb7a11ce4d38aa38776071c0fe35edca Mon Sep 17 00:00:00 2001 From: Ricardo Vieira Date: Thu, 9 Mar 2023 19:24:00 +0100 Subject: [PATCH 1/2] Skip test_polyagamma_moment if library is not installed --- tests/distributions/test_continuous.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/distributions/test_continuous.py b/tests/distributions/test_continuous.py index 3713566bdb..6ad652594b 100644 --- a/tests/distributions/test_continuous.py +++ b/tests/distributions/test_continuous.py @@ -1503,6 +1503,10 @@ def test_rice_moment(self, nu, sigma, size, expected): with pm.Model() as model: pm.Rice("x", nu=nu, sigma=sigma, size=size) + @pytest.mark.skipif( + condition=_polyagamma_not_installed, + reason="`polyagamma package is not available/installed.", + ) @pytest.mark.parametrize( "h, z, size, expected", [ From ecb6a37f4b0a0006cf68c258f5c8dbd07f0acf7c Mon Sep 17 00:00:00 2001 From: Ricardo Vieira Date: Thu, 9 Mar 2023 16:29:29 +0100 Subject: [PATCH 2/2] Add explicit support for Python 3.11 --- .github/workflows/tests.yml | 6 +++--- setup.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 306ea93232..44ce951bf0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,7 +35,7 @@ jobs: matrix: os: [ubuntu-20.04] floatx: [float64] - python-version: ["3.10"] + python-version: ["3.11"] test-subset: - | tests/test_util.py @@ -313,7 +313,7 @@ jobs: matrix: os: [ubuntu-20.04] floatx: [float64] - python-version: ["3.9"] + python-version: ["3.10"] test-subset: - tests/sampling/test_jax.py tests/sampling/test_mcmc_external.py fail-fast: false @@ -383,7 +383,7 @@ jobs: matrix: os: [windows-latest] floatx: [float32] - python-version: ["3.10"] + python-version: ["3.11"] test-subset: - tests/sampling/test_mcmc.py tests/ode/test_ode.py tests/ode/test_utils.py fail-fast: false diff --git a/setup.py b/setup.py index 98d6f7b67c..5eedc9fb4d 100755 --- a/setup.py +++ b/setup.py @@ -33,6 +33,7 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "License :: OSI Approved :: Apache Software License", "Intended Audience :: Science/Research", "Topic :: Scientific/Engineering",