Your message dated Thu, 06 Oct 2016 12:35:06 +0000
with message-id <[email protected]>
and subject line Bug#839687: fixed in setuptools-scm 1.13.0-1
has caused the Debian Bug report #839687,
regarding how to manage setuptools-scm packages in debian?
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
839687: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839687
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: setuptools-scm
Severity: wishlist

It is unclear to me how this package is supposed to be used to build
native packages in Debian.

Most packages I see in Debian seem to break the "rule" of "don't
commit the version file into version control":

https://codesearch.debian.net/search?q=don%27t+track+in+version+control

I am trying to use this for the Monkeysign package, and I don't have a
"master" branch that is separate from upstream: this is a native
package. If I skip including the generated file in version control, I
get this:

LookupError: setuptools-scm was unable to detect version for 
'/home/anarcat/src/build-area/monkeysign-2.1.4'.

What's the prefered way to manage this?

I have this in my setup.py:

      use_scm_version={
          'write_to': 'monkeysign/_version.py',
      },

But even without that, the thing fails on build:

[831]anarcat@angela:monkeysign(2.x $>)$ DIST=sid ARCH=amd64 git-buildpackage 
--git-debian-branch=2.x
dh clean  --with=python2,sphinxdoc
   dh_testdir
   dh_auto_clean
your setuptools is too old (<12)
setuptools_scm functionality is degraded
running clean
'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
   dh_clean
gbp:info: Exporting 'HEAD' to '/home/anarcat/src/build-area/monkeysign-tmp'
gbp:info: Moving '/home/anarcat/src/build-area/monkeysign-tmp' to 
'/home/anarcat/src/build-area/monkeysign-2.1.4'
Building with cowbuilder for distribution sid, architecture amd64
I: using cowbuilder as pbuilder
dpkg-buildpackage: source package monkeysign
dpkg-buildpackage: source version 2.1.4
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Antoine Beaupré <[email protected]>
 dpkg-source --before-build monkeysign-2.1.4
 fakeroot debian/rules clean
dh clean  --with=python2,sphinxdoc
   dh_testdir
   dh_auto_clean
your setuptools is too old (<12)
setuptools_scm functionality is degraded
Traceback (most recent call last):
  File "setup.py", line 81, in <module>
    test_suite='tests',
  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 266, in 
__init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 301, in 
finalize_options
    ep.load()(self, ep.name, value)
  File "/usr/lib/python2.7/dist-packages/setuptools_scm/integration.py", line 
19, in version_keyword
    dist.metadata.version = get_version(**value)
  File "/usr/lib/python2.7/dist-packages/setuptools_scm/__init__.py", line 102, 
in get_version
    version = _do_parse(root, parse)
  File "/usr/lib/python2.7/dist-packages/setuptools_scm/__init__.py", line 80, 
in _do_parse
    "use git+https://github.com/user/proj.git#egg=proj"; % root)
LookupError: setuptools-scm was unable to detect version for 
'/home/anarcat/src/build-area/monkeysign-2.1.4'.

Make sure you're not using GitHub's tarballs (or similar ones), as those don't 
contain the necessary metadata. Use PyPI's tarballs instead.

For example, if you're using pip, instead of 
https://github.com/user/proj/archive/master.zip use 
git+https://github.com/user/proj.git#egg=proj
dh_auto_clean: python setup.py clean -a returned exit code 1
debian/rules:11: recipe for target 'clean' failed
make: *** [clean] Error 1
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
gbp:error: '/usr/bin/git-pbuilder' failed: it exited with 2


-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'stable'), (1, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
Source: setuptools-scm
Source-Version: 1.13.0-1

We believe that the bug you reported is fixed in the latest version of
setuptools-scm, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julien Puydt <[email protected]> (supplier of updated setuptools-scm 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 06 Oct 2016 06:58:20 +0200
Source: setuptools-scm
Binary: python-setuptools-scm python3-setuptools-scm
Architecture: source
Version: 1.13.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<[email protected]>
Changed-By: Julien Puydt <[email protected]>
Description:
 python-setuptools-scm - blessed package to manage your versions by scm tags 
for Python 2
 python3-setuptools-scm - blessed package to manage your versions by scm tags 
for Python 3
Closes: 839687
Changes:
 setuptools-scm (1.13.0-1) unstable; urgency=medium
 .
   [ Julien Puydt ]
   * New upstream version.
   * Pushed dh compat up to 10.
 .
   [ Antoine Beaupré ]
   * Document how to use this software in other Debian packages (Closes:
     #839687)
Checksums-Sha1:
 a7fb9d87d99e27026c6df78481733c2a0e776c5a 2285 setuptools-scm_1.13.0-1.dsc
 70317eaa0aff5a3777c696f0961277d1afece860 21709 
setuptools-scm_1.13.0.orig.tar.gz
 19006e3bdd711262a8aacc2556c04245d917d07b 3220 
setuptools-scm_1.13.0-1.debian.tar.xz
Checksums-Sha256:
 32c731ec760ad7893c225fcd60b332c7826d7383d4e5d7a41de61571a8eeb911 2285 
setuptools-scm_1.13.0-1.dsc
 68fa540e443a74dad7481953d0be7ee5fdbd78f84f131e550929748824708059 21709 
setuptools-scm_1.13.0.orig.tar.gz
 8942d96cc3707b4a8368242d4ca227969b9008e56141b4bcaec128d8ad37f923 3220 
setuptools-scm_1.13.0-1.debian.tar.xz
Files:
 5ebcef776c0fd27cc36b9a37c7736f54 2285 python optional 
setuptools-scm_1.13.0-1.dsc
 655a7002b7b4b0e0949baf63ee6648bd 21709 python optional 
setuptools-scm_1.13.0.orig.tar.gz
 563ec5a4fadcc65e1af73a72ba40756d 3220 python optional 
setuptools-scm_1.13.0-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJX9kD+AAoJEHkhUlJ7dZIe2hAQAJ4dMuxjPQce4CSykDFevbfF
hGz7FqV+ZMmbER9CqnrHbMD26oHV7SDBN4gL2Qh2PA+b4ExAEB+NVBh2HBhXktV6
6ips5Zqc7uClgEV/jBOyL/DY+vN5P/oK3IynrlTbeUaogXmHHoMMFPng6lv8fwyv
eec9FX5/H4g3B/XVOHxO61e7HhxIeucXB09szlZSxocf5iO8CLD64MakldRz9r7w
FCXfHMsjk5jHlD+6AlOVM6z9nCmWfE8NjjlPcdXnl53pq0/ndFjLyDUKgTL6e/OI
L8Yaf+qSs9MEx/DEcPXXnICSntFHyZEO5lwDD8O7sb6PrShMg4ulE4llQMklwTXL
+SskJWSeH0yL9pMaVYxQRrKUnL296b2W7/BI9b7K+vTzrkVEOotP0VekNGtNHG9r
A2qquwwrAI+Yo0xuZFEa948tyuBHNVBIGvWAHa2+YKAMYl1whv5gGlkrxGdezF80
rEM651ZEHA6vViVMXf7FR2fxwFtl9XXs3i4vyFNoBlP6qqgQaabIq/pZGUXkrUoB
hRlDY3/XfopKqol7R9A++yc3cTc7lpk80cxPqaurlsgMZ3Dv0I4f+FMA7MNYPVQN
7XKGxcFKRoTjAPr4skUp2u2xmDfY9JGGCAZcrqV116pscX7QYs0QRYxUuPfDP2iW
MWUHn8QzJIDAZ0eiQYMB
=4u2F
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to