| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 78ce8a6 commit c26e587
9 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,12 +11,13 @@ branchProtectionRules: | |||
| 11 | 11 | # No Kokoro: the following are Github actions | |
| 12 | 12 | - 'mypy' | |
| 13 | 13 | - 'lint' | |
| 14 | - - 'unit (3.7)' | ||
| 15 | 14 | - 'unit (3.8)' | |
| 16 | 15 | - 'unit (3.9)' | |
| 17 | 16 | - 'unit (3.10)' | |
| 18 | 17 | - 'unit (3.11)' | |
| 19 | 18 | - 'unit (3.12)' | |
| 19 | + - 'unit (3.13)' | ||
| 20 | + - 'unit (3.14)' | ||
| 20 | 21 | - 'cover' | |
| 21 | 22 | - 'docs' | |
| 22 | 23 | - 'docfx' | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ jobs: | |||
| 11 | 11 | runs-on: ubuntu-22.04 | |
| 12 | 12 | strategy: | |
| 13 | 13 | matrix: | |
| 14 | - python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] | ||
| 14 | + python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] | ||
| 15 | 15 | steps: | |
| 16 | 16 | - name: Checkout | |
| 17 | 17 | uses: actions/checkout@v4 | |
| 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.7, 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13 on both UNIX and Windows. | ||
| 25 | + 3.8, 3.9, 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 | |
@@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests. | |||
| 72 | 72 | ||
| 73 | 73 | - To run a single unit test:: | |
| 74 | 74 | ||
| 75 | - $ nox -s unit-3.13 -- -k <name of test> | ||
| 75 | + $ nox -s unit-3.14 -- -k <name of test> | ||
| 76 | 76 | ||
| 77 | 77 | ||
| 78 | 78 | .. note:: | |
@@ -221,29 +221,29 @@ Supported Python Versions | |||
| 221 | 221 | ||
| 222 | 222 | We support: | |
| 223 | 223 | ||
| 224 | - - `Python 3.7`_ | ||
| 225 | 224 | - `Python 3.8`_ | |
| 226 | 225 | - `Python 3.9`_ | |
| 227 | 226 | - `Python 3.10`_ | |
| 228 | 227 | - `Python 3.11`_ | |
| 229 | 228 | - `Python 3.12`_ | |
| 230 | 229 | - `Python 3.13`_ | |
| 230 | + - `Python 3.14`_ | ||
| 231 | 231 | ||
| 232 | - .. _Python 3.7: https://docs.python.org/3.7/ | ||
| 233 | 232 | .. _Python 3.8: https://docs.python.org/3.8/ | |
| 234 | 233 | .. _Python 3.9: https://docs.python.org/3.9/ | |
| 235 | 234 | .. _Python 3.10: https://docs.python.org/3.10/ | |
| 236 | 235 | .. _Python 3.11: https://docs.python.org/3.11/ | |
| 237 | 236 | .. _Python 3.12: https://docs.python.org/3.12/ | |
| 238 | 237 | .. _Python 3.13: https://docs.python.org/3.13/ | |
| 238 | + .. _Python 3.14: https://docs.python.org/3.14/ | ||
| 239 | 239 | ||
| 240 | 240 | ||
| 241 | 241 | Supported versions can be found in our ``noxfile.py`` `config`_. | |
| 242 | 242 | ||
| 243 | 243 | .. _config: https://github.com/googleapis/python-cloud-core/blob/main/noxfile.py | |
| 244 | 244 | ||
| 245 | 245 | ||
| 246 | - We also explicitly decided to support Python 3 beginning with version 3.7. | ||
| 246 | + We also explicitly decided to support Python 3 beginning with version 3.8. | ||
| 247 | 247 | Reasons for this include: | |
| 248 | 248 | ||
| 249 | 249 | - Encouraging use of newest versions of Python 3 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,8 +34,9 @@ | |||
| 34 | 34 | import google.auth.api_key | |
| 35 | 35 | ||
| 36 | 36 | HAS_GOOGLE_AUTH_API_KEY = True | |
| 37 | - except ImportError: | ||
| 38 | - HAS_GOOGLE_AUTH_API_KEY = False | ||
| 37 | + except ImportError: # pragma: NO COVER | ||
| 38 | + HAS_GOOGLE_AUTH_API_KEY = False # pragma: NO COVER | ||
| 39 | + # TODO: Investigate adding a test for google.auth.api_key ImportError (https://github.com/googleapis/python-cloud-core/issues/334) | ||
| 39 | 40 | ||
| 40 | 41 | ||
| 41 | 42 | _GOOGLE_AUTH_CREDENTIALS_HELP = ( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,16 +14,10 @@ | |||
| 14 | 14 | ||
| 15 | 15 | """Helpers for deprecated code and modules.""" | |
| 16 | 16 | ||
| 17 | - import sys | ||
| 17 | + import importlib.metadata as metadata | ||
| 18 | 18 | import warnings | |
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | - if sys.version_info < (3, 8): | ||
| 22 | - import importlib_metadata as metadata | ||
| 23 | - else: | ||
| 24 | - import importlib.metadata as metadata | ||
| 25 | - | ||
| 26 | - | ||
| 27 | 21 | def complain(distribution_name): | |
| 28 | 22 | """Issue a warning if `distribution_name` is installed. | |
| 29 | 23 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -96,7 +96,7 @@ def default(session): | |||
| 96 | 96 | ) | |
| 97 | 97 | ||
| 98 | 98 | ||
| 99 | - @nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]) | ||
| 99 | + @nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]) | ||
| 100 | 100 | def unit(session): | |
| 101 | 101 | """Default unit test session.""" | |
| 102 | 102 | default(session) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,6 +26,7 @@ | |||
| 26 | 26 | templated_files = common.py_library( | |
| 27 | 27 | microgenerator=True, | |
| 28 | 28 | cov_level=100, | |
| 29 | + unit_test_python_versions=["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"], | ||
| 29 | 30 | ) | |
| 30 | 31 | s.move( | |
| 31 | 32 | templated_files, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,7 +34,8 @@ | |||
| 34 | 34 | ] | |
| 35 | 35 | extras = { | |
| 36 | 36 | "grpc": [ | |
| 37 | - "grpcio >= 1.38.0, < 2.0.0", | ||
| 37 | + "grpcio >= 1.38.0, < 2.0.0; python_version < '3.14'", | ||
| 38 | + "grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'", | ||
| 38 | 39 | "grpcio-status >= 1.38.0, < 2.0.0", | |
| 39 | 40 | ], | |
| 40 | 41 | } | |
@@ -82,6 +83,7 @@ | |||
| 82 | 83 | "Programming Language :: Python :: 3.11", | |
| 83 | 84 | "Programming Language :: Python :: 3.12", | |
| 84 | 85 | "Programming Language :: Python :: 3.13", | |
| 86 | + "Programming Language :: Python :: 3.14", | ||
| 85 | 87 | "Operating System :: OS Independent", | |
| 86 | 88 | "Topic :: Internet", | |
| 87 | 89 | ], | |
| Back | FazBrowse Home | New Git URL |
0 commit comments