Skip to content

Commit a31d55d

Browse files
feat: support Python 3.10 (#40)
* feat: support Python 3.10 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 9fd806a commit a31d55d

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

CONTRIBUTING.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions:
25-
3.6, 3.7, 3.8 and 3.9 on both UNIX and Windows.
25+
3.6, 3.7, 3.8, 3.9 and 3.10 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.
7272

7373
- To run a single unit test::
7474

75-
$ nox -s unit-3.9 -- -k <name of test>
75+
$ nox -s unit-3.10 -- -k <name of test>
7676

7777

7878
.. note::
@@ -225,11 +225,13 @@ We support:
225225
- `Python 3.7`_
226226
- `Python 3.8`_
227227
- `Python 3.9`_
228+
- `Python 3.10`_
228229

229230
.. _Python 3.6: https://docs.python.org/3.6/
230231
.. _Python 3.7: https://docs.python.org/3.7/
231232
.. _Python 3.8: https://docs.python.org/3.8/
232233
.. _Python 3.9: https://docs.python.org/3.9/
234+
.. _Python 3.10: https://docs.python.org/3.10/
233235

234236

235237
Supported versions can be found in our ``noxfile.py`` `config`_.

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
DEFAULT_PYTHON_VERSION = "3.8"
3131
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"]
32-
UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
32+
UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]
3333

3434
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
3535

owlbot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Add templated files
2929
# ----------------------------------------------------------------------------
3030
templated_files = common.py_library(
31-
unit_test_python_versions=["3.6", "3.7", "3.8", "3.9"],
31+
unit_test_python_versions=["3.6", "3.7", "3.8", "3.9", "3.10"],
3232
system_test_python_versions=["3.8"],
3333
cov_level=100,
3434
intersphinx_dependencies={

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ def readme():
6666
"Programming Language :: Python :: 3.7",
6767
"Programming Language :: Python :: 3.8",
6868
"Programming Language :: Python :: 3.9",
69+
"Programming Language :: Python :: 3.10",
6970
"Operating System :: OS Independent",
7071
"Topic :: Database :: Front-Ends",
7172
],
7273
platforms="Posix; MacOS X; Windows",
7374
install_requires=dependencies,
74-
python_requires=">=3.6, <3.10",
75+
python_requires=">=3.6, <3.11",
7576
tests_require=["pytest"],
7677
)

testing/constraints-3.11.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)