diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index 3c6795e8..c8065421 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.7, 3.8, 3.9 and 3.10 on both UNIX and Windows.
+ 3.7, 3.8, 3.9, 3.10 and 3.11 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.10 -- -k
+ $ nox -s unit-3.11 -- -k
.. note::
@@ -143,12 +143,12 @@ Running System Tests
$ nox -s system
# Run a single system test
- $ nox -s system-3.10 -- -k
+ $ nox -s system-3.11 -- -k
.. note::
- System tests are only configured to run under Python 3.8 and 3.10.
+ System tests are only configured to run under Python 3.8 and 3.11.
For expediency, we do not run them in older versions of Python 3.
This alone will not run the tests. You'll need to change some local
@@ -225,11 +225,13 @@ We support:
- `Python 3.8`_
- `Python 3.9`_
- `Python 3.10`_
+- `Python 3.11`_
.. _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/
+.. _Python 3.11: https://docs.python.org/3.11/
Supported versions can be found in our ``noxfile.py`` `config`_.
diff --git a/noxfile.py b/noxfile.py
index eb3581b8..0cb4e3f5 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -32,7 +32,7 @@
DEFAULT_PYTHON_VERSION = "3.8"
-UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10"]
+UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"]
UNIT_TEST_STANDARD_DEPENDENCIES = [
"mock",
"asyncmock",
@@ -51,13 +51,13 @@
"tests",
"alembic",
],
- "3.10": [
+ "3.11": [
"tests",
"geography",
],
}
-SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.10"]
+SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.11"]
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
"mock",
"pytest",
@@ -74,7 +74,7 @@
"tests",
"alembic",
],
- "3.10": [
+ "3.11": [
"tests",
"geography",
],
@@ -382,7 +382,7 @@ def compliance(session):
)
if session.python == "3.8":
extras = "[tests,alembic]"
- elif session.python == "3.10":
+ elif session.python == "3.11":
extras = "[tests,geography]"
else:
extras = "[tests]"
diff --git a/owlbot.py b/owlbot.py
index df417029..0b9a84fa 100644
--- a/owlbot.py
+++ b/owlbot.py
@@ -30,10 +30,11 @@
extras = ["tests"]
extras_by_python = {
"3.8": ["tests", "alembic"],
- "3.10": ["tests", "geography"],
+ "3.11": ["tests", "geography"],
}
templated_files = common.py_library(
- system_test_python_versions=["3.8", "3.10"],
+ unit_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11"],
+ system_test_python_versions=["3.8", "3.11"],
cov_level=100,
unit_test_extras=extras,
unit_test_extras_by_python=extras_by_python,
@@ -201,7 +202,7 @@ def compliance(session):
)
if session.python == "3.8":
extras = "[tests,alembic]"
- elif session.python == "3.10":
+ elif session.python == "3.11":
extras = "[tests,geography]"
else:
extras = "[tests]"
diff --git a/setup.py b/setup.py
index ccdd324b..bed5195c 100644
--- a/setup.py
+++ b/setup.py
@@ -73,6 +73,7 @@ def readme():
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Topic :: Database :: Front-Ends",
],
@@ -91,7 +92,7 @@ def readme():
"future",
],
extras_require=extras,
- python_requires=">=3.7, <3.11",
+ python_requires=">=3.7, <3.12",
tests_require=["packaging", "pytz"],
entry_points={
"sqlalchemy.dialects": ["bigquery = sqlalchemy_bigquery:BigQueryDialect"]
diff --git a/testing/constraints-3.11.txt b/testing/constraints-3.11.txt
new file mode 100644
index 00000000..5b82150f
--- /dev/null
+++ b/testing/constraints-3.11.txt
@@ -0,0 +1 @@
+numpy>=1.23