From 46cd3958045370f56f68faf6e12877c540419ec8 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Mon, 5 Feb 2024 23:15:53 +0000 Subject: [PATCH] add py3.12 support --- .github/workflows/test.yml | 6 +++--- CONTRIBUTING.md | 2 +- asv.conf.json | 2 +- pyproject.toml | 1 + tox.ini | 3 ++- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 11751d7c..922cd13d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,12 +42,12 @@ jobs: strategy: matrix: os: [ubuntu] - python: [3.7, 3.8, 3.9, '3.10', 3.11] + python: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12] include: - os: macos - python: 3.11 + python: 3.12 - os: windows - python: 3.11 + python: 3.12 runs-on: ${{ matrix.os }}-latest timeout-minutes: 35 defaults: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 533a8ab4..6f8f2a4e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -99,7 +99,7 @@ Note: to install all versions of the Python interpreter that are specified in [tox.ini](https://github.com/tqdm/tqdm/blob/master/tox.ini), you can use `MiniConda` to install a minimal setup. You must also ensure that each distribution has an alias to call the Python interpreter -(e.g. `python311` for Python 3.11's interpreter). +(e.g. `python312` for Python 3.12's interpreter). ### Alternative unit tests with pytest diff --git a/asv.conf.json b/asv.conf.json index 27e7a89b..6760fecb 100644 --- a/asv.conf.json +++ b/asv.conf.json @@ -6,7 +6,7 @@ "environment_type": "virtualenv", "build_command": ["PIP_NO_BUILD_ISOLATION=false python -mpip wheel --no-deps --no-index -w {build_cache_dir} ."], "show_commit_url": "https://github.com/tqdm/tqdm/commit/", - // "pythons": ["3.7", "3.11"], + // "pythons": ["3.7", "3.12"], // "conda_channels": ["conda-forge", "defaults"], "matrix": { "alive-progress": [""], diff --git a/pyproject.toml b/pyproject.toml index 6ee6d5e5..ce05eed7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,6 +58,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation", "Programming Language :: Python :: Implementation :: IronPython", diff --git a/tox.ini b/tox.ini index cd5dc1b0..2fb9e088 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist=py{37,38,39,310,311,py3}{,-tf}{,-keras}, perf, check +envlist=py{37,38,39,310,311,312,py3}{,-tf}{,-keras}, perf, check isolated_build=True [gh-actions] @@ -14,6 +14,7 @@ python= 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 pypy-3.7: pypy3 [gh-actions:env] PLATFORM=