Skip to content
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

fix: Drop Python 3.7 Support #262

Merged
merged 27 commits into from
Mar 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d48ed79
chore: Deprecate Python 3.7 Support
holtskinner Feb 26, 2024
9fa6c87
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Feb 26, 2024
25c5993
Merge branch 'main' into remove-python37
holtskinner Feb 26, 2024
a2b9e02
Remove 3.7 from `UNIT_TEST_PYTHON_VERSIONS`
holtskinner Mar 4, 2024
d6f594b
Merge branch 'main' into remove-python37
holtskinner Mar 4, 2024
56d5e37
Remove Unit tests trigger for 3.7 and Update Contributing Guide
holtskinner Mar 4, 2024
e144abc
Merge branch 'remove-python37' of https://github.com/googleapis/pytho…
holtskinner Mar 4, 2024
88ba767
Update dependencies
holtskinner Mar 4, 2024
e055959
Update constraints
holtskinner Mar 4, 2024
ebb9b30
Update requirements/constraints
holtskinner Mar 4, 2024
e700836
Merge branch 'main' into remove-python37
holtskinner Mar 4, 2024
391fa33
Merge branch 'remove-python37' of https://github.com/googleapis/pytho…
holtskinner Mar 4, 2024
c956bfd
Update constraints
holtskinner Mar 4, 2024
0d15e40
Update google-api-core
holtskinner Mar 4, 2024
3434cbe
Update requirements.txt
holtskinner Mar 4, 2024
122fa6c
Add sync-repo-settings.yaml without Python 3.7
holtskinner Mar 5, 2024
1647d3d
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Mar 5, 2024
2fcbf4e
Update owlbot.py
holtskinner Mar 5, 2024
3db354b
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Mar 5, 2024
7ec865e
Remove samples 3.9-3.11 from sync-repo-settings
holtskinner Mar 5, 2024
6adf1ad
Remove pyarrow comment
holtskinner Mar 5, 2024
d44a6df
Update setup/constraints
holtskinner Mar 5, 2024
c603961
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] Mar 5, 2024
24a2190
Fix incorrect versions badge
holtskinner Mar 8, 2024
285b9af
Update setup.py
holtskinner Mar 8, 2024
4ba95f0
Merge branch 'main' into remove-python37
holtskinner Mar 8, 2024
21254ae
Merge branch 'main' into remove-python37
holtskinner Mar 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] committed Feb 26, 2024
commit 9fa6c874ec9b32ca924a75e2daf6b5cf054357ab
2 changes: 1 addition & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.8', '3.12']
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
6 changes: 4 additions & 2 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ In order to add a feature:
documentation.

- The feature must work fully on the following CPython versions:
3.8, 3.9, 3.10, 3.11 and 3.12 on both UNIX and Windows.
3.7, 3.8, 3.9, 3.10, 3.11 and 3.12 on both UNIX and Windows.

- The feature must not add unnecessary dependencies (where
"unnecessary" is of course subjective, but new dependencies should
@@ -221,12 +221,14 @@ Supported Python Versions

We support:

- `Python 3.7`_
- `Python 3.8`_
- `Python 3.9`_
- `Python 3.10`_
- `Python 3.11`_
- `Python 3.12`_

.. _Python 3.7: https://docs.python.org/3.7/
.. _Python 3.8: https://docs.python.org/3.8/
.. _Python 3.9: https://docs.python.org/3.9/
.. _Python 3.10: https://docs.python.org/3.10/
@@ -239,7 +241,7 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
.. _config: https://github.com/googleapis/python-documentai-toolbox/blob/main/noxfile.py


We also explicitly decided to support Python 3 beginning with version 3.8.
We also explicitly decided to support Python 3 beginning with version 3.7.
Reasons for this include:

- Encouraging use of newest versions of Python 3
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@

DEFAULT_PYTHON_VERSION = "3.8"

UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12"]
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
UNIT_TEST_STANDARD_DEPENDENCIES = [
"mock",
"asyncmock",
2 changes: 1 addition & 1 deletion scripts/readme-gen/templates/install_deps.tmpl.rst
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ Install Dependencies
.. _Python Development Environment Setup Guide:
https://cloud.google.com/python/setup

#. Create a virtualenv. Samples are compatible with Python 3.8+.
#. Create a virtualenv. Samples are compatible with Python 3.7+.

.. code-block:: bash

Loading