Bump requests to 2.33.0 and drop Python 3.9 support#318
Merged
Conversation
requests 2.33.0 patches GHSA-gc5v-m9x4-r6x2 (insecure temp-file reuse in extract_zipped_paths) but requires Python >=3.10. Python 3.9 reached end-of-life in October 2025, so raise the minimum supported version to 3.10 to take the security fix. - requires-python >=3.10; drop the 3.9 PyPI classifier - remove 3.9 from the CI matrices (ci.yml, publish-to-pypi.yml) and the two 3.9 Cloud Build steps - simplify the 3.9-only dependency shims: orjson uncapped (>=3.10.0), pytest pinned to the CVE-fixed 9.0.3 for all supported versions - update packaging tests for the new 3.10 floor and single orjson dep
maximelb
approved these changes
Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades
requeststo 2.33.0, which patches GHSA-gc5v-m9x4-r6x2 (insecure temp-file reuse inextract_zipped_paths(); vulnerable<2.33.0).requests2.33.0 requires Python >=3.10, so this raises the SDK's minimum supported Python to 3.10. Python 3.9 reached end-of-life in October 2025, so this is the natural time to drop it. This supersedes Dependabot #316 (which bumped onlyrequestsand could not merge because it broke the 3.9 CI job).Changes
requires-python = ">=3.10"; removed theProgramming Language :: Python :: 3.9classifier.requests==2.32.3->==2.33.0(the security fix).3.9from both CI matrices (ci.yml,publish-to-pypi.yml) and the twopython:3.9Cloud Build steps (cloudbuild_pr.yaml).orjsonis now a single uncapped>=3.10.0(orjson 3.11+ requires 3.10+).pytestpinned to9.0.3for all supported versions (carries the CVE-2025-71176 fix; previously the<3.10shim held it back to 8.3.4).tomlibackport kept for 3.10 (tomllibis stdlib only from 3.11).Test plan / validation (local, Python 3.11)
pip install ".[dev]"from source resolvesrequests 2.33.0,orjson 3.11.9,pytest 9.0.3.pytest tests/unit/ tests/microbenchmarks/ --benchmark-disable: 3744 passed, 5 skipped.test_packaging.py: 20/20 pass (incl. updatedtest_requires_python_minimumandtest_orjson_is_uncapped).python -m buildproduces sdist + wheel; built metadata showsRequires-Python: >=3.10, classifiers 3.10–3.14,requests==2.33.0,orjson>=3.10.0.