python-debian has invalid version

Bug #1926870 reported by Niora
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
python-debian (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Ubuntu: Ubuntu 20.04 (actually it's Linux Mint 20.1)
Package: python-debian 0.1.36ubuntu1

Python package version should correspond to PEP 440:
    https://www.python.org/dev/peps/pep-0440/#local-version-identifiers

It requires + sign before local version identifier, like:
    2.0.0+ubuntu0.20.4.4

So python-debian should have version like:
    0.1.36+ubuntu1

Actually if you'll launch pip list, you'll see:
    python-debian 0.1.36ubuntu1

Why does it matter:
    Some package managers, like Poetry, will fail parsing this version.
    I thought to fix Poetry, but don't think I should handle not PEP 440-compliant versions
    in PEP 440 version parser.

Notes:
    This only should apply to version, specified for pip - Python package manager, not Apt.
    Version in Apt may stay 0.1.36ubuntu1.

Corresponding issue for Poetry:
    https://github.com/python-poetry/poetry/issues/4022

Niora (naumovvladislav)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-debian (Ubuntu):
status: New → Confirmed
Revision history for this message
Moritz (moritz89) wrote :

The same issue affects the python3-distro-info package with version 1.1build1. It would be great to resolve both at the same time.

Revision history for this message
Benjamin Drung (bdrung) wrote :

The new master bug for all affected packages is bug #1991606.

Revision history for this message
Benjamin Drung (bdrung) wrote :

This bug is a duplicate of bug #1991606 but due to bug #2008514 it runs into a timeout when marking as duplicate. Since python-debian in Ubuntu 23.04 (lunar) is fixed, I am marking this bug is fixed as well. Please follow bug #1991606 for the updates to the stable releases.

Changed in python-debian (Ubuntu):
importance: Undecided → High
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.