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

Fix recursive PEP 508 VCS resolution #4241

Merged
merged 2 commits into from
May 6, 2020
Merged

Fix recursive PEP 508 VCS resolution #4241

merged 2 commits into from
May 6, 2020

Conversation

techalchemy
Copy link
Member

Signed-off-by: Dan Ryan [email protected]

@techalchemy techalchemy requested review from frostming and uranusjr and removed request for frostming May 5, 2020 19:20
@techalchemy techalchemy added Category: Dependency Resolution Issue relates to dependency resolution. Category: VCS Relates to version control system dependencies. Priority: Critical This issue is critical and affects usability or core functionality. labels May 5, 2020
@@ -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)
Copy link
Member

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.

Copy link
Member Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason behind this?

Copy link
Member Author

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]>
@techalchemy techalchemy merged commit cdcf777 into master May 6, 2020
@techalchemy techalchemy deleted the bugfix/4217 branch May 6, 2020 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Dependency Resolution Issue relates to dependency resolution. Category: VCS Relates to version control system dependencies. Priority: Critical This issue is critical and affects usability or core functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pipenv 2020.4.1b1: Invalid fragment string How to install packages with a vcs dependency in their setup.py
3 participants