[python-debian/master 33/36] Add a python3-debian package.
Colin Watson
cjwatson at canonical.com
Mon Oct 8 07:41:25 UTC 2012
---
debian/control | 19 ++++++++++++++++++-
debian/rules | 8 ++++++++
2 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/debian/control b/debian/control
index 072e3cc..c831038 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Uploaders: Adeodato Simó <dato at net.com.org.es>,
Reinhard Tartler <siretart at tauware.de>,
Stefano Zacchiroli <zack at debian.org>,
John Wright <jsw at debian.org>
-Build-Depends: debhelper (>= 5.0.37.2), python (>= 2.6.6-3~), python-setuptools, python-chardet, python-six
+Build-Depends: debhelper (>= 5.0.37.2), python (>= 2.6.6-3~), python3 (>= 3.1.2-8~), python-setuptools, python3-setuptools, python-chardet, python3-chardet, python-six, python3-six
Standards-Version: 3.8.4
Vcs-Browser: http://git.debian.org/?p=pkg-python-debian/python-debian.git
Vcs-Git: git://git.debian.org/git/pkg-python-debian/python-debian.git
@@ -34,3 +34,20 @@ Description: Python modules to work with Debian-related data formats
* Raw .deb and .ar files, with (read-only) access to contained
files and meta-information
+Package: python3-debian
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}, python3-chardet, python3-six
+Recommends: python3-apt
+Suggests: gpgv
+Description: Python 3 modules to work with Debian-related data formats
+ This package provides Python 3 modules that abstract many formats of Debian
+ related files. Currently handled are:
+ * Debtags information (debian.debtags module)
+ * debian/changelog (debian.changelog module)
+ * Packages files, pdiffs (debian.debian_support module)
+ * Control files of single or multiple RFC822-style paragraphs, e.g.
+ debian/control, .changes, .dsc, Packages, Sources, Release, etc.
+ (debian.deb822 module)
+ * Raw .deb and .ar files, with (read-only) access to contained
+ files and meta-information
+
diff --git a/debian/rules b/debian/rules
index 6a11aeb..8769389 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,7 @@ build-stamp: setup.py
# Add here commands to compile the package.
python setup.py build
+ python3 setup.py build
# run the tests
cd tests && ./test_deb822.py
@@ -22,6 +23,11 @@ build-stamp: setup.py
cd tests && ./test_debtags.py
cd tests && ./test_changelog.py
cd tests && ./test_debian_support.py
+ cd tests && python3 ./test_deb822.py
+ cd tests && python3 ./test_debfile.py
+ cd tests && python3 ./test_debtags.py
+ cd tests && python3 ./test_changelog.py
+ cd tests && python3 ./test_debian_support.py
lib/debian/doc-debtags > README.debtags
@@ -34,6 +40,7 @@ clean: setup.py
# Add here commands to clean up after the build process.
python setup.py clean
+ python3 setup.py clean
rm -rf lib/python_debian.egg-info
rm -rf build/
rm -f README.debtags
@@ -50,6 +57,7 @@ install: build
# Add here commands to install the package into debian/tmp
python setup.py install --root="$(CURDIR)/debian/python-debian" --no-compile --install-layout=deb
+ python3 setup.py install --root="$(CURDIR)/debian/python3-debian" --no-compile --install-layout=deb
# Build architecture-independent files here.
--
1.7.2.5
More information about the pkg-python-debian-commits
mailing list