-
-
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
Issue 4371 incorrect dependencies when install dev packages #5234
Merged
matteius
merged 16 commits into
pypa:main
from
dqkqd:issue-4371-incorrect-dependencies-when-install-dev-packages
Aug 13, 2022
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6d1363c
Add test, ensure dev lock use default packages as constraints.
dqkqd 192ad9e
Use default packages as constraints when locking develop packages.
dqkqd 79471df
Add test, ensure installing dev-packages use default packages as cons…
dqkqd 30a6b1a
Use default packages as constraints when installing provided dev pack…
dqkqd f09d653
Remove flaky
dqkqd 7ab7b3d
change vistir.path.normalize_path to pipenv.utils.shell.normalize_path
dqkqd 23569fb
Add function that get contraints from packages.
dqkqd 83813f9
Add test for get_constraints_from_deps function
dqkqd 1eb8d6d
Use get_constraints_from_deps to get constraints
dqkqd 11969be
Use @cached_property instead of @property
dqkqd 0c098c8
Use @lru_cache and @property instead of @cached_property for python 3.7
dqkqd c5cb0f0
Use standalone utility to write constraints file
dqkqd d8ed209
Use pipenv.vendor.cached_property.
dqkqd beb8d3d
prepare_constraint_file use precomputed constraints.
dqkqd 6b3f23b
Change default value in prepare_constraint_file.
dqkqd b04442f
Add news fragment.
dqkqd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Use ``packages`` as contraints when locking ``dev-packages`` in Pipfile. | ||
Use ``packages`` as contraints when installing new ``dev-packages``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Could you explain more why we only include the default_constraints when dev is specified? I don't think I quite understand out of the gate. I got to looking at this more because this is the only place that uses self.dev, and I am noticing how many parameters
pip_install
takes already.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 think constraint is used only when installing dev-packages. If it does with new normal packages, the installing package could not overwrite existing packages, because it use them as contraint, and therefore might not be installed.
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.
Ah ok thanks, that makes sense.