-
Notifications
You must be signed in to change notification settings - Fork 347
Use pathlib2 #636
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
Use pathlib2 #636
Conversation
The dependency on `pathlib` was added in pytest-dev#631. A backport is needed for Python <3.4. The `pathlib` package [on PyPI](https://pypi.org/project/pathlib/) is maintenance-only and comes with a message about using `pathlib2` for an up-to-date version, still importable as `pathlib`. Also `pytest` itself uses `pathlib2` so currently I'm getting both packages installed, one on top of the other, woops! This change in `setup.py` seems to be all that's needed to switch.
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.
Thanks, but from CI failures it looks like it needs something else for Python 2?
Woops, turns out they don't have the same library name. |
Codecov Report
@@ Coverage Diff @@
## master #636 +/- ##
==========================================
+ Coverage 85.76% 92.68% +6.91%
==========================================
Files 33 33
Lines 1799 1805 +6
Branches 154 154
==========================================
+ Hits 1543 1673 +130
+ Misses 204 94 -110
+ Partials 52 38 -14
Continue to review full report at Codecov.
|
looks like pytest are going to start exposing pathlib: https://twitter.com/ossronny/status/1043438562535006209?s=19 |
@graingert |
This code should change to |
Ah, I see. Thanks. |
Made #660 |
The dependency on
pathlib
was added in #631. A backport is needed for Python <3.4.The
pathlib
package on PyPI is maintenance-only and comes with a message about usingpathlib2
for an up-to-date version. Alsopytest
itself usespathlib2
so currently I'm getting both packages installed when one would do.This change in
setup.py
seems to be all that's needed to switch.