Skip to content

feat: Add Python 3.13/3.14 support and bump deps#117

Open
dshilovprpl wants to merge 3 commits intocasdoor:masterfrom
dshilovprpl:feat/bump-deps-versions
Open

feat: Add Python 3.13/3.14 support and bump deps#117
dshilovprpl wants to merge 3 commits intocasdoor:masterfrom
dshilovprpl:feat/bump-deps-versions

Conversation

@dshilovprpl
Copy link
Copy Markdown

@dshilovprpl dshilovprpl commented Mar 29, 2026

Add classifiers for Python 3.13 and 3.14 (also ensure 3.12 listed) in pyproject.toml and setup.cfg, and extend Black target versions to include py312–py314. Also bump dependency versions in requirements.txt: aiohttp -> 3.13.4, cryptography -> 46.0.6, PyJWT -> 2.12.1, requests -> 2.33.0, setuptools -> >=82.0.0, yarl -> 1.23.0. These changes enable compatibility with newer Python releases and update third-party packages to newer versions.

Fixed tests.

Add classifiers for Python 3.13 and 3.14 (also ensure 3.12 listed) in pyproject.toml and setup.cfg, and extend Black target versions to include py312–py314. Also bump dependency versions in requirements.txt: aiohttp -> 3.13.4, cryptography -> 46.0.6, PyJWT -> 2.12.1, requests -> 2.33.0, setuptools -> >=82.0.0, yarl -> 1.23.0. These changes enable compatibility with newer Python releases and update third-party packages to newer versions.
Use timezone-aware UTC datetimes for entity creation and subscription times (add timezone import and apply datetime.timezone.utc). Update numerous tests to generate created_time in UTC. Adjust OAuth/enforcer tests: change permission_id namespace to "casbin/permission-built-in", relax the online/offline/all_count assertion, and modify user update flows to fetch the server-assigned user (id) before updating. Also set default fields in some test fixtures (e.g. plan.currency, product.currency, subscription.state) and fix permission.model to "casbin/user-model-built-in". These changes stabilize time handling and make tests align with server-assigned identifiers and updated resource naming.
Update CI workflow to use Python 3.14 in .github/workflows/build.yml. Reformat test code in src/tests/test_group.py and src/tests/test_webhook.py to use multi-line argument lists for Group.new and Webhook.new calls for improved readability/PEP8 compliance. No functional changes to logic or behavior.
@dshilovprpl
Copy link
Copy Markdown
Author

@hsluoyz Could you please review? I can't add you as rewiver to this PR.

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