From fb660fa93c7043b4e9ffa293c769957912119db8 Mon Sep 17 00:00:00 2001 From: Will Kahn-Greene Date: Wed, 23 Oct 2024 15:51:42 -0400 Subject: [PATCH] Add support for Python 3.13 (#736) --- .github/workflows/test.yml | 2 +- CHANGES | 2 +- setup.py | 1 + tox.ini | 19 ++++++++++++++++--- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 909c6f6c..7beeb066 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "pypy3.9"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9"] os: [ubuntu-latest, macos-latest, windows-latest] steps: diff --git a/CHANGES b/CHANGES index 528e7bd2..74a5d2d4 100644 --- a/CHANGES +++ b/CHANGES @@ -13,7 +13,7 @@ None **Bug fixes** -None +* Add support for Python 3.13. (#736) Version 6.1.0 (October 6th, 2023) diff --git a/setup.py b/setup.py index 35cb6cb4..9f2e1619 100755 --- a/setup.py +++ b/setup.py @@ -67,6 +67,7 @@ def get_version(): "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", diff --git a/tox.ini b/tox.ini index e6c4bc25..40002074 100644 --- a/tox.ini +++ b/tox.ini @@ -2,9 +2,9 @@ [tox] envlist = - py{39,310,311,312,py3} - py{39,310,311,312,py3}-tinycss2 - py{39,310,311,312}-build-no-lang + py{39,310,311,312,313,py3} + py{39,310,311,312,313,py3}-tinycss2 + py{39,310,311,312,313}-build-no-lang py39-docs py39-format-check py39-lint @@ -16,6 +16,7 @@ python = 3.10: py310 3.11: py311 3.12: py312 + 3.13: py313 pypy-3.9: pypy3 [testenv] @@ -48,6 +49,12 @@ extras = css commands = pytest {posargs:-v} +[testenv:py313-tinycss2] +deps = -rrequirements-dev.txt +extras = css +commands = + pytest {posargs:-v} + [testenv:pypy3-tinycss2] deps = -rrequirements-dev.txt extras = css @@ -78,6 +85,12 @@ setenv = commands = python setup.py build +[testenv:py313-build-no-lang] +setenv = + LANG= +commands = + python setup.py build + [testenv:py39-lint] changedir = {toxinidir} deps = -rrequirements-flake8.txt