-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Use the project name to look up constraints #9241
Use the project name to look up constraints #9241
Conversation
# type: () -> str | ||
"""The normalised name of the project the candidate refers to""" | ||
if self._name is None: | ||
self._name = canonicalize_name(self.dist.project_name) | ||
return self._name | ||
|
||
name = project_name |
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.
D’uh. Seems like Mypy is not smart enough for this.
347d410
to
87adddb
Compare
User-specified constraints only contain the project name without extras, but a constraint a project A would also apply to A's extra variants. This introduces a new project_name property on Requirement and Candidate classes for this lookup.
87adddb
to
e2fb3e1
Compare
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'm wondering if we should change "name" to "identifier" or something more general like that, to denote that it's a separate concept.
Merging since I'd like to include this in the upcoming bugfix. @pfmoore Holler if there's any concerns. :) |
I though the same when I worked on this (maybe we should’ve name the property |
I confirm that this release allows me to install Apache Airflow with Here is the installation log: https://pastebin.com/g3bVyfwW |
No problem from me - sorry I haven't had time to review. |
Fix #9232.
User-specified constraints only contain the project name without extras, but a constraint a project A would also apply to A’s extra variants. This introduces a new
project_name
property onRequirement
andCandidate
classes for this lookup.