Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 961eacd

Browse filesBrowse files
authored
feat(bigquery-magics): drop support for Python 3.9 (#16587)
Related to b/490130968 and b/470438395 🦕
1 parent 77c1df6 commit 961eacd
Copy full SHA for 961eacd

4 files changed

+36-32Lines changed: 36 additions & 32 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/bigquery-magics/noxfile.py‎

Copy file name to clipboardExpand all lines: packages/bigquery-magics/noxfile.py
+10-3Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@
3535
DEFAULT_PYTHON_VERSION = "3.14"
3636

3737
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
38-
"3.9",
3938
"3.10",
4039
"3.11",
4140
"3.12",
4241
"3.13",
4342
"3.14",
43+
# Not supported, but included so that we can explicitly skip the session
44+
# from here. Keep unsupported versions last so that they don't conflict with
45+
# the prerelease_deps session.
46+
"3.9",
4447
]
4548

4649
UNIT_TEST_STANDARD_DEPENDENCIES = [
@@ -62,8 +65,6 @@
6265
],
6366
"3.10": [
6467
"bqstorage",
65-
"bigframes",
66-
"geopandas",
6768
],
6869
"3.11": [],
6970
"3.12": [
@@ -223,6 +224,9 @@ def install_unittest_dependencies(session, *constraints):
223224

224225
@nox.session(python=UNIT_TEST_PYTHON_VERSIONS)
225226
def unit(session):
227+
if session.python == "3.9":
228+
session.skip("Python 3.9 is not supported.")
229+
226230
# Install all test dependencies, then install this package in-place.
227231

228232
constraints_path = str(
@@ -277,6 +281,9 @@ def install_systemtest_dependencies(session, with_extras, *constraints):
277281
@nox.parametrize("with_extras", [True, False])
278282
def system(session, with_extras):
279283
"""Run the system test suite."""
284+
if session.python == "3.9":
285+
session.skip("Python 3.9 is not supported.")
286+
280287
constraints_path = str(
281288
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
282289
)
Collapse file

‎packages/bigquery-magics/setup.py‎

Copy file name to clipboardExpand all lines: packages/bigquery-magics/setup.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,17 @@
2828
# 'Development Status :: 5 - Production/Stable'``
2929
release_status = "Development Status :: 4 - Beta"
3030
dependencies = [
31-
"db-dtypes>=0.3.0,<2.0.0",
31+
"db-dtypes>=1.1.1,<2.0.0",
3232
"google-cloud-bigquery >= 3.13.0, <4.0.0",
3333
"ipywidgets>=7.7.1",
3434
"ipython>=7.23.1",
3535
"ipykernel>=5.5.6",
3636
"packaging >= 20.0.0",
37-
"pandas>=1.2.0",
38-
"pyarrow >= 3.0.0",
37+
"pandas>=1.5.3",
38+
"pyarrow >= 12.0.0",
3939
"pydata-google-auth >=1.5.0",
4040
"tqdm >= 4.7.4, <5.0.0",
41+
"pyopenssl >= 23.3.0",
4142
]
4243
extras = {
4344
# bqstorage had a period where it was a required dependency, and has been
@@ -106,7 +107,6 @@
106107
"License :: OSI Approved :: Apache Software License",
107108
"Programming Language :: Python",
108109
"Programming Language :: Python :: 3",
109-
"Programming Language :: Python :: 3.9",
110110
"Programming Language :: Python :: 3.10",
111111
"Programming Language :: Python :: 3.11",
112112
"Programming Language :: Python :: 3.12",
@@ -119,7 +119,7 @@
119119
packages=packages,
120120
install_requires=dependencies,
121121
extras_require=extras,
122-
python_requires=">=3.9",
122+
python_requires=">=3.10",
123123
include_package_data=True,
124124
zip_safe=False,
125125
)
Collapse file
+21-6Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
# IMPORTANT: When Python 3.9 support is dropped, update these to
2-
# match the minimums in setup.py.
3-
# This is the last pandas 2.0.x release.
4-
pandas==2.0.3
5-
bigframes==1.17.0
6-
geopandas==1.0.1
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+
db-dtypes==1.1.1
9+
geopandas==1.0.1
10+
google-cloud-bigquery==3.13.0
11+
google-cloud-bigquery-storage==2.6.0
12+
ipywidgets==7.7.1
13+
ipython==7.23.1
14+
ipykernel==5.5.6
15+
numpy==1.26.4
16+
packaging==20.0.0
17+
pandas==1.5.3
18+
pyarrow==12.0.0
19+
pydata-google-auth==1.5.0
20+
pyopenssl==23.3.0
21+
tqdm==4.7.4
Collapse file

‎packages/bigquery-magics/testing/constraints-3.9.txt‎

Copy file name to clipboardExpand all lines: packages/bigquery-magics/testing/constraints-3.9.txt
-18Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.