Source: astroid
Severity: normal
Tags: patch
User: debian-pyt...@lists.debian.org
Usertags: python3.6

Dear Maintainer,

astroid needs an update in preparation for python 3.6. I don't have a potted
test case unfortunately (the closest I have is "make python 3.6 the default and
try to rebuild ubuntu-dev-tools"). The update is mostly straightforward but
some dependencies need to be added manually because dh-python does not (yet?)
parse environment-based conditional dependencies. I'm attaching the patch I put
on top of what git-dpm import-new-upstream --rebase ../astroid_1.5.3.orig.tar.gz
did by itself.

Cheers,
mwh

-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 
'xenial'), (400, 'xenial-proposed'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-83-generic (SMP w/4 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
commit d80b589b8d21f88be3b88ecc409d988a655999f6
Author: Michael Hudson-Doyle <Michael Hudson-Doyle michael.hud...@ubuntu.com>
Date:   Wed Jul 12 09:29:46 2017 +1200

    Manually fix dependencies for Python 2 packages

diff --git a/debian/changelog b/debian/changelog
index dfb633c..f20d77d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+astroid (1.5.3-1) UNRELEASED; urgency=medium
+
+  * New upstream release
+  * d/control
+    - Manually add build-depends and depends on python-singledispatch and
+      python-enum34 to the Python 2 package, as they are missed by dh-python
+      thanks to bug #834133.
+
+ -- Michael Hudson-Doyle <michael.hud...@ubuntu.com>  Wed, 12 Jul 2017 09:24:08 +1200
+
 astroid (1.4.9-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/control b/debian/control
index 344b509..c88a0bf 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: python
 Priority: optional
 Maintainer: Sandro Tosi <mo...@debian.org>
 Uploaders: Debian Python Modules Team <python-modules-t...@lists.alioth.debian.org>
-Build-Depends: debhelper (>= 9.0.0), python, python3, dh-python, python-setuptools, python3-setuptools, python-nose, python3-nose, python-wrapt, python3-wrapt, python-lazy-object-proxy, python3-lazy-object-proxy
+Build-Depends: debhelper (>= 9.0.0), python, python3, dh-python, python-setuptools, python3-setuptools, python-nose, python3-nose, python-wrapt, python3-wrapt, python-lazy-object-proxy, python3-lazy-object-proxy, python-singledispatch, python-enum34
 Standards-Version: 3.9.8
 Homepage: http://www.astroid.org/
 Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/astroid.git
@@ -11,7 +11,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/astroid.git
 
 Package: python-astroid
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}, python-six
+Depends: ${python:Depends}, ${misc:Depends}, python-six, python-singledispatch, python-enum34
 Description: rebuild a new abstract syntax tree from Python's AST
  The aim of this module is to provide a common base representation of
  Python source code for projects such as pychecker, pyreverse,

Reply via email to