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

pep440 and poetry versionings strip Epoch segment #34461

Open
RahulGautamSingh opened this issue Feb 25, 2025 · 0 comments
Open

pep440 and poetry versionings strip Epoch segment #34461

RahulGautamSingh opened this issue Feb 25, 2025 · 0 comments
Labels
priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others versioning:pep440 PEP440 versioning scheme versioning:poetry Poetry versioning scheme

Comments

@RahulGautamSingh
Copy link
Collaborator

Discussed in #34449

Originally posted by chkpwd February 25, 2025

How are you running Renovate?

A Mend.io-hosted app

There is an issue with the newValue for pep440 versioning, where the Epoch segment is being stripped. The versioning should correctly retain the Epoch segment, e.g., ^1!13.18.0 instead of ^13.18.0.

Actual Behavior: The Epoch segment is being stripped from the version range (^1!13.18.0 → ^13.18.0).

Test package: https://pypi.org/project/simplepycons/

Poetry:
Package Name: simplepycons
Current Version: ^1!13.18.0
Locked Version: 1!13.18.0
New Version: 1!13.21.0
New Value: ^13.18.0 (Note: The Epoch segment 1! has been stripped)

Logs

 "poetry": [
   {
     "deps": [
       {
         "datasource": "pypi",
         "currentValue": "^1!13.18.0",
         "managerData": {"nestedVersion": false},
         "versioning": "poetry",
         "depName": "simplepycons",
         "depType": "dependencies",
         "lockedVersion": "1!13.18.0",
         "updates": [
           {
             "bucket": "non-major",
             "newVersion": "1!13.21.0",
             "newValue": "^13.18.0",
             "releaseTimestamp": "2024-12-24T14:29:05.000Z",
             "newMajor": 13,
             "newMinor": 21,
             "newPatch": 0,
             "updateType": "minor",
             "isRange": true,
             "branchName": "renovate/simplepycons-13.x"
           },
           {
             "bucket": "major",
             "newVersion": "1!14.4.0",
             "newValue": "^14.0.0",
             "releaseTimestamp": "2025-01-26T15:39:57.000Z",
             "newMajor": 14,
             "newMinor": 4,
             "newPatch": 0,
             "updateType": "major",
             "isRange": true,
             "branchName": "renovate/simplepycons-14.x"
           }
         ],
         "packageName": "simplepycons",
         "warnings": [],
         "sourceUrl": "https://github.com/carstencodes/simplepycons",
         "registryUrl": "https://pypi.org/pypi",
         "currentVersion": "1!13.18.0",
         "currentVersionTimestamp": "2024-11-24T18:21:17.000Z",
         "isSingleVersion": false,
         "fixedVersion": "1!13.18.0"
},
@RahulGautamSingh RahulGautamSingh added priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others versioning:pep440 PEP440 versioning scheme versioning:poetry Poetry versioning scheme labels Feb 25, 2025
@RahulGautamSingh RahulGautamSingh self-assigned this Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others versioning:pep440 PEP440 versioning scheme versioning:poetry Poetry versioning scheme
Projects
None yet
Development

No branches or pull requests

1 participant