-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix recursive PEP 508 VCS resolution #4241
Conversation
@@ -181,6 +181,8 @@ def format_requirement(ireq, marker=None, hashes=None): | |||
""" | |||
if ireq.editable: | |||
line = "-e {}".format(ireq.link.url) | |||
elif ireq.link and ireq.link.is_vcs: | |||
line = str(ireq.req) |
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.
Should we surface this problem to upstream? or is this issue specific to pipenv.
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 this is specific to pipenv -- or possibly it is now fixed in piptools, since piptools captures and caches the vcs dependency correctly now
pipenv/utils.py
Outdated
@@ -760,7 +764,7 @@ def repository(self): | |||
from pipenv.patched.piptools.repositories.pypi import PyPIRepository | |||
self._repository = PyPIRepository( | |||
self.pip_args, use_json=False, session=self.session, | |||
build_isolation=self.pip_options.build_isolation | |||
build_isolation=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.
Any reason behind this?
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 hrm, no... I can't even remember why I did this now
- Recursively resolve PEP 508 URLs in subdependencies - Fix `piptools` cache storage of VCS dependencies as results - Avoid saving VCS dependency versions to `Pipfile.lock` - Fixes #3396 - Fixes #4217 Signed-off-by: Dan Ryan <[email protected]>
Signed-off-by: Dan Ryan <[email protected]>
piptools
cache storage of VCS dependencies as resultsPipfile.lock
Signed-off-by: Dan Ryan [email protected]