[Python-modules-team] Bug#774903: Please add a python3 packge (and run tests at build-time)

Mattia Rizzolo mattia at mapreri.org
Sat Feb 21 21:47:34 UTC 2015


control: tag -1 patch

On Thu, 8 Jan 2015 21:57:16 +0100 Mattia Rizzolo <mattia at mapreri.org> wrote:
> according to https://github.com/gitpython-developers/GitPython python-git
> supports python3, so a python3-git package should be provided.

Given that I needed this python3 package I went ahead and patched it
and it's (build-)dependencies (as you could see, I submitted patches
also for them).

Here I also ran wrap-and-sort(1) because I was unable to orient myself
and find a way in it's dependencies lists. doing so it also cleaned
loads of ugly trailing whitespaces. Feel free to ignore such stuff,
even if it could be useful for other developers keeping own packages
clean and tidy with such a tool.

Thanks for maintaining python-git.
-------------- next part --------------
diff -Nru python-git-0.3.6+git5-gd8bbfea/debian/changelog python-git-0.3.6+git5-gd8bbfea/debian/changelog
--- python-git-0.3.6+git5-gd8bbfea/debian/changelog	2015-02-07 02:46:30.000000000 +0100
+++ python-git-0.3.6+git5-gd8bbfea/debian/changelog	2015-02-21 18:06:01.000000000 +0100
@@ -1,3 +1,11 @@
+python-git (0.3.6+git5-gd8bbfea-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Build python3 package, use pybuild.
+  * run wrap-and-sort. otherwise the build-deps are unreadable...
+
+ -- Mattia Rizzolo <mattia at mapreri.org>  Sat, 21 Feb 2015 18:00:55 +0100
+
 python-git (0.3.6+git5-gd8bbfea-1) experimental; urgency=medium
 
   * New post-release snapshot with some fixes (Closes: #769595)
diff -Nru python-git-0.3.6+git5-gd8bbfea/debian/control python-git-0.3.6+git5-gd8bbfea/debian/control
--- python-git-0.3.6+git5-gd8bbfea/debian/control	2015-02-07 02:46:30.000000000 +0100
+++ python-git-0.3.6+git5-gd8bbfea/debian/control	2015-02-21 22:46:06.000000000 +0100
@@ -3,11 +3,24 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Vincent Bernat <bernat at debian.org>,
-	TANIGUCHI Takaki <takaki at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), python, python-setuptools (>= 0.6a9),
- python-sphinx,
- python-nose, python-smmap (>= 0.8.3~), python-gitdb (>= 0.6.4), python-mock,
- git,
+           TANIGUCHI Takaki <takaki at debian.org>
+Build-Depends: debhelper (>= 7.0.50~),
+               dh-python,
+               git,
+               python,
+               python-gitdb (>= 0.6.4),
+               python-mock,
+               python-nose,
+               python-setuptools (>= 0.6a9),
+               python-smmap (>= 0.8.3~),
+               python-sphinx,
+               python3,
+               python3-gitdb (>= 0.6.4),
+               python3-mock,
+               python3-nose,
+               python3-setuptools (>= 0.6a9),
+               python3-smmap (>= 0.8.3~),
+               python3-sphinx
 Standards-Version: 3.9.6
 Homepage: https://github.com/gitpython-developers/GitPython
 XS-Python-Version: all
@@ -16,15 +29,31 @@
 
 Package: python-git
 Architecture: all
-Depends: ${python:Depends},
- git (>= 1:1.7) | git-core (>= 1:1.5.3.7),
- ${misc:Depends},
- libjs-jquery,
- python-gitdb (>= 0.6.4)
-Suggests:
- python-smmap
+Depends: git (>= 1:1.7) | git-core (>= 1:1.5.3.7),
+         libjs-jquery,
+         python-gitdb (>= 0.6.4),
+         ${misc:Depends},
+         ${python:Depends}
+Suggests: python-smmap
+XB-Python-Version: ${python:Versions}
 Description: Python library to interact with Git repositories
  python-git provides object model access to a Git repository, so Python can be
  used to manipulate it. Repository objects can be opened or created, which can
  then be traversed to find parent commit(s), trees, blobs, etc.
-XB-Python-Version: ${python:Versions}
+ .
+ This package provides the python2 build.
+
+Package: python3-git
+Architecture: all
+Depends: git (>= 1:1.7) | git-core (>= 1:1.5.3.7),
+         libjs-jquery,
+         python3-gitdb (>= 0.6.4),
+         ${misc:Depends},
+         ${python3:Depends}
+XB-Python-Version: ${python3:Versions}
+Description: Python library to interact with Git repositories - python3 package
+ python-git provides object model access to a Git repository, so Python can be
+ used to manipulate it. Repository objects can be opened or created, which can
+ then be traversed to find parent commit(s), trees, blobs, etc.
+ .
+ This package provides the python3 build.
diff -Nru python-git-0.3.6+git5-gd8bbfea/debian/copyright python-git-0.3.6+git5-gd8bbfea/debian/copyright
--- python-git-0.3.6+git5-gd8bbfea/debian/copyright	2015-02-07 02:46:30.000000000 +0100
+++ python-git-0.3.6+git5-gd8bbfea/debian/copyright	2015-02-21 18:05:03.000000000 +0100
@@ -4,7 +4,7 @@
 Source: http://gitorious.org/git-python
 
 Files: *
-Copyright: 
+Copyright:
  2008-2011 Michael Trier <mtrier at gmail.com>
  2008-2011 Florian Apolloner <florian at apolloner.eu>
  2008-2011 David Aguilar <davvid at gmail.com>
@@ -12,36 +12,35 @@
 License: BSD-3-clause
 
 Files: debian/*
-Copyright: 
+Copyright:
  2008-2010 Daniel Watkins <daniel at daniel-watkins.co.uk>
  2011 Andreas Noteng <andreas at noteng.no>
 License: BSD-3-clause
 
 License: BSD-3-clause
- Redistribution and use in source and binary forms, with or without 
- modification, are permitted provided that the following conditions 
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
  are met:
  .
- * Redistributions of source code must retain the above copyright 
+ * Redistributions of source code must retain the above copyright
  notice, this list of conditions and the following disclaimer.
  .
- * Redistributions in binary form must reproduce the above copyright 
- notice, this list of conditions and the following disclaimer in the 
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution.
  .
- * Neither the name of the GitPython project nor the names of 
- its contributors may be used to endorse or promote products derived 
+ * Neither the name of the GitPython project nor the names of
+ its contributors may be used to endorse or promote products derived
  from this software without specific prior written permission.
  .
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 
- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
diff -Nru python-git-0.3.6+git5-gd8bbfea/debian/rules python-git-0.3.6+git5-gd8bbfea/debian/rules
--- python-git-0.3.6+git5-gd8bbfea/debian/rules	2015-02-07 02:46:30.000000000 +0100
+++ python-git-0.3.6+git5-gd8bbfea/debian/rules	2015-02-21 18:00:36.000000000 +0100
@@ -2,12 +2,13 @@
 # -*- makefile -*-
 
 export HOME=$(CURDIR)/build/test
+export PYBUILD_NAME=git
 
 override_dh_installdocs:
 	dh_installdocs -Xjquery.js -X_sources
 
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3 --buildsystem pybuild
 
 override_dh_auto_test:
 	: # run tests only if we can fetch original sources repository


More information about the Python-modules-team mailing list