diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fdf395f45..551ae2244 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -75,7 +75,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8', '3.10', '3.11'] + python-version: ['3.8', '3.10', '3.11', '3.12'] os: [ubuntu-latest] include: - python-version: '3.9' diff --git a/pyproject.toml b/pyproject.toml index 7cd3ddd8f..ef0001c18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] [project.urls] @@ -73,8 +74,8 @@ test = [ "networkx>=2.5", "scikit-learn>=1.0", "tqdm", - # tslearn needs numba, which isn't supported for 3.11 - "tslearn>=0.5; python_version < '3.11'", + # tslearn needs numba, which isn't supported for 3.12 + "tslearn>=0.5; python_version < '3.12'", "lineax; python_version >= '3.9'", "matplotlib", ] @@ -180,14 +181,14 @@ ignore_path = ["docs/**/_autosummary", "docs/contributing.rst"] legacy_tox_ini = """ [tox] min_version = 4.0 - env_list = lint-code,py{3.8,3.9,3.10,3.11},py3.9-jax-default + env_list = lint-code,py{3.8,3.9,3.10,3.11,3.12},py3.9-jax-default skip_missing_interpreters = true [testenv] extras = test # https://github.com/google/flax/issues/3329 - py{3.9,3.10,3.11},py3.9-jax-default: neural + py{3.9,3.10,3.11,3.12},py3.9-jax-default: neural pass_env = CUDA_*,PYTEST_*,CI commands_pre = gpu: python -I -m pip install "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html