-
-
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
cover double dependency on a prerelease (work in progress) #1732
Conversation
efd6339
to
a25cfa7
Compare
tests/test_pipenv.py
Outdated
transitive_pkg_version = '>=1.1.0rc1' | ||
c = p.pipenv('install {0}{1}'.format(target_package, preversion)) | ||
assert c.return_code == 0 | ||
c = p.pipenv('install {0}{1}'.format(transitive_pkg_name, transitive_pkg_version)) |
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.
this fails for the moment. I'm looking for a way of making it work
thank you for contributing actual code! |
✨🍰✨ |
this stuff is super tricky — don't pull your hair out trying to figure it out :) |
I would be glad to have some help :) |
If you want to hop on a Google Hangouts, let me know! |
Fix pypa#1696 Fix pypa#1687 Reference pypa#1693 Signed-off-by: Gaetan Semet <[email protected]>
42915b9
to
b2c777f
Compare
@@ -455,7 +455,7 @@ def _check_skip_installed(self, req_to_install, finder): | |||
elif self.upgrade_strategy == "only-if-needed": | |||
skip_reason = 'not upgraded as not directly required' | |||
else: | |||
skip_reason = 'already satisfied' | |||
skip_reason = 'already satisfied123' |
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.
?
closing due to inactivity |
Work in progress. This PR adds a unit test covering the case where a dependency and a transitive dependency both want a prerelease version of the same package.
When both use the pin (
==
) operator, it works, where one use a>=
operator, an error occurs:I would like to find where the two dependency are retrieved, along with their operator. I would like to add an evaluation "is the resolution not yet done for this dependency", before starting the whole "search for the best package" resolver (in pip module)
Fix #1696
Fix #1687
Reference #1693
Signed-off-by: Gaetan Semet [email protected]