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

Improve direct URL upgrade #2

Closed

Conversation

sbidoul
Copy link

@sbidoul sbidoul commented Jun 22, 2022

No description provided.

sbidoul added 3 commits June 22, 2022 20:04
When installing a candidate specified with version requirements over a
direct URL installed distribution, force reinstallation
if --upgrade was specified. If --upgrade was not
specified, reinstall only if the version does not match.
@@ -280,6 +280,9 @@ def _get_installed_candidate() -> Optional[Candidate]:
# the current dependency graph.
if not specifier.contains(installed_dist.version, prereleases=True):
return None
if installed_dist.direct_url or installed_dist.editable:
# Defer to _get_ireq.
return None
Copy link
Author

Choose a reason for hiding this comment

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

This is not correct... perhaps we should defer to _get_ireq only when --upgrade is specified.

@uranusjr uranusjr force-pushed the explicit-url-upgrade-sbi branch from 7690d52 to 898057b Compare November 10, 2022 23:36
@uranusjr
Copy link
Owner

uranusjr commented Jan 3, 2023

Changes incorported into 32824c8.

@uranusjr uranusjr closed this Jan 3, 2023
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.

2 participants