Repository navigation
Update dependencies, fix security alerts, support Python 3.10–3.15 (0.1.8) - #11
Merged
Merged
Conversation
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>
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.
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 intostress-test/. Ships as0.1.8.Security fixes
>=2.8.0, now also ininstall_requiresso it reachespip install databunkerprousers, not onlyrequirements.txt>=84.1.0>=26.10.1actions/missing-workflow-permissionsinci.ymlpermissions: contents: readpy/clear-text-logging-sensitive-data:bulk_user_creator.pyprinted the API tokenprint(api_token)removedThere are no open Dependabot alerts, and
pip-auditfinds nothing against the resolved dependency set.Dependencies
>=2.32.4>=2.34.2>=2.5.0>=2.8.0>=6.0>=9.2.0>=2.0>=7.1.0>=21.0>=26.10.1>=5.0>=9.0.2>=0.910>=2.4.1>=2.33.0.20261030>=84.1.0Python versions
python_requiresgoes from>=3.7to>=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 importstyping.TypedDict(3.8+), and CI only ran 3.9 and 3.10. Users on older interpreters are not broken, because pip readspython_requiresand keeps offering them 0.1.7.target-versionand 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.pyandrandom_user_fetcher.pymove from the repo root tostress-test/unchanged, and a new README section documents them. They are for local load testing only:bulk_user_creator.pycreates 1,000,000 users by default. No pipeline executes them. pytest is limited totests/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 .andisort --check-only .: cleanmypy databunkerpro/: no issuespip-audit: no known vulnerabilitiespytest tests/: 38 passed against the live API on both versionsNot included
semgrep.ymlstill pinssemgrep==1.170.0(latest is 1.185.0). Its comment says to bump deliberately and keep it in sync with the sibling SDK repos.DATABUNKER_API_TOKENfallback). That token is also in this public repo's history.License :: OSI Approved :: MIT Licenseclassifier is deprecated in favour of an SPDXlicenseexpression. Warning only for now.test_*methods intests/test_api.pyreturn a value, whichunittestdeprecates on 3.12+. This predates this PR and is a warning only.🤖 Generated with Claude Code