Skip to content

Commit 33b5505

Browse files
authored
fix(google-resumable-media): Drop support for Python 3.9 (#16938)
This PR updates `google-resumable-media` to establish Python 3.10 as the minimum supported version, dropping support for Python 3.9 and below. ### Changes * Configuration: Updated `setup.py` and `noxfile.py` to require Python 3.10+ and remove references to Python 3.9. * Documentation: Updated `README.rst` to reflect the new supported and unsupported Python versions. * Constraints: Updated `constraints-3.10.txt` with minimum versions from `constraints-3.9.txt` and deleted `constraints-3.9.txt`. Fixes internal issue: http://b/482126936 🦕
1 parent b4fa220 commit 33b5505

5 files changed

Lines changed: 15 additions & 16 deletions

File tree

packages/google-resumable-media/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ support at `google._async_resumable_media`.
1616

1717
Supported Python Versions
1818
-------------------------
19-
Python >= 3.9
19+
Python >= 3.10
2020

2121
Unsupported Python Versions
2222
---------------------------
2323

24-
Python <= 3.8
24+
Python <= 3.9
2525

2626

2727
License

packages/google-resumable-media/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
RUFF_VERSION = "ruff==0.14.14"
2626

2727
DEFAULT_PYTHON_VERSION = "3.14"
28-
UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
28+
UNIT_TEST_PYTHON_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
2929
SYSTEM_TEST_PYTHON_VERSIONS = UNIT_TEST_PYTHON_VERSIONS
3030

3131
# Error if a python version is missing

packages/google-resumable-media/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,13 @@
5151
zip_safe=False,
5252
install_requires=REQUIREMENTS,
5353
extras_require=EXTRAS_REQUIRE,
54-
python_requires='>= 3.9',
54+
python_requires='>= 3.10',
5555
classifiers=[
5656
'Development Status :: 5 - Production/Stable',
5757
'Intended Audience :: Developers',
5858
'License :: OSI Approved :: Apache Software License',
5959
'Operating System :: OS Independent',
6060
'Programming Language :: Python :: 3',
61-
'Programming Language :: Python :: 3.9',
6261
'Programming Language :: Python :: 3.10',
6362
'Programming Language :: Python :: 3.11',
6463
'Programming Language :: Python :: 3.12',
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
crcmod==1.7
9+
google-crc32c==1.0
10+
aiohttp==3.6.2
11+
requests==2.23.0

packages/google-resumable-media/testing/constraints-3.9.txt

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

0 commit comments

Comments
 (0)