Bug#839687: [Python-modules-team] Bug#839687: how to manage setuptools-scm packages in debian?
On 2016-10-04 16:17:19, Ondrej Novy wrote: > Hi, > > 2016-10-03 23:53 GMT+02:00 Antoine Beaupré : > >> Answering my own question (and it would be nice to have this documented >> somewhere!), the solution is to use a more recent dh-python dependency >> and depend on python-setuptools-scm explicitely, *and* use >> --buildsystem=pybuild. >> > > as author of this addon in pybuild: Yes, this is correct. :) > > >> I cargo-culted the (>= 2.20160609~) dependency from python-keyring, but >> I don't really know what I am doing. >> > > as author of change in python-keyring: yep >= 2.20160609~ is correct :) > > I expected something about this to be documented in a README.Debian >> file. >> > > in dh-python? Maybe on wiki? I looked in /usr/share/doc/python-setuptools-scm/ and didn't find a README. That's where I looked first. I also looked at the pybuild page here: https://wiki.debian.org/Python/Pybuild I didn't look in dh-python's docs. A. -- Quis custodiet ipsos custodes? Who watches the watchmen? Qui police la police? Tu. You. Toi.
Bug#839687: [Python-modules-team] Bug#839687: how to manage setuptools-scm packages in debian?
Hi, 2016-10-03 23:53 GMT+02:00 Antoine Beaupré : > Answering my own question (and it would be nice to have this documented > somewhere!), the solution is to use a more recent dh-python dependency > and depend on python-setuptools-scm explicitely, *and* use > --buildsystem=pybuild. > as author of this addon in pybuild: Yes, this is correct. :) > I cargo-culted the (>= 2.20160609~) dependency from python-keyring, but > I don't really know what I am doing. > as author of change in python-keyring: yep >= 2.20160609~ is correct :) I expected something about this to be documented in a README.Debian > file. > in dh-python? Maybe on wiki? -- Best regards Ondřej Nový Email: n...@ondrej.org PGP: 3D98 3C52 EB85 980C 46A5 6090 3573 1255 9D1E 064B
Bug#839687: [Python-modules-team] Bug#839687: how to manage setuptools-scm packages in debian?
Antoine Beaupré writes: > Answering my own question (and it would be nice to have this documented > somewhere!), the solution is to use a more recent dh-python dependency > and depend on python-setuptools-scm explicitely, *and* use > --buildsystem=pybuild. In the past I have found I need to set (in debian/rules): export SETUPTOOLS_SCM_PRETEND_VERSION=$(shell cat PKG-INFO | sed -n 's/^Version: //p') otherwise the version won't come out correctly. -- Brian May