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 e7efd90

Browse filesBrowse files
authored
fix(runtimeconfig): Drop support for Python 3.9 (#16947)
This PR updates \`google-cloud-runtimeconfig\` to establish Python 3.10 as the minimum supported version, dropping support for Python 3.9 and below. ### Changes * Configuration: Updated \`setup.py\` and \`noxfile.py\` to require Python 3.10+ and remove references to Python 3.9. * Documentation: Updated \`README.rst\` and \`CONTRIBUTING.rst\` to reflect supported Python versions. * Cleanup: Removed dead deprecation warnings from \`pytest.ini\`. * Constraints: Transferred lower bounds to \`constraints-3.10.txt\` and dropped \`constraints-3.9.txt\`. Verified successfully with 49 passing unit tests under Python 3.10! Fixes internal issue: http://b/482126936 🦕
1 parent fab4e71 commit e7efd90
Copy full SHA for e7efd90

7 files changed

+13-21Lines changed: 13 additions & 21 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-runtimeconfig/CONTRIBUTING.rst‎

Copy file name to clipboardExpand all lines: packages/google-cloud-runtimeconfig/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
@@ -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.9, 3.10, 3.11, 3.12, 3.13 and 3.14 on both UNIX and Windows.
25+
3.10, 3.11, 3.12, 3.13 and 3.14 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
@@ -197,14 +197,12 @@ Supported Python Versions
197197

198198
We support:
199199

200-
- `Python 3.9`_
201200
- `Python 3.10`_
202201
- `Python 3.11`_
203202
- `Python 3.12`_
204203
- `Python 3.13`_
205204
- `Python 3.14`_
206205

207-
.. _Python 3.9: https://docs.python.org/3.9/
208206
.. _Python 3.10: https://docs.python.org/3.10/
209207
.. _Python 3.11: https://docs.python.org/3.11/
210208
.. _Python 3.12: https://docs.python.org/3.12/
Collapse file

‎packages/google-cloud-runtimeconfig/README.rst‎

Copy file name to clipboardExpand all lines: packages/google-cloud-runtimeconfig/README.rst
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ Supported Python Versions
5353
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
5454
Python.
5555

56-
Python >= 3.9
56+
Python >= 3.10
5757

5858
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
5959
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
6060

6161
Unsupported Python Versions
6262
^^^^^^^^^^^^^^^^^^^^^^^^^^^
63-
Python <= 3.8
63+
Python <= 3.9
6464

6565
If you are using an `end-of-life`_
6666
version of Python, we recommend that you update as soon as possible to an actively supported version.
Collapse file

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

Copy file name to clipboardExpand all lines: packages/google-cloud-runtimeconfig/noxfile.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
DEFAULT_PYTHON_VERSION = "3.14"
3737

3838
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
39-
"3.9",
4039
"3.10",
4140
"3.11",
4241
"3.12",
Collapse file

‎packages/google-cloud-runtimeconfig/pytest.ini‎

Copy file name to clipboardExpand all lines: packages/google-cloud-runtimeconfig/pytest.ini
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@ filterwarnings =
66
ignore:.*pkg_resources.declare_namespace:DeprecationWarning
77
ignore:.*pkg_resources is deprecated as an API:DeprecationWarning
88
# Remove once https://github.com/protocolbuffers/protobuf/issues/12186 is fixed
9-
ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning
10-
# Remove after support for Python 3.7 is dropped
11-
ignore:After January 1, 2024, new releases of this library will drop support for Python 3.7:DeprecationWarning
12-
ignore:.*Please upgrade to the latest Python version.*:FutureWarning
13-
ignore:(?s).*using a Python version.*past its end of life.*:FutureWarning
9+
ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning
Collapse file

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

Copy file name to clipboardExpand all lines: packages/google-cloud-runtimeconfig/setup.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"License :: OSI Approved :: Apache Software License",
7474
"Programming Language :: Python",
7575
"Programming Language :: Python :: 3",
76-
"Programming Language :: Python :: 3.9",
7776
"Programming Language :: Python :: 3.10",
7877
"Programming Language :: Python :: 3.11",
7978
"Programming Language :: Python :: 3.12",
@@ -86,7 +85,7 @@
8685
packages=packages,
8786
install_requires=dependencies,
8887
extras_require=extras,
89-
python_requires=">=3.9",
88+
python_requires=">=3.10",
9089
include_package_data=True,
9190
zip_safe=False,
9291
)
Collapse file
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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-core==1.4.4
Collapse file

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

Copy file name to clipboardExpand all lines: packages/google-cloud-runtimeconfig/testing/constraints-3.9.txt
-8Lines changed: 0 additions & 8 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.