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

fix(pep440): Handle widening ranges with '~=' operator #15704

Merged
merged 3 commits into from May 28, 2022
Merged

fix(pep440): Handle widening ranges with '~=' operator #15704

merged 3 commits into from May 28, 2022

Conversation

scemily13
Copy link
Contributor

Changes

Update pep440 versioning to handle dependency ranges with the ~= operator when the versioning strategy is widen.

Context

Renovate is not correctly widening dependency ranges with the ~= operator.

Current functionality (e.g. new dependency version of 2.0.0):
Old range: ~=1.1.0
New range: ~=2.0.0

Correct functionality:
Old range: ~=1.1.0
New range: >=1.1.0,<3

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@viceice viceice changed the title fix(versioning): Handle widening ranges with '~=' operator fix(versioning:pep440): Handle widening ranges with '~=' operator May 24, 2022
@scemily13 scemily13 requested a review from viceice May 24, 2022 13:59
@viceice viceice requested review from rarkins and zharinov May 25, 2022 06:38
@rarkins rarkins changed the title fix(versioning:pep440): Handle widening ranges with '~=' operator fix(pep440): Handle widening ranges with '~=' operator May 28, 2022
@rarkins rarkins enabled auto-merge (squash) May 28, 2022 04:39
@rarkins rarkins disabled auto-merge May 28, 2022 04:39
@rarkins rarkins merged commit e563e22 into renovatebot:main May 28, 2022
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 32.66.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants