[Python-modules-commits] r23125 - in packages/pyhamcrest/trunk/debian (4 files)
davidvilla-guest at users.alioth.debian.org
davidvilla-guest at users.alioth.debian.org
Sun Dec 2 23:57:58 UTC 2012
Date: Sunday, December 2, 2012 @ 23:57:56
Author: davidvilla-guest
Revision: 23125
python3-hamcrest package
Modified:
packages/pyhamcrest/trunk/debian/changelog
packages/pyhamcrest/trunk/debian/control
packages/pyhamcrest/trunk/debian/rules
Deleted:
packages/pyhamcrest/trunk/debian/patches/
Modified: packages/pyhamcrest/trunk/debian/changelog
===================================================================
--- packages/pyhamcrest/trunk/debian/changelog 2012-12-01 21:46:32 UTC (rev 23124)
+++ packages/pyhamcrest/trunk/debian/changelog 2012-12-02 23:57:56 UTC (rev 23125)
@@ -1,9 +1,11 @@
pyhamcrest (1.6-3) unstable; urgency=low
- * debian/patches/remove-egg.diff to remove upstream egg due a new egg is created
- by dh_python (Closes: #671190)
- * add depend quilt
+ * debian/control: new binary package: python3-hamcrest
+ * debian/control: new build-depends: python3-all, python3-setuptools
+ * debian/rules: removing egg in override_dh_auto_clean (Closes: #671190)
+ * debian/rules: overriding to install python3 files
* change maintainer email address to David.Villa at gmail.com
+ * thanks to Piotr Ożarowski <piotr at debian.org>
-- David Villa Alises <David.Villa at gmail.com> Wed, 28 Nov 2012 12:06:30 +0100
Modified: packages/pyhamcrest/trunk/debian/control
===================================================================
--- packages/pyhamcrest/trunk/debian/control 2012-12-01 21:46:32 UTC (rev 23124)
+++ packages/pyhamcrest/trunk/debian/control 2012-12-02 23:57:56 UTC (rev 23125)
@@ -3,16 +3,21 @@
Priority: optional
Maintainer: David Villa Alises <David.Villa at gmail.com>
Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 7), quilt
+Build-Depends:
+ debhelper (>= 7.0.50),
+ python-all (>= 2.6.6-3),
+ python-setuptools (>= 0.6b3),
+ python3-all,
+ python3-setuptools
Standards-Version: 3.9.3
Homepage: http://code.google.com/p/hamcrest
-Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyhamcrest
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyhamcrest/trunk
Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pyhamcrest/trunk/
Package: python-hamcrest
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
-Description: Hamcrest framework for matcher objects
+Description: Hamcrest framework for matcher objects (Python 2)
PyHamcrest is a framework for writing matcher objects, allowing you to
declaratively define "match" rules. There are a number of situations where
matchers are invaluable, such as UI validation, or data filtering, but it is in
@@ -24,3 +29,19 @@
enough (making the test less valuable since it continues to pass even when the
thing being tested is broken). Having a tool that allows you to pick out
precisely the aspect under test and describe the values it should have, to a
+
+Package: python3-hamcrest
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: Hamcrest framework for matcher objects (Python 3)
+ PyHamcrest is a framework for writing matcher objects, allowing you to
+ declaratively define "match" rules. There are a number of situations where
+ matchers are invaluable, such as UI validation, or data filtering, but it is in
+ the area of writing flexible tests that matchers are most commonly used. This
+ tutorial shows you how to use PyHamcrest for unit testing.
+ .
+ When writing tests it is sometimes difficult to get the balance right between
+ overspecifying the test (and making it brittle to changes), and not specifying
+ enough (making the test less valuable since it continues to pass even when the
+ thing being tested is broken). Having a tool that allows you to pick out
+ precisely the aspect under test and describe the values it should have, to a
Modified: packages/pyhamcrest/trunk/debian/rules
===================================================================
--- packages/pyhamcrest/trunk/debian/rules 2012-12-01 21:46:32 UTC (rev 23124)
+++ packages/pyhamcrest/trunk/debian/rules 2012-12-02 23:57:56 UTC (rev 23125)
@@ -1,4 +1,27 @@
#!/usr/bin/make -f
+# http://wiki.debian.org/Python/LibraryStyleGuide
+
+PYTHON2=$(shell pyversions -vr)
+PYTHON3=$(shell py3versions -vr)
+
%:
- dh $@ --with python2 --with quilt
+ dh $@ --with python2,python3
+
+
+build-python%:
+ python$* setup.py build
+
+override_dh_auto_build: $(PYTHON3:%=build-python%)
+ dh_auto_build
+
+install-python%:
+ python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+
+override_dh_auto_install: $(PYTHON3:%=install-python%)
+ dh_auto_install
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -rf build
+ rm -rf *.egg-info
More information about the Python-modules-commits
mailing list