| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 98b9828 commit 8fa321e
9 files changed
| 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 | |
@@ -148,8 +148,6 @@ Running System Tests | |||
| 148 | 148 | ||
| 149 | 149 | .. note:: | |
| 150 | 150 | ||
| 151 | - System tests are only configured to run under Python 3.9 and 3.14. | ||
| 152 | - For expediency, we do not run them in older versions of Python 3. | ||
| 153 | 151 | ||
| 154 | 152 | This alone will not run the tests. You'll need to change some local | |
| 155 | 153 | auth settings and change some configuration in your project to | |
@@ -197,14 +195,12 @@ Supported Python Versions | |||
| 197 | 195 | ||
| 198 | 196 | We support: | |
| 199 | 197 | ||
| 200 | - - `Python 3.9`_ | ||
| 201 | 198 | - `Python 3.10`_ | |
| 202 | 199 | - `Python 3.11`_ | |
| 203 | 200 | - `Python 3.12`_ | |
| 204 | 201 | - `Python 3.13`_ | |
| 205 | 202 | - `Python 3.14`_ | |
| 206 | 203 | ||
| 207 | - .. _Python 3.9: https://docs.python.org/3.9/ | ||
| 208 | 204 | .. _Python 3.10: https://docs.python.org/3.10/ | |
| 209 | 205 | .. _Python 3.11: https://docs.python.org/3.11/ | |
| 210 | 206 | .. _Python 3.12: https://docs.python.org/3.12/ | |
@@ -217,17 +213,7 @@ Supported versions can be found in our ``noxfile.py`` `config`_. | |||
| 217 | 213 | .. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-documentai-toolbox/noxfile.py | |
| 218 | 214 | ||
| 219 | 215 | ||
| 220 | - We also explicitly decided to support Python 3 beginning with version 3.9. | ||
| 221 | - Reasons for this include: | ||
| 222 | 216 | ||
| 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 | 217 | ||
| 232 | 218 | ********** | |
| 233 | 219 | Versioning | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,14 +63,14 @@ Supported Python Versions | |||
| 63 | 63 | Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of | |
| 64 | 64 | Python. | |
| 65 | 65 | ||
| 66 | - Python >= 3.9 | ||
| 66 | + Python >= 3.10 | ||
| 67 | 67 | ||
| 68 | 68 | .. _active: https://devguide.python.org/devcycle/#in-development-main-branch | |
| 69 | 69 | .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches | |
| 70 | 70 | ||
| 71 | 71 | Unsupported Python Versions | |
| 72 | 72 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| 73 | - Python <= 3.8 | ||
| 73 | + Python <= 3.9 | ||
| 74 | 74 | ||
| 75 | 75 | If you are using an `end-of-life`_ | |
| 76 | 76 | version of Python, we recommend that you update as soon as possible to an actively supported version. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,14 +63,14 @@ Supported Python Versions | |||
| 63 | 63 | Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of | |
| 64 | 64 | Python. | |
| 65 | 65 | ||
| 66 | - Python >= 3.9 | ||
| 66 | + Python >= 3.10 | ||
| 67 | 67 | ||
| 68 | 68 | .. _active: https://devguide.python.org/devcycle/#in-development-main-branch | |
| 69 | 69 | .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches | |
| 70 | 70 | ||
| 71 | 71 | Unsupported Python Versions | |
| 72 | 72 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| 73 | - Python <= 3.8 | ||
| 73 | + Python <= 3.9 | ||
| 74 | 74 | ||
| 75 | 75 | If you are using an `end-of-life`_ | |
| 76 | 76 | version of Python, we recommend that you update as soon as possible to an actively supported version. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,17 +35,11 @@ | |||
| 35 | 35 | ) | |
| 36 | 36 | ||
| 37 | 37 | ||
| 38 | - class Python37DeprecationWarning(DeprecationWarning): # pragma: NO COVER | ||
| 39 | - """ | ||
| 40 | - Deprecation warning raised when Python 3.7 runtime is detected. | ||
| 41 | - Python 3.7 support will be dropped after January 1, 2024. | ||
| 42 | - """ | ||
| 43 | - | ||
| 44 | - | ||
| 45 | - # Checks if the current runtime is Python 3.7. | ||
| 46 | - if sys.version_info.major == 3 and sys.version_info.minor == 7: # pragma: NO COVER | ||
| 38 | + # Checks if the current runtime is Python < 3.10. | ||
| 39 | + if sys.version_info < (3, 10): # pragma: NO COVER | ||
| 47 | 40 | message = ( | |
| 48 | - "After January 1, 2024, new releases of this library will drop support " | ||
| 49 | - "for Python 3.7." | ||
| 41 | + "The google-cloud-documentai-toolbox library no longer supports Python 3.7, 3.8, and 3.9. " | ||
| 42 | + "We recommend that you update soon to ensure ongoing support. For " | ||
| 43 | + "more details, see: [Google Cloud Client Libraries Supported Python Versions policy](https://cloud.google.com/python/docs/supported-python-versions)" | ||
| 50 | 44 | ) | |
| 51 | - warnings.warn(message, Python37DeprecationWarning) | ||
| 45 | + warnings.warn(message, FutureWarning) | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,6 @@ | |||
| 36 | 36 | DEFAULT_PYTHON_VERSION = "3.14" | |
| 37 | 37 | ||
| 38 | 38 | UNIT_TEST_PYTHON_VERSIONS: List[str] = [ | |
| 39 | - "3.9", | ||
| 40 | 39 | "3.10", | |
| 41 | 40 | "3.11", | |
| 42 | 41 | "3.12", | |
@@ -57,7 +56,7 @@ | |||
| 57 | 56 | UNIT_TEST_EXTRAS: List[str] = [] | |
| 58 | 57 | UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} | |
| 59 | 58 | ||
| 60 | - SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.14"] | ||
| 59 | + SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.12"] | ||
| 61 | 60 | SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [ | |
| 62 | 61 | "mock", | |
| 63 | 62 | "pytest", | |
@@ -72,7 +71,6 @@ | |||
| 72 | 71 | CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() | |
| 73 | 72 | ||
| 74 | 73 | nox.options.sessions = [ | |
| 75 | - "unit-3.9", | ||
| 76 | 74 | "unit-3.10", | |
| 77 | 75 | "unit-3.11", | |
| 78 | 76 | "unit-3.12", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,15 +6,11 @@ filterwarnings = | |||
| 6 | 6 | ignore:.*custom tp_new.*in Python 3.14:DeprecationWarning | |
| 7 | 7 | # Remove once https://github.com/dateutil/dateutil/issues/1314 is fixed | |
| 8 | 8 | ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning:dateutil.tz.tz | |
| 9 | - # Remove once Python3.7 support is dropped https://github.com/googleapis/python-documentai-toolbox/issues/209 | ||
| 10 | - ignore:distutils Version classes are deprecated:DeprecationWarning | ||
| 11 | - # Remove after support for Python 3.7 is dropped | ||
| 12 | - ignore:After January 1, 2024, new releases of this library will drop support for Python 3.7:DeprecationWarning | ||
| 9 | + | ||
| 13 | 10 | # Remove once the minimum supported version of `google-api-core` is 2.15.0 | |
| 14 | 11 | ignore:.*pkg_resources.declare_namespace:DeprecationWarning | |
| 15 | 12 | ignore:.*pkg_resources is deprecated as an API:DeprecationWarning | |
| 16 | - # Remove once the minimum supported Python runtime of this library is Python 3.9 | ||
| 17 | - ignore:The python-bigquery library will stop supporting Python 3.7 and Python 3.8:PendingDeprecationWarning | ||
| 13 | + | ||
| 18 | 14 | # This error is expected for python versions that approach EOL | |
| 19 | 15 | ignore:.*Please upgrade to the latest Python version.*:FutureWarning | |
| 20 | 16 | ignore:(?s).*using a Python version.*past its end of life.*:FutureWarning | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,21 +62,20 @@ | |||
| 62 | 62 | "grpc-google-iam-v1>=0.12.6, <1.0.0", | |
| 63 | 63 | "google-cloud-bigquery>=3.14.0, <4.0.0", | |
| 64 | 64 | "google-cloud-documentai>=2.29.2, <4.0.0", | |
| 65 | - "google-cloud-storage>=1.31.0, <4.0.0", | ||
| 66 | - "google-cloud-vision>=2.7.0, <4.0.0", | ||
| 65 | + "google-cloud-storage>=2.3.0, <4.0.0", | ||
| 66 | + "google-cloud-vision>=3.2.0, <4.0.0", | ||
| 67 | 67 | "numpy>=1.23.5, <3.0.0", | |
| 68 | 68 | "intervaltree>=3.0.0", | |
| 69 | 69 | "pikepdf>=8.0.0, <11.0.0", | |
| 70 | 70 | "immutabledict>=2.0.0, <5.0.0", | |
| 71 | 71 | "Pillow>=10.0.0, <12.0.0", | |
| 72 | 72 | "Jinja2>=3.1.0, <4.0.0", | |
| 73 | 73 | ), | |
| 74 | - python_requires=">=3.9", | ||
| 74 | + python_requires=">=3.10", | ||
| 75 | 75 | classifiers=[ | |
| 76 | 76 | "Development Status :: 3 - Alpha", | |
| 77 | 77 | "Intended Audience :: Developers", | |
| 78 | 78 | "Operating System :: OS Independent", | |
| 79 | - "Programming Language :: Python :: 3.9", | ||
| 80 | 79 | "Programming Language :: Python :: 3.10", | |
| 81 | 80 | "Programming Language :: Python :: 3.11", | |
| 82 | 81 | "Programming Language :: Python :: 3.12", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,22 @@ | |||
| 1 | - # -*- coding: utf-8 -*- | ||
| 2 | - # This constraints file is required for unit tests. | ||
| 3 | - # List all library dependencies and extras in this file. | ||
| 4 | - google-api-core | ||
| 5 | - pandas | ||
| 6 | - proto-plus | ||
| 7 | - grpc-google-iam-v1 | ||
| 8 | - google-cloud-bigquery | ||
| 9 | - google-cloud-documentai | ||
| 10 | - google-cloud-storage | ||
| 11 | - numpy | ||
| 12 | - pikepdf | ||
| 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 | + # pinning their versions to their lower bounds. | ||
| 5 | + # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| 6 | + # then this file should have google-cloud-foo==1.14.0 | ||
| 7 | + google-api-core==2.15.0 | ||
| 8 | + pandas==2.0.0 | ||
| 9 | + pyarrow==15.0.0 | ||
| 10 | + tabulate==0.9.0 | ||
| 11 | + proto-plus==1.22.3 | ||
| 12 | + grpc-google-iam-v1==0.12.6 | ||
| 13 | + google-cloud-bigquery==3.14.0 | ||
| 14 | + google-cloud-documentai==2.29.2 | ||
| 15 | + google-cloud-storage==2.3.0 | ||
| 16 | + google-cloud-vision==3.2.0 | ||
| 17 | + numpy==1.23.5 | ||
| 18 | + intervaltree==3.0.0 | ||
| 19 | + pikepdf==8.0.0 | ||
| 20 | + immutabledict==2.0.0 | ||
| 21 | + Pillow==10.0.0 | ||
| 22 | + Jinja2==3.1.0 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments