[Reportbug-commits] [reportbug] 30/32: port packaging to py3k

Sandro Tosi morph at moszumanska.debian.org
Thu Dec 1 01:36:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository reportbug.

commit 64b136de64ac97849517685abe10f7e40f9aa199
Author: Sandro Tosi <morph at debian.org>
Date:   Wed Nov 30 20:20:44 2016 -0500

    port packaging to py3k
---
 debian/control                                           | 13 ++++++-------
 debian/{python-reportbug.dirs => python3-reportbug.dirs} |  0
 debian/rules                                             |  8 ++++----
 setup.py                                                 |  2 +-
 4 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/debian/control b/debian/control
index 6b38892..b0a7f48 100644
--- a/debian/control
+++ b/debian/control
@@ -4,17 +4,16 @@ Priority: standard
 Maintainer: Reportbug Maintainers <reportbug-maint at lists.alioth.debian.org>
 Uploaders: Sandro Tosi <morph at debian.org>, Chris Lawrence <lawrencc at debian.org>
 Standards-Version: 3.9.6
-Build-Depends: debhelper (>= 9), python (>= 2.5), dh-python
-Build-Depends-Indep: python-nose, python-setuptools, python-mock
-X-Python-Version: >= 2.6
+Build-Depends: debhelper (>= 9), python3, dh-python
+Build-Depends-Indep: python3-nose, python3-setuptools, python3-mock
 Vcs-Git: git://anonscm.debian.org/reportbug/reportbug.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=reportbug/reportbug.git
 Homepage: http://alioth.debian.org/projects/reportbug/
 
 Package: reportbug
 Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}, apt, python-reportbug (= ${source:Version})
-Suggests: postfix | exim4 | mail-transport-agent, gnupg | pgp, debconf-utils (>> 1.1.0), debsums (>= 2.0.47), file (>> 1.30), dlocate, python-urwid, python-gtk2, python-vte, python-gtkspellcheck, xdg-utils, emacs23-bin-common | emacs24-bin-common, claws-mail (>= 3.8.0)
+Depends: ${misc:Depends}, ${python3:Depends}, apt, python3-reportbug (= ${source:Version})
+Suggests: postfix | exim4 | mail-transport-agent, gnupg | pgp, debconf-utils (>> 1.1.0), debsums (>= 2.0.47), file (>> 1.30), dlocate, python3-urwid, python3-gi, python3-gtkspellcheck, xdg-utils, emacs23-bin-common | emacs24-bin-common, claws-mail (>= 3.8.0)
 Description: reports bugs in the Debian distribution
  reportbug is a tool designed to make the reporting of bugs in Debian
  and derived distributions relatively painless.  Its features include:
@@ -34,10 +33,10 @@ Description: reports bugs in the Debian distribution
  This package also includes the "querybts" script for browsing the
  Debian bug tracking system.
 
-Package: python-reportbug
+Package: python3-reportbug
 Section: python
 Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}, apt, python3-debian, python3-debianbts (>= 1.13), file
+Depends: ${misc:Depends}, ${python3:Depends}, apt, python3-debian, python3-debianbts (>= 1.13), file
 Suggests: reportbug
 Description: Python modules for interacting with bug tracking systems
  reportbug is a tool designed to make the reporting of bugs in Debian
diff --git a/debian/python-reportbug.dirs b/debian/python3-reportbug.dirs
similarity index 100%
rename from debian/python-reportbug.dirs
rename to debian/python3-reportbug.dirs
diff --git a/debian/rules b/debian/rules
index 06ea2ab..dd1b373 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@ DISTRO := $(shell dpkg-parsechangelog | egrep '^Distribution:' | sed 's/^Distrib
 REPORTBUG_VERSION := $(shell python -c "import reportbug; print reportbug.VERSION_NUMBER")
 
 %:
-	dh $@ --with=python2
+	dh $@ --with=python3
 
 override_dh_auto_build:
 	# Test if versions are synchronized (only if releasing); this will bomb if not synced
@@ -17,11 +17,11 @@ override_dh_auto_build:
 		echo 'Please update VERSION_NUMBER variable in reportbug/__init__.py'; exit 1 ; \
 	fi
 
-	python setup.py build
+	python3 setup.py build
 
 override_dh_auto_install:
-	python setup.py install --root $(CURDIR)/debian/reportbug --install-layout=deb
-	mv $(CURDIR)/debian/reportbug/usr/lib $(CURDIR)/debian/python-reportbug/usr
+	python3 setup.py install --root $(CURDIR)/debian/reportbug --install-layout=deb
+	mv $(CURDIR)/debian/reportbug/usr/lib $(CURDIR)/debian/python3-reportbug/usr
 	chmod 0755 $(CURDIR)/debian/reportbug/usr/bin/*
 	cp -p conf/reportbug.conf $(CURDIR)/debian/reportbug/etc
 
diff --git a/setup.py b/setup.py
index eca0948..691861f 100755
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from setuptools import setup
 import reportbug

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git



More information about the Reportbug-commits mailing list