[git-buildpackage] ~ in debian/changelog breaks setup.py

Nish Aravamudan nish.aravamudan at canonical.com
Wed Sep 27 23:43:38 CEST 2017


The current version in setup.py is derived from debian/changelog. I
believe this makes it impossible to actually build from setup.py (I get
eventual errors:

  Could not find a version that satisfies the requirement gbp (from
versions: 0.9.0-exp6)

I think the ~ gets translated to - automatically (not sure by what) and
- is not allowed in the version string (PEP440?). I really don't know
much about this. I wonder, though, if setup.py's find_version could do a
transformation of version = version.replace('~', '_')? With that change
locally, the pip install succeeds.

Thanks,
Nish

-- 
Nishanth Aravamudan
Ubuntu Server
Canonical Ltd


More information about the git-buildpackage mailing list