Support for Python's ~=
version specifier
#8280
-
Hi! We recently started POC'ing Renovate for our Python packages. However, we couldn't tackle the issue where Renovate doesn't respect The way we specify the versions in
In more elaborate terms, if a package has a stable version (major > 0), then pin its major version and require equal or bigger minor version. If the major version of the specified version is 0, then pin its both major and minor version and require equal or bigger patch version. The versions that I want Renovate to suggest to us are like the following:
whilst the actual behaviour is as follows:
The behaviour is the same with and without Thus, my two questions are:
Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Renovate already has support for Python's For any language, if you want Renovate to update a constraint when the new version satisfies the existing range, then you must configure If you want patch updates when minor updates also exist then you also need to configure Can you configure both of these and create a minimal reproduction repo to demonstrate if it's a bug? |
Beta Was this translation helpful? Give feedback.
Renovate already has support for Python's
~=
operator, although there's always a possibility there's a bug. You can see existing tests in this test file: https://github.com/renovatebot/renovate/blob/master/lib/versioning/pep440/index.spec.tsFor any language, if you want Renovate to update a constraint when the new version satisfies the existing range, then you must configure
"rangeStrategy": "bump"
. You'll never get an in-range update with the default rangeStrategy=replace.If you want patch updates when minor updates also exist then you also need to configure
"separateMinorPatch": true
. Otherwise default behaviour is to propose the latest non-major update.Can you configure both of thes…