r2745 - in zope.testing/trunk/debian (6 files)

menesis-guest at users.alioth.debian.org menesis-guest at users.alioth.debian.org
Tue Jul 16 08:58:50 UTC 2013


    Date: Tuesday, July 16, 2013 @ 08:58:49
  Author: menesis-guest
Revision: 2745

* New upstream release
  - Removes the deprecated zope.testing.doctest. (Closes: #555436)
  - Adds Python 3 support.
* Add python3-zope.testing package.
* debian/rules: install upstream changelog.
* debian/docs: README.rst was renamed.

Added:
  zope.testing/trunk/debian/tests/all-3
Modified:
  zope.testing/trunk/debian/changelog
  zope.testing/trunk/debian/control
  zope.testing/trunk/debian/docs
  zope.testing/trunk/debian/rules
  zope.testing/trunk/debian/tests/control

Modified: zope.testing/trunk/debian/changelog
===================================================================
--- zope.testing/trunk/debian/changelog	2013-07-16 08:52:07 UTC (rev 2744)
+++ zope.testing/trunk/debian/changelog	2013-07-16 08:58:49 UTC (rev 2745)
@@ -1,8 +1,14 @@
-zope.testing (3.10.2-2) UNRELEASED; urgency=low
+zope.testing (4.1.2-1) UNRELEASED; urgency=low
 
   * Team upload.
 
   [ Gediminas Paulauskas ]
+  * New upstream release
+    - Removes the deprecated zope.testing.doctest. (Closes: #555436)
+    - Adds Python 3 support.
+  * Add python3-zope.testing package.
+  * debian/rules: install upstream changelog.
+  * debian/docs: README.rst was renamed.
   * debian/control:
     - enable autopkgtest (Closes: #692694).
     - use canonical URI for Vcs-Svn and Vcs-Browser.
@@ -12,7 +18,7 @@
   [ Arnaud Fontaine ]
   * debian/source/options: ignore .egg-info directory.
 
- -- Gediminas Paulauskas <menesis at pov.lt>  Thu, 04 Jul 2013 03:33:30 +0300
+ -- Gediminas Paulauskas <menesis at pov.lt>  Mon, 15 Jul 2013 22:31:43 +0300
 
 zope.testing (3.10.2-1) unstable; urgency=low
 

Modified: zope.testing/trunk/debian/control
===================================================================
--- zope.testing/trunk/debian/control	2013-07-16 08:52:07 UTC (rev 2744)
+++ zope.testing/trunk/debian/control	2013-07-16 08:58:49 UTC (rev 2745)
@@ -7,9 +7,12 @@
            Matthias Klose <doko at ubuntu.com>
 Build-Depends: debhelper (>= 7.0.50~),
                python-all (>= 2.6.6-3~),
+               python3-all,
                python-setuptools,
+               python3-setuptools,
 Standards-Version: 3.9.4
-X-Python-Version: >= 2.4
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.1
 XS-Testsuite: autopkgtest
 Homepage: http://pypi.python.org/pypi/zope.testing
 Vcs-Svn: svn://anonscm.debian.org/pkg-zope/zope.testing/trunk
@@ -21,3 +24,11 @@
 Description: Zope testing helpers
  This package provides a number of testing frameworks. It includes a flexible
  test runner, and supports both doctest and unittest. 
+
+Package: python3-zope.testing
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Provides: ${python3:Provides}
+Description: Zope testing helpers for Python 3
+ This package provides a number of testing frameworks. It includes a flexible
+ test runner, and supports both doctest and unittest. 

Modified: zope.testing/trunk/debian/docs
===================================================================
--- zope.testing/trunk/debian/docs	2013-07-16 08:52:07 UTC (rev 2744)
+++ zope.testing/trunk/debian/docs	2013-07-16 08:58:49 UTC (rev 2745)
@@ -1 +1 @@
-README.txt
+README.rst

Modified: zope.testing/trunk/debian/rules
===================================================================
--- zope.testing/trunk/debian/rules	2013-07-16 08:52:07 UTC (rev 2744)
+++ zope.testing/trunk/debian/rules	2013-07-16 08:58:49 UTC (rev 2745)
@@ -1,4 +1,41 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
+
+package=python-zope.testing
+package3=python3-zope.testing
+
+override_dh_auto_clean:
+	rm -rf build
+	find -name __pycache__ | xargs -r rm -rf
+	dh_auto_clean
+
+override_dh_auto_build:
+	for pyvers in $(shell pyversions -vr); do \
+		python$$pyvers setup.py build; \
+	done
+	for pyvers in $(shell py3versions -sv); do \
+		python$$pyvers setup.py build; \
+	done
+
+override_dh_auto_install:
+	set -x; \
+	for pyvers in $(shell pyversions -vr); do \
+		python$$pyvers setup.py install --install-layout=deb \
+			--root $(CURDIR)/debian/$(package); \
+	done
+	set -x; \
+	for pyvers in $(shell py3versions -vs); do \
+		python$$pyvers setup.py install --install-layout=deb \
+			--root $(CURDIR)/debian/$(package3); \
+	done
+
+override_dh_gencontrol:
+	dh_gencontrol
+	
+	# Workaround for dh_python3 not removing python-setuptools from requires.txt
+	find debian/$(package3) -name requires.txt -exec sed -i '/^setuptools$$/d' {} \;
+
+override_dh_installchangelogs:
+	dh_installchangelogs CHANGES.rst

Added: zope.testing/trunk/debian/tests/all-3
===================================================================
--- zope.testing/trunk/debian/tests/all-3	                        (rev 0)
+++ zope.testing/trunk/debian/tests/all-3	2013-07-16 08:58:49 UTC (rev 2745)
@@ -0,0 +1,3 @@
+#!/bin/bash
+testfilter="-s zope.testing"
+. /usr/share/python3-zope.testrunner/test_helper_3

Modified: zope.testing/trunk/debian/tests/control
===================================================================
--- zope.testing/trunk/debian/tests/control	2013-07-16 08:52:07 UTC (rev 2744)
+++ zope.testing/trunk/debian/tests/control	2013-07-16 08:58:49 UTC (rev 2745)
@@ -1,2 +1,5 @@
+Tests: all
 Depends: @, python-all, python-zope.testrunner
-Tests: all
+
+Tests: all-3
+Depends: @, python3-all, python3-zope.testrunner




More information about the pkg-zope-developers mailing list