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

Begin deprecation of py.path usage #275

Merged
merged 2 commits into from Jun 18, 2021
Merged

Conversation

Anthchirp
Copy link
Member

py.path has been deprecated (rather: "in maintenance mode") for a long time, and since we moved to Python 3 there is no reason now to not use the standard library pathlib.Path objects.

This commit enables a DeprecationWarning when the pytest fixture does not specify a preferred return object type.

A deprecation plan is laid out in HISTORY.rst

@codecov
Copy link

codecov bot commented May 17, 2021

Codecov Report

Merging #275 (9d983e5) into master (08e7706) will increase coverage by 0.68%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #275      +/-   ##
==========================================
+ Coverage   53.93%   54.62%   +0.68%     
==========================================
  Files           6        6              
  Lines         330      335       +5     
==========================================
+ Hits          178      183       +5     
  Misses        152      152              

@Anthchirp
Copy link
Member Author

This will be deployed and released shortly, pending a few blocking issues as outlined in the DIALS core meeting:

xia2/xia2#597 ➡️ cctbx/dxtbx#381 ➡️ cctbx/dxtbx#383

py.path has been deprecated for a long time, and since we moved to
Python 3 there is no reason now to not use the standard library
pathlib.Path objects.

This commit enables a DeprecationWarning when the pytest fixture
does not specify a preferred return object type.
A deprecation plan is laid out in HISTORY.rst
@Anthchirp Anthchirp merged commit 9d983e5 into master Jun 18, 2021
@Anthchirp Anthchirp deleted the begin-py-path-deprecation branch June 18, 2021 08:28
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.

None yet

1 participant