[Python-modules-commits] r22873 - in packages (12 files)

mpitt at users.alioth.debian.org mpitt at users.alioth.debian.org
Fri Nov 2 21:02:22 UTC 2012


    Date: Friday, November 2, 2012 @ 21:02:20
  Author: mpitt
Revision: 22873

first packaging of python-dbusmock

Added:
  packages/python-dbusmock/
  packages/python-dbusmock/trunk/
  packages/python-dbusmock/trunk/debian/
  packages/python-dbusmock/trunk/debian/changelog
  packages/python-dbusmock/trunk/debian/compat
  packages/python-dbusmock/trunk/debian/control
  packages/python-dbusmock/trunk/debian/copyright
  packages/python-dbusmock/trunk/debian/python3-dbusmock.docs
  packages/python-dbusmock/trunk/debian/python3-dbusmock.examples
  packages/python-dbusmock/trunk/debian/python3-dbusmock.install
  packages/python-dbusmock/trunk/debian/rules
  packages/python-dbusmock/trunk/debian/watch

Added: packages/python-dbusmock/trunk/debian/changelog
===================================================================
--- packages/python-dbusmock/trunk/debian/changelog	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/changelog	2012-11-02 21:02:20 UTC (rev 22873)
@@ -0,0 +1,5 @@
+python-dbusmock (0.1.2-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #692023)
+
+ -- Martin Pitt <mpitt at debian.org>  Mon, 01 Oct 2012 09:38:35 +0200

Added: packages/python-dbusmock/trunk/debian/compat
===================================================================
--- packages/python-dbusmock/trunk/debian/compat	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/compat	2012-11-02 21:02:20 UTC (rev 22873)
@@ -0,0 +1 @@
+9

Added: packages/python-dbusmock/trunk/debian/control
===================================================================
--- packages/python-dbusmock/trunk/debian/control	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/control	2012-11-02 21:02:20 UTC (rev 22873)
@@ -0,0 +1,47 @@
+Source: python-dbusmock
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+ python3-all,
+ python3-setuptools
+Build-Depends-Indep: consolekit,
+ upower,
+ python3-nose,
+ python3-dbus,
+ python3-gi,
+ gir1.2-glib-2.0 (>= 1.32),
+ dbus-x11
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Martin Pitt <mpitt at debian.org>
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-dbusmock/trunk/
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-dbusmock/trunk
+Standards-Version: 3.9.3
+X-Python3-Version: >= 3.2
+Homepage: https://launchpad.net/python-dbusmock
+
+Package: python3-dbusmock
+Architecture: all
+Depends: python3,
+ python3-dbus,
+ python3-gi,
+ gir1.2-glib-2.0 (>= 1.32),
+ dbus-x11,
+ ${misc:Depends}
+Description: mock D-Bus objects for tests
+ 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.

Added: packages/python-dbusmock/trunk/debian/copyright
===================================================================
--- packages/python-dbusmock/trunk/debian/copyright	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/copyright	2012-11-02 21:02:20 UTC (rev 22873)
@@ -0,0 +1,15 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Contact: Martin Pitt <martin.pitt at ubuntu.com>
+Source: https://launchpad.net/python-dbusmock/+download
+
+Files: *
+Copyright:
+ Copyright (C) 2012 Canonical Ltd.
+License: GPL-3+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in `/usr/share/common-licenses/LGPL-3'.

Added: packages/python-dbusmock/trunk/debian/python3-dbusmock.docs
===================================================================
--- packages/python-dbusmock/trunk/debian/python3-dbusmock.docs	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/python3-dbusmock.docs	2012-11-02 21:02:20 UTC (rev 22873)
@@ -0,0 +1 @@
+README.rst

Added: packages/python-dbusmock/trunk/debian/python3-dbusmock.examples
===================================================================
--- packages/python-dbusmock/trunk/debian/python3-dbusmock.examples	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/python3-dbusmock.examples	2012-11-02 21:02:20 UTC (rev 22873)
@@ -0,0 +1 @@
+tests/test_*.py

Added: packages/python-dbusmock/trunk/debian/python3-dbusmock.install
===================================================================
--- packages/python-dbusmock/trunk/debian/python3-dbusmock.install	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/python3-dbusmock.install	2012-11-02 21:02:20 UTC (rev 22873)
@@ -0,0 +1 @@
+usr/lib/python3*

Added: packages/python-dbusmock/trunk/debian/rules
===================================================================
--- packages/python-dbusmock/trunk/debian/rules	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/rules	2012-11-02 21:02:20 UTC (rev 22873)
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+%:
+	dh "$@" --with python3
+
+# needs manual commands for Python 3, see Debian #597105
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf build
+
+override_dh_auto_build:
+	python3 setup.py build
+
+override_dh_auto_install:
+	set -ex; for python in $(shell py3versions -r); do \
+	    $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
+	done
+
+override_dh_auto_test:
+ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS)))
+	./setup.py test
+endif
+
+override_dh_compress:
+	dh_compress -X.py


Property changes on: packages/python-dbusmock/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/python-dbusmock/trunk/debian/watch
===================================================================
--- packages/python-dbusmock/trunk/debian/watch	                        (rev 0)
+++ packages/python-dbusmock/trunk/debian/watch	2012-11-02 21:02:20 UTC (rev 22873)
@@ -0,0 +1,2 @@
+version=3
+http://launchpad.net/python-dbusmock/+download .*/python-dbusmock-([0-9.]+)\.tar\.gz




More information about the Python-modules-commits mailing list