Skip to content
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: mkdtemp 3.12 support #4309

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

tylerjereddy
Copy link
Member

@tylerjereddy tylerjereddy commented 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 (x86_64 Linux) Python 3.12.0 (which is now out) when combined with MAINT: Python 3.12 cleanups part 2 #4301 and MAINT: Python 3.12 support improve #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]


📚 Documentation preview 📚: https://mdanalysis--4309.org.readthedocs.build/en/4309/

* 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]
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

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
Copy link

codecov bot commented Oct 2, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (427f1a7) 93.40% compared to head (6a7f2f2) 93.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##           develop    #4309     +/-   ##
==========================================
  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             
Files Coverage Δ
package/MDAnalysis/analysis/hole2/utils.py 74.84% <100.00%> (ø)

... and 14 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@IAlibay
Copy link
Member

IAlibay commented Oct 2, 2023

Thanks @tylerjereddy !

I'll try to get the py3.12 CI PR updated tomorrow and we can start merging in all your PRs.

@IAlibay IAlibay merged commit a522325 into MDAnalysis:develop Oct 12, 2023
23 checks passed
@tylerjereddy tylerjereddy deleted the treddy_312_support_pt3 branch October 15, 2023 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants