Skip to content

Commit d0810e8

Browse files
fix: Remove python 3.7 due to end of life (EOL) (#737)
* fix: removing Python 3.7 due to EOL * remove 3.7 from noxfile.py * remove 3.7 from owlbot.py * removed 3.7 from sample req.txt * removed constraints-3.7 * removed references to 3.7 in setup.py * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * adds lower end constraint for db-dtypes with Python 3.8 * removes two more references to 3.7 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * updates constraint * update constraints for 3.8 * remove protobuf as a direct dependency - test * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 366cb55 commit d0810e8

File tree

9 files changed

+30
-38
lines changed

9 files changed

+30
-38
lines changed

.github/sync-repo-settings.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ branchProtectionRules:
1111
- 'OwlBot Post Processor'
1212
- 'docs'
1313
- 'lint'
14-
- 'unit (3.7)'
1514
- 'unit (3.8)'
1615
- 'unit (3.9)'
1716
- 'unit (3.10)'
@@ -20,7 +19,6 @@ branchProtectionRules:
2019
- 'cover'
2120
- 'Kokoro'
2221
- 'Samples - Lint'
23-
- 'Samples - Python 3.7'
2422
- 'Samples - Python 3.8'
2523
- 'Samples - Python 3.9'
2624
- 'Samples - Python 3.10'

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
11+
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v4

CONTRIBUTING.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

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

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -148,7 +148,7 @@ Running System Tests
148148

149149
.. note::
150150

151-
System tests are only configured to run under Python 3.7, 3.8, 3.9, 3.10, 3.11 and 3.12.
151+
System tests are only configured to run under Python 3.8, 3.9, 3.10, 3.11 and 3.12.
152152
For expediency, we do not run them in older versions of Python 3.
153153

154154
This alone will not run the tests. You'll need to change some local
@@ -221,14 +221,12 @@ Supported Python Versions
221221

222222
We support:
223223

224-
- `Python 3.7`_
225224
- `Python 3.8`_
226225
- `Python 3.9`_
227226
- `Python 3.10`_
228227
- `Python 3.11`_
229228
- `Python 3.12`_
230229

231-
.. _Python 3.7: https://docs.python.org/3.7/
232230
.. _Python 3.8: https://docs.python.org/3.8/
233231
.. _Python 3.9: https://docs.python.org/3.9/
234232
.. _Python 3.10: https://docs.python.org/3.10/
@@ -241,7 +239,7 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
241239
.. _config: https://github.com/googleapis/python-bigquery-pandas/blob/main/noxfile.py
242240

243241

244-
We also explicitly decided to support Python 3 beginning with version 3.7.
242+
We also explicitly decided to support Python 3 beginning with version 3.8.
245243
Reasons for this include:
246244

247245
- Encouraging use of newest versions of Python 3

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
DEFAULT_PYTHON_VERSION = "3.8"
3333

3434

35-
UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
35+
UNIT_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"]
3636
UNIT_TEST_STANDARD_DEPENDENCIES = [
3737
"mock",
3838
"asyncmock",
@@ -58,7 +58,7 @@
5858
UNIT_TEST_PYTHON_VERSIONS[-1],
5959
]
6060

61-
SYSTEM_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
61+
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"]
6262
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6363
"mock",
6464
"pytest",
@@ -488,7 +488,7 @@ def prerelease_deps(session):
488488
session.install(*constraints_deps)
489489

490490
prerel_deps = [
491-
"protobuf",
491+
# "protobuf",
492492
# dependency of grpc
493493
"six",
494494
"googleapis-common-protos",

owlbot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
}
3636
extras = ["tqdm"]
3737
templated_files = common.py_library(
38-
unit_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"],
39-
system_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"],
38+
unit_test_python_versions=["3.8", "3.9", "3.10", "3.11", "3.12"],
39+
system_test_python_versions=["3.8", "3.9", "3.10", "3.11", "3.12"],
4040
cov_level=96,
4141
unit_test_external_dependencies=["freezegun"],
4242
unit_test_extras=extras,

samples/snippets/requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
google-cloud-bigquery-storage==2.24.0
22
google-cloud-bigquery==3.14.1
33
pandas-gbq==0.20.0
4-
pandas===1.3.5; python_version == '3.7'
54
pandas===2.0.3; python_version == '3.8'
65
pandas==2.1.4; python_version >= '3.9'
7-
pyarrow==12.0.1; python_version == '3.7'
86
pyarrow==14.0.1; python_version >= '3.8'

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
"License :: OSI Approved :: BSD License",
8686
"Programming Language :: Python",
8787
"Programming Language :: Python :: 3",
88-
"Programming Language :: Python :: 3.7",
8988
"Programming Language :: Python :: 3.8",
9089
"Programming Language :: Python :: 3.9",
9190
"Programming Language :: Python :: 3.10",
@@ -99,7 +98,7 @@
9998
packages=packages,
10099
install_requires=dependencies,
101100
extras_require=extras,
102-
python_requires=">=3.7",
101+
python_requires=">=3.8",
103102
include_package_data=True,
104103
zip_safe=False,
105104
)

testing/constraints-3.7.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.

testing/constraints-3.8.txt

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
numpy==1.17.5
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+
# protobuf==3.19.5
9+
db-dtypes==1.0.4
10+
google-api-core==2.10.2
11+
google-auth==2.13.0
12+
google-auth-oauthlib==0.7.0
13+
google-cloud-bigquery==3.3.5
14+
google-cloud-bigquery-storage==2.16.2
15+
numpy==1.16.6
16+
pandas==1.1.4
17+
pyarrow==3.0.0
18+
pydata-google-auth==1.5.0
19+
tqdm==4.23.0
20+
packaging==20.0.0

0 commit comments

Comments
 (0)