-
Notifications
You must be signed in to change notification settings - Fork 661
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
MAINT: Python 3.12 cleanups part 2 #4301
Merged
IAlibay
merged 1 commit into
MDAnalysis:develop
from
tylerjereddy:treddy_transformations_modernize
Oct 12, 2023
Merged
MAINT: Python 3.12 cleanups part 2 #4301
IAlibay
merged 1 commit into
MDAnalysis:develop
from
tylerjereddy:treddy_transformations_modernize
Oct 12, 2023
Conversation
This file contains 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
* `PyUnicode_GetSize` has been deprecated since CPython 3.3, and is now gone in 3.12, so replace it with the suggestion from the official docs, `PyUnicode_GET_LENGTH`; this seems to fix 9 more failures with `3.12.0rc3` locally while still passing with `3.11.x` * while I'm in the `transformations` neighborhood, get rid of the Python 2.x shims peppered all over the place--we're long past supporting that [skip cirrus]
Linter Bot Results:Hi @tylerjereddy! Thanks for making this PR. We linted your code and found the following: There are currently no issues detected! 🎉 |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## develop #4301 +/- ##
==========================================
Coverage 93.40% 93.40%
==========================================
Files 170 184 +14
Lines 22257 23365 +1108
Branches 4071 4071
==========================================
+ Hits 20790 21825 +1035
- Misses 951 1024 +73
Partials 516 516 ☔ View full report in Codecov by Sentry. |
tylerjereddy
added a commit
to tylerjereddy/mdanalysis
that referenced
this pull request
Oct 2, 2023
* force the use of a relative path for `mkdtemp` in our source code because, from the Python `3.12` release notes: > `tempfile.mkdtemp() now always returns an absolute path, even if the argument provided to the dir parameter is a relative path.` * with this patch, the full testsuite now passes on Python `3.12.0` (which is now out) when combined with MDAnalysisgh-4301 and MDAnalysisgh-4300 (though see my cautions about thread safety/concurrency for the latter) * this fixes the 1 remaining failure with 3.12: `MDAnalysisTests/analysis/test_hole2.py::TestCheckAndFixLongFilename::test_symlink_dir` [skip cirrus]
richardjgowers
approved these changes
Oct 3, 2023
IAlibay
pushed a commit
that referenced
this pull request
Oct 12, 2023
* force the use of a relative path for `mkdtemp` in our source code because, from the Python `3.12` release notes: > `tempfile.mkdtemp() now always returns an absolute path, even if the argument provided to the dir parameter is a relative path.` * with this patch, the full testsuite now passes on Python `3.12.0` (which is now out) when combined with gh-4301 and gh-4300 (though see my cautions about thread safety/concurrency for the latter) * this fixes the 1 remaining failure with 3.12: `MDAnalysisTests/analysis/test_hole2.py::TestCheckAndFixLongFilename::test_symlink_dir` [skip cirrus]
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.
PyUnicode_GetSize
has been deprecated since CPython 3.3, and is now gone in 3.12, so replace it with the suggestion from the official docs,PyUnicode_GET_LENGTH
; this seems to fix 9 more failures with3.12.0rc3
locally while still passing with3.11.x
while I'm in the
transformations
neighborhood, get rid of the Python 2.x shims peppered all over the place--we're long past supporting that[skip cirrus]
📚 Documentation preview 📚: https://mdanalysis--4301.org.readthedocs.build/en/4301/