-
Notifications
You must be signed in to change notification settings - Fork 95
chore: require Python ≥ 3.9, protobuf ≥ 4.25.8 #877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
345ed00
e7d5849
00bacfc
d91d4b1
063991a
e6ab415
fa50b6a
02bdd5d
e420f47
6c2206c
f9f4e7f
cf8c92a
90cff72
39992e3
fb410f4
371d27e
f9ce257
2a57035
0f9589e
f4decd5
c506726
5ebe08d
fe43df7
b1b5822
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ build-backend = "setuptools.build_meta" | |
| name = "google-api-core" | ||
| authors = [{ name = "Google LLC", email = "[email protected]" }] | ||
| license = { text = "Apache 2.0" } | ||
| requires-python = ">=3.7" | ||
| requires-python = ">=3.9" | ||
| readme = "README.rst" | ||
| description = "Google API client core library" | ||
| classifiers = [ | ||
|
|
@@ -33,8 +33,7 @@ classifiers = [ | |
| "License :: OSI Approved :: Apache Software License", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.7", | ||
| "Programming Language :: Python :: 3.8", | ||
|
|
||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
|
|
@@ -83,7 +82,7 @@ version = { attr = "google.api_core.version.__version__" } | |
| include = ["google*"] | ||
|
|
||
| [tool.mypy] | ||
| python_version = "3.7" | ||
| python_version = "3.9" | ||
| namespace_packages = true | ||
| ignore_missing_imports = true | ||
|
|
||
|
|
@@ -97,9 +96,7 @@ filterwarnings = [ | |
| "ignore:.*The --rsyncdir command line argument and rsyncdirs config variable are deprecated:DeprecationWarning", | ||
| # Remove once https://github.com/protocolbuffers/protobuf/issues/12186 is fixed | ||
| "ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning", | ||
| # Remove once support for python 3.7 is dropped | ||
| # This warning only appears when using python 3.7 | ||
| "ignore:.*Using or importing the ABCs from.*collections:DeprecationWarning", | ||
|
|
||
| # Remove once support for grpcio-gcp is deprecated | ||
| # See https://github.com/googleapis/python-api-core/blob/42e8b6e6f426cab749b34906529e8aaf3f133d75/google/api_core/grpc_helpers.py#L39-L45 | ||
| "ignore:.*Support for grpcio-gcp is deprecated:DeprecationWarning", | ||
|
|
@@ -110,6 +107,5 @@ filterwarnings = [ | |
| "ignore:.*pkg_resources is deprecated as an API:DeprecationWarning", | ||
| # Remove once https://github.com/grpc/grpc/issues/35086 is fixed (and version newer than 1.60.0 is published) | ||
| "ignore:There is no current event loop:DeprecationWarning", | ||
| # Remove after support for Python 3.7 is dropped | ||
| "ignore:After January 1, 2024, new releases of this library will drop support for Python 3.7:DeprecationWarning", | ||
|
|
||
| ] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| [pytype] | ||
| python_version = 3.7 | ||
| python_version = 3.9 | ||
| inputs = | ||
| google/ | ||
| exclude = | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should keep in a generic version of this warning, since we expect to start seeing it for other versions at some point in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the warnings issued by _python_version_support.py are of type
FutureWarning, which are captured by the rule above.This particular configuration line was brought in from
pytest.iniduring the migration to TOML (#736) before we had the current Python version warnings