Skip to content

pep440 and poetry versionings strip Epoch segment #34461

Open
@RahulGautamSingh

Description

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"
},

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

priority-3-mediumDefault priority, "should be done" but isn't prioritised ahead of othersversioning:pep440PEP440 versioning schemeversioning:poetryPoetry versioning scheme

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions