[Python-modules-commits] r25966 - in packages/python-dbusmock/trunk/debian (6 files)

mpitt at users.alioth.debian.org mpitt at users.alioth.debian.org
Wed Sep 25 08:15:20 UTC 2013


    Date: Wednesday, September 25, 2013 @ 08:15:18
  Author: mpitt
Revision: 25966

Build a Python 2 package. (LP: #1230141)

Added:
  packages/python-dbusmock/trunk/debian/python-dbusmock.docs
  packages/python-dbusmock/trunk/debian/python-dbusmock.examples
  packages/python-dbusmock/trunk/debian/python-dbusmock.install
Modified:
  packages/python-dbusmock/trunk/debian/changelog
  packages/python-dbusmock/trunk/debian/control
  packages/python-dbusmock/trunk/debian/rules

Modified: packages/python-dbusmock/trunk/debian/changelog
===================================================================
--- packages/python-dbusmock/trunk/debian/changelog	2013-09-25 07:52:05 UTC (rev 25965)
+++ packages/python-dbusmock/trunk/debian/changelog	2013-09-25 08:15:18 UTC (rev 25966)
@@ -1,3 +1,9 @@
+python-dbusmock (0.7.2-2) UNRELEASED; urgency=low
+
+  * Build a Python 2 package. (LP: #1230141)
+
+ -- Martin Pitt <mpitt at debian.org>  Wed, 25 Sep 2013 10:14:55 +0200
+
 python-dbusmock (0.7.2-1) unstable; urgency=low
 
   * New upstream release:

Modified: packages/python-dbusmock/trunk/debian/control
===================================================================
--- packages/python-dbusmock/trunk/debian/control	2013-09-25 07:52:05 UTC (rev 25965)
+++ packages/python-dbusmock/trunk/debian/control	2013-09-25 08:15:18 UTC (rev 25966)
@@ -3,9 +3,14 @@
 Priority: optional
 Build-Depends: debhelper (>= 9),
  dh-python,
+ python-all,
+ python-setuptools,
  python3-all,
  python3-setuptools
 Build-Depends-Indep: upower,
+ python-nose,
+ python-dbus,
+ python-gi,
  python3-nose,
  python3-dbus,
  python3-gi,
@@ -17,20 +22,47 @@
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-dbusmock/trunk/
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-dbusmock/trunk/
 Standards-Version: 3.9.4
+X-Python-Version: >= 2.7
 X-Python3-Version: >= 3.2
 Homepage: https://launchpad.net/python-dbusmock
 XS-Testsuite: autopkgtest
 
+Package: python-dbusmock
+Architecture: all
+Depends: ${python:Depends},
+ python-dbus,
+ python-gi,
+ gir1.2-glib-2.0 (>= 1.32),
+ dbus-x11,
+ ${misc:Depends}
+Description: mock D-Bus objects for tests (Python 2)
+ With python-dbusmock you can easily create mock objects on D-Bus. This is
+ useful for writing tests for software which talks to D-Bus services such as
+ upower, systemd, ConsoleKit, gnome-session or others, and it is hard (or
+ impossible without root privileges) to set the state of the real services to
+ what you expect in your tests.
+ .
+ Mock objects look like the real API (or at least the parts that you actually
+ need), but they do not actually do anything (or only some action that you
+ specify yourself). You can configure their state, behaviour and responses as
+ you like in your test, without making any assumptions about the real system
+ status.
+ .
+ You can use this with any programming language, as you can run the mocker as a
+ normal program. The actual setup of the mock (adding objects, methods,
+ properties, etc.) all happen via D-Bus methods on the
+ org.freedesktop.DBus.Mock interface. You just don't have the convenience
+ D-Bus launch API that way.
+
 Package: python3-dbusmock
 Architecture: all
-Depends: python3,
- ${python3:Depends},
+Depends: ${python3:Depends},
  python3-dbus,
  python3-gi,
  gir1.2-glib-2.0 (>= 1.32),
  dbus-x11,
  ${misc:Depends}
-Description: mock D-Bus objects for tests
+Description: mock D-Bus objects for tests (Python 3)
  With python-dbusmock you can easily create mock objects on D-Bus. This is
  useful for writing tests for software which talks to D-Bus services such as
  upower, systemd, ConsoleKit, gnome-session or others, and it is hard (or

Added: packages/python-dbusmock/trunk/debian/python-dbusmock.docs
===================================================================
--- packages/python-dbusmock/trunk/debian/python-dbusmock.docs	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/python-dbusmock.docs	2013-09-25 08:15:18 UTC (rev 25966)
@@ -0,0 +1 @@
+README.rst

Added: packages/python-dbusmock/trunk/debian/python-dbusmock.examples
===================================================================
--- packages/python-dbusmock/trunk/debian/python-dbusmock.examples	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/python-dbusmock.examples	2013-09-25 08:15:18 UTC (rev 25966)
@@ -0,0 +1 @@
+tests/test_*.py

Added: packages/python-dbusmock/trunk/debian/python-dbusmock.install
===================================================================
--- packages/python-dbusmock/trunk/debian/python-dbusmock.install	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/python-dbusmock.install	2013-09-25 08:15:18 UTC (rev 25966)
@@ -0,0 +1 @@
+usr/lib/python2*

Modified: packages/python-dbusmock/trunk/debian/rules
===================================================================
--- packages/python-dbusmock/trunk/debian/rules	2013-09-25 07:52:05 UTC (rev 25965)
+++ packages/python-dbusmock/trunk/debian/rules	2013-09-25 08:15:18 UTC (rev 25966)
@@ -1,10 +1,7 @@
 #!/usr/bin/make -f
 
 %:
-	dh "$@" --with python3 --buildsystem=pybuild
+	dh "$@" --with python2,python3 --buildsystem=pybuild
 
-override_dh_install:
-	true
-
 override_dh_compress:
 	dh_compress -X.py




More information about the Python-modules-commits mailing list