Control: tags -1 patch Hi, 3to2 has been uploaded on unstable, so I did the work to enable the python2 package here.
Note, I use python3-3to2, and since the new release of 3to2 is python3 ready, I'm going to drop it ASAP and add a binary to python-3to2 (now we have a python-3to2 provided by src:python-3to2 and a python3-3to2 provided by an src:python3-3to2) I'm attaching the patch. NOTE: I was packaging in parallel this tool, and I did something a little bit differently, so feel free to discard what is not good for you. Inline comments: --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-guess-language (0.5.2-3) UNRELEASED; urgency=medium + + * Add python2 package (Closes: #791874). + + -- Gianfranco Costamagna <locutusofb...@debian.org> Wed, 29 Jul 2015 12:27:17 +0200 + python-guess-language (0.5.2-2) unstable; urgency=medium * Change arch. from 'any' to 'all' diff --git a/debian/control b/debian/control index 78d7e6e..63f1573 100644 --- a/debian/control +++ b/debian/control @@ -2,17 +2,35 @@ Source: python-guess-language Section: python Priority: extra Maintainer: Tomasz Buchert <tom...@debian.org> -Build-Depends: debhelper (>= 9), dh-python, python3 +Build-Depends: debhelper (>= 9), + dh-python, + python, setuptools is not really needed, because it is inside a try catch, but I guess it is nice to have, in the future they might use some setuptools features, going in the fallback case, to avoid a b-d might be not the best option. + python-setuptools, + python3, + python3-3to2, + python3-setuptools Standards-Version: 3.9.6 Homepage: https://bitbucket.org/spirit/guess_language Vcs-Git: git://anonscm.debian.org/collab-maint/python-guess-language.git Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/python-guess-language.git +Package: python-guess-language +Architecture: all +Depends: ${misc:Depends}, ${python:Depends} +Suggests: python-enchant +Description: Python2 library to detect the natural language of a text + guess_language is a Python library to guess the natural language + that a given text is written it. To achieve this, it uses models + precomputed for each language and, optionally, spellchecking of + words via pyenchant library. + . + This package installs the library for Python23. + Package: python3-guess-language Architecture: all Recommends: python3-enchant -Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} shlibs:Depends shouldn't be there, I guess there are no libraries ship by this package (seems to be something leftover by your change from any to all) -Description: library to detect the natural language of a text +Depends: ${misc:Depends}, ${python3:Depends} +Description: Python3 library to detect the natural language of a text guess_language is a Python library to guess the natural language that a given text is written it. To achieve this, it uses models precomputed for each language and, optionally, spellchecking of diff --git a/debian/rules b/debian/rules index c562d38..357eca8 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,7 @@ #!/usr/bin/make -f (cosmetic copy-paste) -#DH_VERBOSE = 1 +#export DH_VERBOSE=1 -export PYBUILD_NAME = guess_language +export PYBUILD_NAME=guess_language %: - dh $@ --buildsystem=pybuild --with=python3 + dh $@ --with python2,python3 --buildsystem=pybuild cheers, Gianfranco
From 0f1742ce02911e480ffb8f99f3df67725e61b0d2 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna <costamagnagianfra...@yahoo.it> Date: Wed, 29 Jul 2015 12:35:03 +0200 Subject: [PATCH] fix python2 package --- debian/changelog | 6 ++++++ debian/control | 24 +++++++++++++++++++++--- debian/rules | 6 +++--- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index 2a52eac..78c3990 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-guess-language (0.5.2-3) UNRELEASED; urgency=medium + + * Add python2 package (Closes: #791874). + + -- Gianfranco Costamagna <locutusofb...@debian.org> Wed, 29 Jul 2015 12:27:17 +0200 + python-guess-language (0.5.2-2) unstable; urgency=medium * Change arch. from 'any' to 'all' diff --git a/debian/control b/debian/control index 78d7e6e..63f1573 100644 --- a/debian/control +++ b/debian/control @@ -2,17 +2,35 @@ Source: python-guess-language Section: python Priority: extra Maintainer: Tomasz Buchert <tom...@debian.org> -Build-Depends: debhelper (>= 9), dh-python, python3 +Build-Depends: debhelper (>= 9), + dh-python, + python, + python-setuptools, + python3, + python3-3to2, + python3-setuptools Standards-Version: 3.9.6 Homepage: https://bitbucket.org/spirit/guess_language Vcs-Git: git://anonscm.debian.org/collab-maint/python-guess-language.git Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/python-guess-language.git +Package: python-guess-language +Architecture: all +Depends: ${misc:Depends}, ${python:Depends} +Suggests: python-enchant +Description: Python2 library to detect the natural language of a text + guess_language is a Python library to guess the natural language + that a given text is written it. To achieve this, it uses models + precomputed for each language and, optionally, spellchecking of + words via pyenchant library. + . + This package installs the library for Python23. + Package: python3-guess-language Architecture: all Recommends: python3-enchant -Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} -Description: library to detect the natural language of a text +Depends: ${misc:Depends}, ${python3:Depends} +Description: Python3 library to detect the natural language of a text guess_language is a Python library to guess the natural language that a given text is written it. To achieve this, it uses models precomputed for each language and, optionally, spellchecking of diff --git a/debian/rules b/debian/rules index c562d38..357eca8 100755 --- a/debian/rules +++ b/debian/rules @@ -1,7 +1,7 @@ #!/usr/bin/make -f -#DH_VERBOSE = 1 +#export DH_VERBOSE=1 -export PYBUILD_NAME = guess_language +export PYBUILD_NAME=guess_language %: - dh $@ --buildsystem=pybuild --with=python3 + dh $@ --with python2,python3 --buildsystem=pybuild -- 2.1.4