Skip to content

Commit d70ffc2

Browse files
deps: Drop support for python 3.9
1 parent 76db295 commit d70ffc2

File tree

7 files changed

+13
-54
lines changed

7 files changed

+13
-54
lines changed

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-22.04
1515
strategy:
1616
matrix:
17-
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
17+
python: ['3.10', '3.11', '3.12', '3.13']
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v4

.kokoro/samples/python3.9/common.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ action {
1010
# Specify which tests to run
1111
env_vars: {
1212
key: "RUN_TESTS_SESSION"
13-
value: "py-3.9"
13+
value: "py-3.10"
1414
}
1515

1616
# Declare build specific Cloud project.
@@ -37,4 +37,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples"
3737
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
3838

3939
# Use the trampoline script to run in docker.
40-
build_file: "python-bigquery-dataframes/.kokoro/trampoline_v2.sh"
40+
build_file: "python-bigquery-dataframes/.kokoro/trampoline_v2.sh"

.kokoro/test-samples-impl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ env | grep KOKORO
3434

3535
# Install nox
3636
# `virtualenv==20.26.6` is added for Python 3.7 compatibility
37-
python3.9 -m pip install --upgrade --quiet nox virtualenv==20.26.6
37+
python3.10 -m pip install --upgrade --quiet nox virtualenv==20.26.6
3838

3939
# Use secrets acessor service account to get secrets
4040
if [[ -f "${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" ]]; then
@@ -77,7 +77,7 @@ for file in samples/**/requirements.txt; do
7777
echo "------------------------------------------------------------"
7878

7979
# Use nox to execute the tests for the project.
80-
python3.9 -m nox -s "$RUN_TESTS_SESSION"
80+
python3.10 -m nox -s "$RUN_TESTS_SESSION"
8181
EXIT=$?
8282

8383
# If this is a periodic build, send the test log to the FlakyBot.

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.9, 3.10, 3.11, 3.12 and 3.13 on both UNIX and Windows.
25+
3.10, 3.11, 3.12 and 3.13 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.9, 3.11, 3.12 and 3.13.
151+
System tests are only configured to run under Python 3.10, 3.11, 3.12 and 3.13.
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
@@ -258,13 +258,11 @@ Supported Python Versions
258258

259259
We support:
260260

261-
- `Python 3.9`_
262261
- `Python 3.10`_
263262
- `Python 3.11`_
264263
- `Python 3.12`_
265264
- `Python 3.13`_
266265

267-
.. _Python 3.9: https://docs.python.org/3.9/
268266
.. _Python 3.10: https://docs.python.org/3.10/
269267
.. _Python 3.11: https://docs.python.org/3.11/
270268
.. _Python 3.12: https://docs.python.org/3.12/
@@ -276,7 +274,7 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
276274
.. _config: https://github.com/googleapis/python-bigquery-dataframes/blob/main/noxfile.py
277275

278276

279-
We also explicitly decided to support Python 3 beginning with version 3.9.
277+
We also explicitly decided to support Python 3 beginning with version 3.10.
280278
Reasons for this include:
281279

282280
- Encouraging use of newest versions of Python 3

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
# https://cloud.google.com/run/docs/runtimes/python
6565
E2E_TEST_PYTHON_VERSION = "3.12"
6666

67-
UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
67+
UNIT_TEST_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13"]
6868
UNIT_TEST_STANDARD_DEPENDENCIES = [
6969
"mock",
7070
"asyncmock",
@@ -89,7 +89,7 @@
8989
# 3.10 is needed for Windows tests as it is the only version installed in the
9090
# bigframes-windows container image. For more information, search
9191
# bigframes/windows-docker, internally.
92-
SYSTEM_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
92+
SYSTEM_TEST_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13"]
9393
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
9494
"jinja2",
9595
"mock",
@@ -129,7 +129,7 @@
129129
# TODO(tswast): Consider removing this when unit_noextras and cover is run
130130
# from GitHub actions.
131131
"unit_noextras",
132-
"system-3.9", # No extras.
132+
"system-3.10", # No extras.
133133
f"system-{LATEST_FULLY_SUPPORTED_PYTHON}", # All extras.
134134
"cover",
135135
# TODO(b/401609005): remove

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# 'Development Status :: 5 - Production/Stable'
3434
release_status = "Development Status :: 5 - Production/Stable"
3535
dependencies = [
36-
# please keep these in sync with the minimum versions in testing/constraints-3.9.txt
36+
# please keep these in sync with the minimum versions in testing/constraints-3.10.txt
3737
"cloudpickle >= 2.0.0",
3838
"fsspec >=2023.3.0",
3939
"gcsfs >=2023.3.0, !=2025.5.0",
@@ -134,7 +134,6 @@
134134
"License :: OSI Approved :: Apache Software License",
135135
"Programming Language :: Python",
136136
"Programming Language :: Python :: 3",
137-
"Programming Language :: Python :: 3.9",
138137
"Programming Language :: Python :: 3.10",
139138
"Programming Language :: Python :: 3.11",
140139
"Programming Language :: Python :: 3.12",
@@ -150,7 +149,7 @@
150149
"bigframes_vendored": "third_party/bigframes_vendored",
151150
},
152151
packages=packages,
153-
python_requires=">=3.9",
152+
python_requires=">=3.10",
154153
include_package_data=True,
155154
zip_safe=False,
156155
)

testing/constraints-3.9.txt

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

0 commit comments

Comments
 (0)