-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[WIP] port cache plugin internals to pathlib #3594
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
Conversation
| from os.path import sep as _sep, altsep as _altsep | ||
| import shutil | ||
|
|
||
| from . import paths |
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.
I think you forgot to include paths.py into the commit.
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.
fixed
src/_pytest/cacheprovider.py
Outdated
| cachedir.mkdir() | ||
| return cls(cachedir) | ||
|
|
||
| _cachedir = attr.ib(repr=False) |
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.
For consistency we maybe should keep all attr.ib declarations at the start of the class declaration, before any methods?
src/_pytest/compat.py
Outdated
| else: | ||
| from funcsigs import signature, Parameter as Parameter | ||
| from pathlib2 import Path | ||
| Path |
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.
Extra symbol here, accident?
|
@RonnyPfannschmidt it seems there's one failing test still. |
|
@nicoddemus test_cache_failure_warns needs the warnings fixed/reintegrated, i'd like to talk about that (hence the the python2 failures are due to my neglect and will be fixed later |
|
man. py34 is broken due to its broken pathlib ^^ part of me wants to drop support, will fix later |
|
Do we have an idea of when we plan to drop py34 btw? |
|
@nicoddemus https://devguide.python.org/#status-of-python-branches - eol is in about 9 months, i#d wait at least another 6 months |
|
Fair enough, thanks for the link! |
|
seems i was wrong about 3.4, needs 3.5 as well i suppose |
| class Cache(object): | ||
|
|
||
| def __init__(self, config): | ||
| self.config = config |
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.
i realized that removing config and trace is not a good change as its "public" api
|
benhoyt/scandir#53 for pypy on windows :/ |
warning logging got broken by detanglement from config
b367009 to
c4c666c
Compare
|
@nicoddemus is it permissible to kill off the windows pypy testing until we can get it to build scandir and/or provide a wheel? |
warning logging got broken by detanglement from config
changelogfolder, with a name like<ISSUE NUMBER>.<TYPE>.rst. See changelog/README.rst for details.