-
Notifications
You must be signed in to change notification settings - Fork 344
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
Remove py #631
Remove py #631
Conversation
Codecov Report
@@ Coverage Diff @@
## master #631 +/- ##
==========================================
+ Coverage 92.36% 92.37% +0.01%
==========================================
Files 32 32
Lines 1715 1719 +4
Branches 142 145 +3
==========================================
+ Hits 1584 1588 +4
+ Misses 94 93 -1
- Partials 37 38 +1
Continue to review full report at Codecov.
|
return arg | ||
for parent in arg.parents: | ||
if is_django_project(parent): | ||
return parent |
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.
@voidus
This (looking at parent) is a behavior change already, isn't it?
(at least it is not covered with tests)
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.
Oh, sorry.. arg.parts(reverse=True)
handled this before
py is in maintenance mode and there are modern alternatives.
@voidus |
As far as I can see, this looks good. =) (I just want to mention again that I couldn't get the tests to work on my machine, so don't take my word for it) |
Thanks. Not even with tox? |
Ah, I probably need a database server running, right? I didn't really have the time to look into it, and I don't really want to run a shared postgres server on my workstation. |
|
That actually worked, thanks. Now I can see that everything passes (with sqlite at least) :) |
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.
The dependency on `pathlib` was added in #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.
No description provided.