[Python-modules-commits] r31288 - in packages/python-mock/branches/squeeze-backports/debian (4 files)

jollyroger-guest at users.alioth.debian.org jollyroger-guest at users.alioth.debian.org
Mon Oct 27 21:19:29 UTC 2014


    Date: Monday, October 27, 2014 @ 21:19:28
  Author: jollyroger-guest
Revision: 31288

Debian version 0.8.0-3~bpo60+1

Modified:
  packages/python-mock/branches/squeeze-backports/debian/changelog
  packages/python-mock/branches/squeeze-backports/debian/control
  packages/python-mock/branches/squeeze-backports/debian/patches/series
  packages/python-mock/branches/squeeze-backports/debian/rules

Modified: packages/python-mock/branches/squeeze-backports/debian/changelog
===================================================================
--- packages/python-mock/branches/squeeze-backports/debian/changelog	2014-10-27 13:15:48 UTC (rev 31287)
+++ packages/python-mock/branches/squeeze-backports/debian/changelog	2014-10-27 21:19:28 UTC (rev 31288)
@@ -1,3 +1,10 @@
+python-mock (0.8.0-3~bpo60+1) squeeze-backports; urgency=medium
+
+  * Backport to squeeze.
+  * Remove python3 binary package build.
+
+ -- Andriy Senkovych <jolly_roger at itblog.org.ua>  Mon, 27 Oct 2014 16:34:10 +0200
+
 python-mock (0.8.0-3) unstable; urgency=low
 
   * Team upload.

Modified: packages/python-mock/branches/squeeze-backports/debian/control
===================================================================
--- packages/python-mock/branches/squeeze-backports/debian/control	2014-10-27 13:15:48 UTC (rev 31287)
+++ packages/python-mock/branches/squeeze-backports/debian/control	2014-10-27 21:19:28 UTC (rev 31288)
@@ -8,12 +8,9 @@
                python-all (>= 2.6.6-3~),
                python-setuptools,
                python-unittest2,
-               python3-all (>= 3.1.2-12~),
-               python3-setuptools
 Build-Depends-Indep: libjs-jquery, python-sphinx (>= 1.0.7+dfsg-1~)
 Standards-Version: 3.9.3
 X-Python-Version: >= 2.4
-X-Python3-Version: >= 3.0
 Homepage: http://www.voidspace.org.uk/python/mock/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-mock/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-mock/trunk/
@@ -30,20 +27,6 @@
  also specify return values and set specific attributes in the normal
  way.
 
-Package: python3-mock
-Architecture: all
-Depends: ${misc:Depends}, ${python3:Depends}
-Suggests: python-mock-doc
-Description: Mocking and Testing Library (Python3 version)
- mock provides a core mock.Mock class that is intended to reduce the
- need to create a host of trivial stubs throughout your test suite.
- After performing an action, you can make assertions about which methods
- / attributes were used and arguments they were called with. You can
- also specify return values and set specific attributes in the normal
- way.
- .
- This package contains the Python 3 version of the library.
-
 Package: python-mock-doc
 Section: doc
 Architecture: all

Modified: packages/python-mock/branches/squeeze-backports/debian/patches/series
===================================================================
--- packages/python-mock/branches/squeeze-backports/debian/patches/series	2014-10-27 13:15:48 UTC (rev 31287)
+++ packages/python-mock/branches/squeeze-backports/debian/patches/series	2014-10-27 21:19:28 UTC (rev 31288)
@@ -1 +1 @@
-python3.2_tests.patch
+#python3.2_tests.patch

Modified: packages/python-mock/branches/squeeze-backports/debian/rules
===================================================================
--- packages/python-mock/branches/squeeze-backports/debian/rules	2014-10-27 13:15:48 UTC (rev 31287)
+++ packages/python-mock/branches/squeeze-backports/debian/rules	2014-10-27 21:19:28 UTC (rev 31288)
@@ -4,39 +4,37 @@
 #export DH_VERBOSE=1
 
 PYVERS :=  $(shell pyversions -r)
-PY3VERS := $(shell py3versions -r)
 
+export PYTHONDONTWRITEBYTECODE=yes
+
 %:
-	dh $@ --with python2,python3,sphinxdoc
+	dh $@ --with python2,sphinxdoc
 	
 .PHONY: override_dh_auto_build
 override_dh_auto_build:
 	set -e; \
-	for py in $(PYVERS) $(PY3VERS); do \
-		$$py -B setup.py build; \
+	for py in $(PYVERS); do \
+		$$py setup.py build; \
 	done
 	PYTHONPATH=. sphinx-build -b html -N docs/ docs/.build/html
 
 .PHONY: override_dh_auto_clean
 override_dh_auto_clean:
 	set -e; \
-	for py in $(PYVERS) $(PY3VERS); do \
-		$$py -B setup.py clean; \
+	for py in $(PYVERS); do \
+		$$py setup.py clean; \
 		rm -rf build; \
 	done
+	find . -name '*.pyc' -delete
+	find . -name '*.pyo' -delete
 
 .PHONY: override_dh_auto_install
 override_dh_auto_install:
 	set -e; \
 	for py in $(PYVERS); do \
-		$$py -B setup.py install --skip-build --root debian/python-mock \
+		$$py setup.py install --skip-build --root debian/python-mock \
 		                      --install-layout deb; \
 	done
-	set -e; \
-	for py in $(PY3VERS); do \
-		$$py -B setup.py install --skip-build --root debian/python3-mock \
-		                      --install-layout deb; \
-	done
 	rm debian/python*-mock/usr/lib/python*/*-packages/mock*.egg-info/SOURCES.txt
 	sed -i 's/Metadata-Version: 1\.0/Metadata-Version: 1\.1/' debian/python-mock/usr/lib/python2.*/*-packages/mock*.egg-info/PKG-INFO
 
@@ -57,7 +55,7 @@
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	set -e; \
-	for py in $(PYVERS) $(PY3VERS); do \
+	for py in $(PYVERS); do \
 		$$py setup.py test ; \
 	done
 endif




More information about the Python-modules-commits mailing list