GeezerVison is showing github.com — fix(google-cloud-core): Drop support for Python 3.9 (#16953) · googleapis/google-cloud-python@78a48b0
File treeExpand file treeCollapse file tree Open diff view settings packages/google-cloud-core
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/google-cloud-core/CONTRIBUTING.rst +1-14Lines changed: 1 addition & 14 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,7 +22,7 @@ In order to add a feature: | 22 | 22 | documentation. | 23 | 23 |
| 24 | 24 | - 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. | 26 | 26 |
| 27 | 27 | - The feature must not add unnecessary dependencies (where | 28 | 28 | "unnecessary" is of course subjective, but new dependencies should | @@ -197,14 +197,12 @@ Supported Python Versions | 197 | 197 |
| 198 | 198 | We support: | 199 | 199 |
| 200 | | -- `Python 3.9`_ | 201 | 200 | - `Python 3.10`_ | 202 | 201 | - `Python 3.11`_ | 203 | 202 | - `Python 3.12`_ | 204 | 203 | - `Python 3.13`_ | 205 | 204 | - `Python 3.14`_ | 206 | 205 |
| 207 | | -.. _Python 3.9: https://docs.python.org/3.9/ | 208 | 206 | .. _Python 3.10: https://docs.python.org/3.10/ | 209 | 207 | .. _Python 3.11: https://docs.python.org/3.11/ | 210 | 208 | .. _Python 3.12: https://docs.python.org/3.12/ | @@ -217,17 +215,6 @@ Supported versions can be found in our ``noxfile.py`` `config`_. | 217 | 215 | .. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py | 218 | 216 |
| 219 | 217 |
| 220 | | -We also explicitly decided to support Python 3 beginning with version 3.9. | 221 | | -Reasons for this include: | 222 | | - | 223 | | -- Encouraging use of newest versions of Python 3 | 224 | | -- Taking the lead of `prominent`_ open-source `projects`_ | 225 | | -- `Unicode literal support`_ which allows for a cleaner codebase that | 226 | | - works in both Python 2 and Python 3 | 227 | | - | 228 | | -.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django | 229 | | -.. _projects: http://flask.pocoo.org/docs/0.10/python3/ | 230 | | -.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/ | 231 | 218 |
| 232 | 219 | ********** | 233 | 220 | Versioning | |
Collapse file Copy file name to clipboardExpand all lines: packages/google-cloud-core/README.rst +2-3Lines changed: 2 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -32,9 +32,8 @@ to `Python Development Environment Setup Guide`_ for Google Cloud Platform. | 32 | 32 |
| 33 | 33 | Supported Python Versions | 34 | 34 | ------------------------- | 35 | | -Python >= 3.9 | | 35 | +Python >= 3.10 | 36 | 36 |
| 37 | 37 | Unsupported Python Versions | 38 | 38 | --------------------------- | 39 | | - | 40 | | -Python <= 3.8 | | 39 | +Python <= 3.9 |
Collapse file Copy file name to clipboardExpand all lines: packages/google-cloud-core/docs/README.rst +2-3Lines changed: 2 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -32,9 +32,8 @@ to `Python Development Environment Setup Guide`_ for Google Cloud Platform. | 32 | 32 |
| 33 | 33 | Supported Python Versions | 34 | 34 | ------------------------- | 35 | | -Python >= 3.9 | | 35 | +Python >= 3.10 | 36 | 36 |
| 37 | 37 | Unsupported Python Versions | 38 | 38 | --------------------------- | 39 | | - | 40 | | -Python <= 3.8 | | 39 | +Python <= 3.9 |
Collapse file Copy file name to clipboardExpand all lines: packages/google-cloud-core/google/cloud/obsolete/__init__.py +1-5Lines changed: 1 addition & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 14 | 14 |
| 15 | 15 | """Helpers for deprecated code and modules.""" | 16 | 16 |
| 17 | | -try: | 18 | | - import importlib.metadata as metadata | 19 | | -except ImportError: | 20 | | - # For Python 3.7 compatibility | 21 | | - import importlib_metadata as metadata # type: ignore[no-redef] | | 17 | +import importlib.metadata as metadata | 22 | 18 |
| 23 | 19 | import warnings | 24 | 20 |
| |
Collapse file Copy file name to clipboardExpand all lines: packages/google-cloud-core/noxfile.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 26 | 26 |
| 27 | 27 | DEFAULT_PYTHON_VERSION = "3.14" | 28 | 28 | UNIT_TEST_PYTHON_VERSIONS = [ | 29 | | - "3.9", | 30 | 29 | "3.10", | 31 | 30 | "3.11", | 32 | 31 | "3.12", | |
Collapse file Copy file name to clipboardExpand all lines: packages/google-cloud-core/pytest.ini +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -4,11 +4,9 @@ filterwarnings = | 4 | 4 | error | 5 | 5 | # Remove once https://github.com/protocolbuffers/protobuf/issues/12186 is fixed | 6 | 6 | ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning | 7 | | - # Remove after support for Python 3.7 is dropped | 8 | | - ignore:After January 1, 2024, new releases of this library will drop support for Python 3.7:DeprecationWarning | 9 | 7 | # Remove once the minimum supported version of `google-api-core` is 2.15.0 | 10 | 8 | ignore:.*pkg_resources.declare_namespace:DeprecationWarning | 11 | 9 | ignore:.*pkg_resources is deprecated as an API:DeprecationWarning | 12 | | - # Remove after support for Python 3.8, 3.9 and/or 3.10+ is dropped | | 10 | + # Remove after support for Python 3.10+ is dropped | 13 | 11 | ignore:\s*You are using a (non-supported )?Python version \(?3\.(8|9|1[0-9]+):DeprecationWarning | 14 | 12 | ignore:\s*You are using a (non-supported )?Python version \(?3\.(8|9|1[0-9]+):FutureWarning |
Collapse file Copy file name to clipboardExpand all lines: packages/google-cloud-core/setup.py +3-4Lines changed: 3 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 33 | 33 | ] | 34 | 34 | extras = { | 35 | 35 | "grpc": [ | 36 | | - "grpcio >= 1.38.0, < 2.0.0; python_version < '3.14'", | | 36 | + "grpcio >= 1.47.0, < 2.0.0; python_version < '3.14'", | 37 | 37 | "grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'", | 38 | | - "grpcio-status >= 1.38.0, < 2.0.0", | | 38 | + "grpcio-status >= 1.47.0, < 2.0.0", | 39 | 39 | ], | 40 | 40 | } | 41 | 41 |
| | 75 | 75 | "License :: OSI Approved :: Apache Software License", | 76 | 76 | "Programming Language :: Python", | 77 | 77 | "Programming Language :: Python :: 3", | 78 | | - "Programming Language :: Python :: 3.9", | 79 | 78 | "Programming Language :: Python :: 3.10", | 80 | 79 | "Programming Language :: Python :: 3.11", | 81 | 80 | "Programming Language :: Python :: 3.12", | | 88 | 87 | packages=packages, | 89 | 88 | install_requires=dependencies, | 90 | 89 | extras_require=extras, | 91 | | - python_requires=">=3.9", | | 90 | + python_requires=">=3.10", | 92 | 91 | include_package_data=True, | 93 | 92 | zip_safe=False, | 94 | 93 | ) |
Collapse file Copy file name to clipboard +13Lines changed: 13 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 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-api-core==2.11.0 | | 9 | +google-auth==2.14.1 | | 10 | +grpcio==1.47.0 | | 11 | +grpcio-status==1.47.0 | | 12 | +# cryptography is a direct dependency of google-auth | | 13 | +cryptography==38.0.3 |
Collapse file Copy file name to clipboardExpand all lines: packages/google-cloud-core/testing/constraints-3.9.txt -12Lines changed: 0 additions & 12 deletions
|