Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d37a953

Browse filesBrowse files
authored
fix(ndb): Drop support for Python 3.9 (#16950)
This PR updates \`google-cloud-ndb\` to drop support for Python 3.9 and establish Python 3.10 as the minimum supported version. ### Changes * Configuration: Updated \`setup.py\` and \`noxfile.py\` to require Python 3.10+ and remove references to Python 3.9. * Documentation: Updated \`README.md\` and \`CONTRIBUTING.rst\` to reflect supported Python versions. * Constraints: Transferred lower bounds to \`constraints-3.10.txt\` and dropped \`constraints-3.9.txt\`. * Updated lower bound for pytz due to incompatibility with Python 3.10. Fixes internal issue: http://b/482126936 🦕
1 parent 95e1009 commit d37a953
Copy full SHA for d37a953

6 files changed

+22-26Lines changed: 22 additions & 26 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/google-cloud-ndb/CONTRIBUTING.rst‎

Copy file name to clipboardExpand all lines: packages/google-cloud-ndb/CONTRIBUTING.rst
+1-3Lines changed: 1 addition & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In order to add a feature to ``python-ndb``:
2424
documentation (in ``docs/``).
2525

2626
- The feature must work fully on the following CPython versions:
27-
3.9, 3.10, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows.
27+
3.10, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows.
2828

2929
- The feature must not add unnecessary dependencies (where
3030
"unnecessary" is of course subjective, but new dependencies should
@@ -259,14 +259,12 @@ Supported Python Versions
259259

260260
We support:
261261

262-
- `Python 3.9`_
263262
- `Python 3.10`_
264263
- `Python 3.11`_
265264
- `Python 3.12`_
266265
- `Python 3.13`_
267266
- `Python 3.14`_
268267

269-
.. _Python 3.9: https://docs.python.org/3.9/
270268
.. _Python 3.10: https://docs.python.org/3.10/
271269
.. _Python 3.11: https://docs.python.org/3.11/
272270
.. _Python 3.12: https://docs.python.org/3.12/
Collapse file

‎packages/google-cloud-ndb/README.md‎

Copy file name to clipboardExpand all lines: packages/google-cloud-ndb/README.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ GA
3030

3131
Our client libraries are compatible with all current [active][3] and [maintenance][4] versions of Python.
3232

33-
Python >= 3.9
33+
Python >= 3.10
3434

3535
[3]: https://devguide.python.org/devcycle/#in-development-main-branch
3636
[4]: https://devguide.python.org/devcycle/#maintenance-branches
3737

3838
### Unsupported Python Versions
3939

40-
Python <= 3.8
40+
Python <= 3.9
4141

4242
If you are using an [end-of-life][5]
4343
version of Python, we recommend that you update as soon as possible to an actively supported version.
Collapse file

‎packages/google-cloud-ndb/noxfile.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-ndb/noxfile.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
LOCAL_DEPS = ("google-api-core", "google-cloud-core")
3030
NOX_DIR = os.path.abspath(os.path.dirname(__file__))
3131
DEFAULT_INTERPRETER = "3.14"
32-
ALL_INTERPRETERS = ("3.9", "3.10", "3.11", "3.12", "3.13", "3.14")
32+
ALL_INTERPRETERS = ("3.10", "3.11", "3.12", "3.13", "3.14")
3333
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
3434

3535
BLACK_VERSION = "black[jupyter]==23.7.0"
@@ -47,7 +47,6 @@
4747

4848
nox.options.sessions = [
4949
"prerelease_deps",
50-
"unit-3.9",
5150
"unit-3.10",
5251
"unit-3.11",
5352
"unit-3.12",
@@ -359,7 +358,7 @@ def docfx(session):
359358
)
360359

361360

362-
@nox.session(py="3.9")
361+
@nox.session(py="3.10")
363362
def doctest(session):
364363
# Install all dependencies.
365364
session.install(
Collapse file

‎packages/google-cloud-ndb/setup.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-ndb/setup.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def main():
4444
"google-cloud-datastore >= 2.16.0, != 2.20.2, < 3.0.0",
4545
"protobuf >= 4.25.8, < 8.0.0",
4646
"pymemcache >= 2.1.0, < 5.0.0",
47-
"pytz >= 2018.3",
47+
"pytz >= 2022.1",
4848
"redis >= 3.0.0, < 8.0.0",
4949
]
5050

@@ -68,7 +68,6 @@ def main():
6868
"License :: OSI Approved :: Apache Software License",
6969
"Programming Language :: Python",
7070
"Programming Language :: Python :: 3",
71-
"Programming Language :: Python :: 3.9",
7271
"Programming Language :: Python :: 3.10",
7372
"Programming Language :: Python :: 3.11",
7473
"Programming Language :: Python :: 3.12",
@@ -81,7 +80,7 @@ def main():
8180
packages=packages,
8281
install_requires=dependencies,
8382
extras_require={},
84-
python_requires=">=3.9",
83+
python_requires=">=3.10",
8584
include_package_data=False,
8685
zip_safe=False,
8786
)
Collapse file
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This constraints file is used to check that lower bounds
2+
# are correct in setup.py
3+
# List *all* library dependencies and extras in this file.
4+
# Pin the version to the lower bound.
5+
#
6+
# e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev",
7+
# Then this file should have foo==1.14.0
8+
google-cloud-datastore==2.16.0
9+
google-api-core==2.11.0
10+
protobuf==4.25.8
11+
pymemcache==2.1.0
12+
redis==3.0.0
13+
pytz==2022.1
14+
# TODO(https://github.com/googleapis/python-ndb/issues/913) remove this dependency once six is no longer used in the codebase
15+
six==1.12.0
Collapse file

‎packages/google-cloud-ndb/testing/constraints-3.9.txt‎

Copy file name to clipboardExpand all lines: packages/google-cloud-ndb/testing/constraints-3.9.txt
-15Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.