Skip to content

Update dependencies, fix security alerts, support Python 3.10–3.15 (0.1.8) - #11

Merged
stremovsky merged 3 commits into
mainfrom
update-python-deps
Nov 14, 2026
Merged

stremovsky merged 3 commits into
mainfrom
update-python-deps

Conversation

@stremovsky

@stremovsky stremovsky commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

What

Updates every Python dependency to its current release, fixes all open security advisories and code-scanning alerts, supports Python 3.10 through 3.15 (floor raised from >=3.7), and moves the local stress-test scripts into stress-test/. Ships as 0.1.8.

Security fixes

Source Issue Fix
urllib3 2.7.0 GHSA-8988-9cw3-xx77, GHSA-gh4c-6fx4-qh6g, GHSA-vxq7-64xx-v4gw >=2.8.0, now also in install_requires so it reaches pip install databunkerpro users, not only requirements.txt
setuptools (build floor) GHSA-5rjg-fvgr-3xxf, GHSA-h35f-9h28-mq5c, GHSA-xmj3-9gf7-h52w >=84.1.0
black GHSA-cg8m-r9f2-5wm2 >=26.10.1
CodeQL #5, #6, #7 actions/missing-workflow-permissions in ci.yml top-level permissions: contents: read
CodeQL #4 py/clear-text-logging-sensitive-data: bulk_user_creator.py printed the API token print(api_token) removed

There are no open Dependabot alerts, and pip-audit finds nothing against the resolved dependency set.

Dependencies

Package Was Now
requests >=2.32.4 >=2.34.2
urllib3 >=2.5.0 >=2.8.0
pytest >=6.0 >=9.2.0
pytest-cov >=2.0 >=7.1.0
black >=21.0 >=26.10.1
isort >=5.0 >=9.0.2
mypy >=0.910 >=2.4.1
types-requests unpinned >=2.33.0.20261030
setuptools (build) unpinned >=84.1.0

Python versions

  • python_requires goes from >=3.7 to >=3.10. Every current release above requires 3.10+, and 3.9 reached EOL in October 2025. The old floor had never been tested: the package imports typing.TypedDict (3.8+), and CI only ran 3.9 and 3.10. Users on older interpreters are not broken, because pip reads python_requires and keeps offering them 0.1.7.
  • Classifiers, black target-version and the CI test matrix now cover 3.10–3.15. Lint and deploy run on 3.14.

Stress-test scripts

bulk_user_creator.py, bulk_user_fetcher.py and random_user_fetcher.py move from the repo root to stress-test/ unchanged, and a new README section documents them. They are for local load testing only: bulk_user_creator.py creates 1,000,000 users by default. No pipeline executes them. pytest is limited to tests/test_*.py, and the folder has a hyphenated name and no __init__.py, so it stays out of the PyPI build. user_tokens.txt, which the scripts fill with real user tokens, is now gitignored.

Version

Bumped to 0.1.8. The deploy job uploads with --skip-existing, so leaving it at 0.1.7 would make the publish step a silent no-op.

Verification

In clean Python 3.14 and 3.15 venvs with pip install -e ".[dev]":

  • black --check . and isort --check-only .: clean
  • mypy databunkerpro/: no issues
  • pip-audit: no known vulnerabilities
  • pytest tests/: 38 passed against the live API on both versions

Not included

  • semgrep.yml still pins semgrep==1.170.0 (latest is 1.185.0). Its comment says to bump deliberately and keep it in sync with the sibling SDK repos.
  • The stress-test scripts still default to a hard-coded local dev token (DATABUNKER_API_TOKEN fallback). That token is also in this public repo's history.
  • setuptools 84 warns that the License :: OSI Approved :: MIT License classifier is deprecated in favour of an SPDX license expression. Warning only for now.
  • Several test_* methods in tests/test_api.py return a value, which unittest deprecates on 3.12+. This predates this PR and is a warning only.

🤖 Generated with Claude Code

stremovsky and others added 3 commits August 25, 2026 10:53
Every current release of our dependencies now requires Python >= 3.10:
requests 2.34.2, urllib3 2.7.0, pytest 9.1.1, black 26.5.1, isort 8.0.1,
mypy 2.3.1 and types-requests all dropped 3.9. Python 3.9 reached EOL in
October 2025, so staying below 3.10 would mean pinning the whole toolchain
to releases that no longer receive upstream fixes -- including the two
packages requirements.txt pins specifically for CVE remediation.

Raise python_requires from >=3.7 to >=3.10 and take the latest of
everything. The 3.7/3.8/3.9 classifiers were already stale: the package has
imported typing.TypedDict (3.8+) for a while, and CI only ever tested 3.9
and 3.10, so the declared floor was never actually exercised. Existing
users on old interpreters stay on 0.1.7 -- pip reads python_requires and
will not offer them this release.

CI now tests 3.10 through 3.13 instead of just 3.9 and 3.10, and the lint
and deploy jobs move to 3.13. Also bump the setuptools build floor to 77.

Bump the version to 0.1.8 in the same commit: the deploy job uploads with
--skip-existing, so leaving it at 0.1.7 would make the publish step a
silent no-op and none of this would reach PyPI.

Verified in a clean venv: black, isort and mypy are clean, and the full
suite passes against the live API (38 tests, 114 subtests).

Co-Authored-By: Claude <noreply@anthropic.com>
Dependency advisories (from OSV):
- urllib3 >=2.8.0: fixes GHSA-8988-9cw3-xx77, GHSA-gh4c-6fx4-qh6g and
  GHSA-vxq7-64xx-v4gw. Also added to install_requires, since
  requirements.txt alone never reached users installing from PyPI.
- setuptools build floor >=84.1.0: fixes GHSA-5rjg-fvgr-3xxf,
  GHSA-h35f-9h28-mq5c and GHSA-xmj3-9gf7-h52w.
- black >=26.10.1: fixes GHSA-cg8m-r9f2-5wm2.

Open CodeQL alerts:
- actions/missing-workflow-permissions (#5, #6, #7): ci.yml now sets
  top-level `permissions: contents: read`.
- py/clear-text-logging-sensitive-data (#4): bulk_user_creator.py no
  longer prints the API token.

Also bumped pytest 9.2.0, isort 9.0.2, mypy 2.4.1 and types-requests
2.33.0.20261030. Added 3.14 and 3.15 classifiers, black targets and CI
matrix entries. Lint and deploy now run on 3.14.

Verified in clean 3.14 and 3.15 venvs: black, isort and mypy are clean,
pip-audit finds nothing, and all 38 tests pass against the live API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bulk_user_creator.py, bulk_user_fetcher.py and random_user_fetcher.py are
for local load testing only (bulk_user_creator.py alone creates 1,000,000
users), so group them in stress-test/ and document them in the README's
Development section. Gitignore the user_tokens.txt they write, since it
holds real user tokens. The directory has no __init__.py and a hyphenated
name, so find_packages() keeps it out of the PyPI package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stremovsky stremovsky changed the title Update Python dependencies and raise floor to 3.10 (0.1.8) Update dependencies, fix security alerts, support Python 3.10–3.15 (0.1.8) Nov 14, 2026
@stremovsky
stremovsky merged commit 9ba32b2 into main Nov 14, 2026
11 checks passed
@stremovsky
stremovsky deleted the update-python-deps branch November 14, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant