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

cover double dependency on a prerelease (work in progress) #1732

Closed
wants to merge 2 commits into from

Conversation

gsemet
Copy link
Contributor

@gsemet gsemet commented Mar 14, 2018

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:

Your dependencies could not be resolved

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]

@gsemet gsemet force-pushed the pinned_preversion branch from efd6339 to a25cfa7 Compare March 14, 2018 11:48
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))
Copy link
Contributor Author

@gsemet gsemet Mar 14, 2018

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

@kennethreitz
Copy link
Contributor

thank you for contributing actual code!

@kennethreitz
Copy link
Contributor

✨🍰✨

@kennethreitz
Copy link
Contributor

this stuff is super tricky — don't pull your hair out trying to figure it out :)

@gsemet
Copy link
Contributor Author

gsemet commented Mar 14, 2018

I would be glad to have some help :)

@kennethreitz
Copy link
Contributor

If you want to hop on a Google Hangouts, let me know!

@gsemet gsemet force-pushed the pinned_preversion branch from 42915b9 to b2c777f Compare March 31, 2018 07:22
@kennethreitz kennethreitz changed the title WIP: cover double dependency on a prerelease cover double dependency on a prerelease (work in progress) May 23, 2018
@@ -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'
Copy link
Contributor

Choose a reason for hiding this comment

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

?

@kennethreitz
Copy link
Contributor

closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--pre per–package version conflicts should indicate which dependencies have conflicting requirements
2 participants