Version does not conform to PEP440
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | python-apt (Ubuntu) |
Undecided
|
Unassigned | ||
| | python-setuptools (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
When looking for available python modules, pkg_resources issues the following warning:
/usr/
The package version should be conforming.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: python-apt 0.9.3.11build1
ProcVersionSign
Uname: Linux 3.13.0-
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Apr 19 18:00:31 2015
SourcePackage: python-apt
UpgradeStatus: Upgraded to vivid on 2012-03-12 (1133 days ago)
Related branches
| Václav Šmilauer (eudoxos) wrote : | #1 |
| Václav Šmilauer (eudoxos) wrote : | #3 |
Feel free to assign it to another package, but triggering warning in unrelated code just because the package is installed is definitely undesirable.
| Václav Šmilauer (eudoxos) wrote : | #4 |
Eh, I am not able to locate which part of code triggers the warning. In any case, debian version can be different from the one written in the .egg-info file (e.g. 0.9.3+11build1 is conforming to pep404, for instance).
| Scott Kitterman (kitterman) wrote : | #5 |
This warning ought to be suppressed. It's of interest to developers, not end users and in some cases wrong for Ubuntu packages anyway.
| affects: | python-apt (Ubuntu) → python-setuptools (Ubuntu) |
| Changed in python-setuptools (Ubuntu): | |
| status: | Invalid → New |
| Matthias Klose (doko) wrote : | #6 |
no, the warning is correct. python-apt shouldn't encode any nmu number or build number into it's own version string.
| Changed in python-setuptools (Ubuntu): | |
| status: | New → Invalid |
| Julian Andres Klode (juliank) wrote : | #7 |
It's basically irrelevant, is it not? We only use the setup.py for building, python-apt cannot be used by any of Python's package installation tools.
| Julian Andres Klode (juliank) wrote : | #8 |
This should do the trick:
| Changed in python-apt (Ubuntu): | |
| status: | New → Fix Committed |
| Launchpad Janitor (janitor) wrote : | #9 |
This bug was fixed in the package python-apt - 1.0.0~beta3
---------------
python-apt (1.0.0~beta3) unstable; urgency=medium
* tests/test_
* setup.py: If no version is in the environment, return None
* doc/source/
* apt.cache.
* apt.Cache: Introduce a connect2() callback connector
* Break the FilteredCache <-> Cache reference cycle
* apt.Cache: Issue a RuntimeWarning in connect()
* doc: whatsnew: Document what's new in beta3
-- Julian Andres Klode <email address hidden> Wed, 17 Jun 2015 18:28:44 +0200
| Changed in python-apt (Ubuntu): | |
| status: | Fix Committed → Fix Released |
Are we going to see this fix backported to, say, 15.04?
| Julian Andres Klode (juliank) wrote : | #11 |
It's backported in git already, we just need to get a permission to upload and upload it.


No. It shouldn't. Unfortunately, PEP-440 describes a versioning scheme that is incompatible with the versioning long used in Debian and it's derivatives such as Ubuntu. As the PEP says, "The main reason to even have a standardised version scheme in the first place is to make it easier to do reliable automated dependency analysis." We already have another system to do that and python-apt is conforming to it.
If one were to conform to PEP 440, then the package would be incompatible with distro versioning requirements.
Note: This is not general issue for Python packages. It is only a conflict for Debian/Ubuntu native packages like python-apt.