Skip to content

Conversation

ryan-rozario
Copy link
Contributor

The issue

Fixes #5594

The fix

Added clarity to the example about tilde-equals operator for package versions

The checklist

  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix.rst, .feature.rst, .behavior.rst, .doc.rst. .vendor.rst. or .trivial.rst (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

$ pipenv install requests~=1.1

Pipenv will install version `1.2` and any minor update, but not `2.0`.
Pipenv will install version `1.2` as it is a minor update, but not `2.0`.
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should also provide an example of using tilde to allow updating the major version, example ~1 would allow upgrading to I guess, anything? It seems like a strange use case now that I mention it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added an example that allows micro version updates. Which would be more common usecase.
I dont think we need an example for updating major version.

@matteius matteius merged commit da5e75c into pypa:main Apr 17, 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.

installing package with ~= leads to installing the latest version of that package

2 participants