feat: Add Python 3.13/3.14 support and bump deps#117
Open
dshilovprpl wants to merge 3 commits intocasdoor:masterfrom
Open
feat: Add Python 3.13/3.14 support and bump deps#117dshilovprpl wants to merge 3 commits intocasdoor:masterfrom
dshilovprpl wants to merge 3 commits intocasdoor:masterfrom
Conversation
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.
Author
|
@hsluoyz Could you please review? I can't add you as rewiver to this PR. |
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.
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.