-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support python 3.12 #1395
base: master
Are you sure you want to change the base?
Support python 3.12 #1395
Conversation
ChristopherMacGown
commented
Sep 18, 2024
- typing: remove types-pkg-resources package
- fix: recursive_guard is a KW_ONLY arg in 3.12.4+
The package has been yanked on pypi as it has been superceded by types-setuptools. However, setuptools now provides type-hints for the pkg-resources package, so it is no longer needed. Additionally, it does not appear to be used in the project at all, so it appears vestigial.
Python 3.9 added recursive_guard to ForwardRef._evaluate to prevent infinite recursion of recursive types. This is a private method, and no API contract is provided. So, when the API changed in the 3.12.4 release they did not bother to document it, or highlight that it is a breaking release.
Versions of setuptools prior to 70.0.0 were vulnerable to a remote execution exploit documented in CVE-2024-6345-setuptools.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1395 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 206 206
Lines 14940 14940
=========================================
Hits 14940 14940
|
CodSpeed Performance ReportMerging #1395 will improve performances by 21.99%Comparing Summary
Benchmarks breakdown
|
@@ -55,6 +55,7 @@ asyncpg = { version = ">=0.28,<0.30", optional = true } | |||
psycopg2-binary = { version = "^2.9.1", optional = true } | |||
mysqlclient = { version = "^2.1.0", optional = true } | |||
PyMySQL = { version = "^1.1.0", optional = true } | |||
setuptools = "^75.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeFactor failed the prior commit due to GHSA-cx63-2mw6-8hw5
Please also add 3.12 to the test matrix in ormar/.github/workflows/test-package.yml Line 20 in 1cd9204
|
Regarding the failed test, |
I guess we can bump it and unify the version, note that you will have to relock the file with new version probably. |