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

Update docs for tilde-equals in package versions #5650

Merged
merged 3 commits into from
Apr 17, 2023

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 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
18 checks passed
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