From c9370b9598ae337abf1d9f9c02fdc5390ca83ff7 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Tue, 5 Oct 2021 16:55:02 -0400 Subject: [PATCH] feat: add support for Python 3.10 (#145) --- CONTRIBUTING.rst | 6 ++++-- noxfile.py | 2 +- owlbot.py | 6 +++++- setup.py | 1 + 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index beac0ba..73c2ae2 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -22,7 +22,7 @@ In order to add a feature: documentation. - The feature must work fully on the following CPython versions: - 3.6, 3.7, 3.8 and 3.9 on both UNIX and Windows. + 3.6, 3.7, 3.8, 3.9 and 3.10 on both UNIX and Windows. - The feature must not add unnecessary dependencies (where "unnecessary" is of course subjective, but new dependencies should @@ -72,7 +72,7 @@ We use `nox `__ to instrument our tests. - To run a single unit test:: - $ nox -s unit-3.9 -- -k + $ nox -s unit-3.10 -- -k .. note:: @@ -225,11 +225,13 @@ We support: - `Python 3.7`_ - `Python 3.8`_ - `Python 3.9`_ +- `Python 3.10`_ .. _Python 3.6: https://docs.python.org/3.6/ .. _Python 3.7: https://docs.python.org/3.7/ .. _Python 3.8: https://docs.python.org/3.8/ .. _Python 3.9: https://docs.python.org/3.9/ +.. _Python 3.10: https://docs.python.org/3.10/ Supported versions can be found in our ``noxfile.py`` `config`_. diff --git a/noxfile.py b/noxfile.py index fbe1359..c29d0f3 100644 --- a/noxfile.py +++ b/noxfile.py @@ -78,7 +78,7 @@ def default(session): ) -@nox.session(python=["3.6", "3.7", "3.8", "3.9"]) +@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10"]) def unit(session): """Default unit test session.""" default(session) diff --git a/owlbot.py b/owlbot.py index 5b0f6c3..b24dd44 100644 --- a/owlbot.py +++ b/owlbot.py @@ -22,7 +22,11 @@ # ---------------------------------------------------------------------------- # Add templated files # ---------------------------------------------------------------------------- -templated_files = common.py_library(microgenerator=True, cov_level=100) +templated_files = common.py_library( + microgenerator=True, + cov_level=100, + unit_test_python_versions=["3.6", "3.7", "3.8", "3.9", "3.10"], +) s.move( templated_files, excludes=[ diff --git a/setup.py b/setup.py index 78457ca..750c467 100644 --- a/setup.py +++ b/setup.py @@ -78,6 +78,7 @@ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Operating System :: OS Independent", "Topic :: Internet", ],