public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/dbusmock/, dev-python/dbusmock/files/
@ 2017-08-16  7:28 Gilles Dartiguelongue
  0 siblings, 0 replies; 5+ messages in thread
From: Gilles Dartiguelongue @ 2017-08-16  7:28 UTC (permalink / raw
  To: gentoo-commits

commit:     3fa54e38369d6e614fca87a30bfb3a469a7008e8
Author:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 16 07:27:42 2017 +0000
Commit:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Wed Aug 16 07:28:06 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fa54e38

dev-python/dbusmock: version bump 0.16.7 → 0.16.9

Package-Manager: Portage-2.3.7, Repoman-2.3.3

 dev-python/dbusmock/Manifest                       |  1 +
 dev-python/dbusmock/dbusmock-0.16.9.ebuild         | 46 +++++++++++++
 .../files/0.16.9-disable-style-tests.patch         | 14 ++++
 .../files/0.16.9-replace-dbus-launch.patch         | 76 ++++++++++++++++++++++
 4 files changed, 137 insertions(+)

diff --git a/dev-python/dbusmock/Manifest b/dev-python/dbusmock/Manifest
index 456da5e87fe..d4ff31f5ca6 100644
--- a/dev-python/dbusmock/Manifest
+++ b/dev-python/dbusmock/Manifest
@@ -1 +1,2 @@
 DIST dbusmock-0.16.7.tar.gz 70544 SHA256 2d2ea892fa4633c3ec6ac1e912120ec493047a5c6522849b7d1c95ad755bce75 SHA512 749728b966b1e067a0a8bd61ee64c1c7ff22751ccb48e15096d041e78c6e779d787160ee191e90daa3177b92c0ee45c66af74b2dd4e4bcb570892b431ec13467 WHIRLPOOL 921c47fb0b86a6a3368c3b37c27f30b75edacefb46f1a726e39f35eb7b1ea7d0f78c3a7e04b218016c558578625ff28188bfece7cbc7aa06405effe4ab614f92
+DIST dbusmock-0.16.9.tar.gz 71014 SHA256 892b770a7f6c800fd6c0a9d102ef085a9371cc4eaed95dabbd740913dc08dd9b SHA512 3aa91f6ede054ed3d3a69f68f3886094e881d266a8f09c7d08a34d10b080a77facde8aae01e75232472c2e643574fe897dae2c3588f5ad9ecf4ec4e67f404f54 WHIRLPOOL 192d522a79b365630d0ef2069b5cf1cdae3ddb7896ad9db590ff8e7a180d44ac101ed123c035c272c27cc96cb33bbed1a9e00bf08ab0e248554f3ed374ead1ee

diff --git a/dev-python/dbusmock/dbusmock-0.16.9.ebuild b/dev-python/dbusmock/dbusmock-0.16.9.ebuild
new file mode 100644
index 00000000000..f232c0a9d8c
--- /dev/null
+++ b/dev-python/dbusmock/dbusmock-0.16.9.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1
+
+MY_PN="python-${PN}"
+MY_P="${MY_PN}-${PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Easily create mock objects on D-Bus for software testing"
+HOMEPAGE="https://github.com/martinpitt/python-dbusmock"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc"
+IUSE="test"
+
+RDEPEND="
+	dev-python/dbus-python[${PYTHON_USEDEP}]
+	dev-python/pygobject:3[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+	>=dev-python/setuptools-17.1[${PYTHON_USEDEP}]
+	test? (
+		dev-python/nose[${PYTHON_USEDEP}]
+	)"
+
+PATCHES=(
+	"${FILESDIR}"/0.16.9-disable-style-tests.patch
+	"${FILESDIR}"/0.16.9-replace-dbus-launch.patch
+)
+
+python_test() {
+	nosetests --verbose || die "tests fail under ${EPYTHON}"
+}
+
+python_install_all() {
+	local DOCS=( NEWS README.rst )
+
+	distutils-r1_python_install_all
+}

diff --git a/dev-python/dbusmock/files/0.16.9-disable-style-tests.patch b/dev-python/dbusmock/files/0.16.9-disable-style-tests.patch
new file mode 100644
index 00000000000..cb7febdb4e5
--- /dev/null
+++ b/dev-python/dbusmock/files/0.16.9-disable-style-tests.patch
@@ -0,0 +1,14 @@
+These tests are bound to fail dependending on QA tools updates
+
+https://github.com/martinpitt/python-dbusmock/issues/28
+
+--- a/tests/test_code.py	2017-08-16 09:20:43.848503995 +0200
++++ b/tests/test_code.py	2017-08-16 09:20:54.410177037 +0200
+@@ -21,6 +21,7 @@
+     pycodestyle = None
+ 
+ 
++@unittest.skip('style tests')
+ class StaticCodeTests(unittest.TestCase):
+     @unittest.skipIf(subprocess.call(['which', 'pyflakes'], stdout=subprocess.PIPE) != 0,
+                      'pyflakes not installed')

diff --git a/dev-python/dbusmock/files/0.16.9-replace-dbus-launch.patch b/dev-python/dbusmock/files/0.16.9-replace-dbus-launch.patch
new file mode 100644
index 00000000000..54149ed033a
--- /dev/null
+++ b/dev-python/dbusmock/files/0.16.9-replace-dbus-launch.patch
@@ -0,0 +1,76 @@
+From 9470c54a2836795974e83e55ea859e4653b20b37 Mon Sep 17 00:00:00 2001
+From: Martin Pitt <martin@piware.de>
+Date: Mon, 19 Jun 2017 16:31:28 +0200
+Subject: [PATCH] Call dbus-daemon directly instead of dbus-launch
+
+dbus-launch is X11 specific and being deprecated.
+
+Adjust documentation to use dbus-run-session instead.
+
+https://bugs.debian.org/836053
+---
+ NEWS                 |  4 ++++
+ README.rst           |  6 +++---
+ dbusmock/testcase.py | 18 ++++++++++--------
+ 3 files changed, 17 insertions(+), 11 deletions(-)
+
+diff --git a/NEWS b/NEWS
+index c1250ea..181a4df 100644
+--- a/NEWS
++++ b/NEWS
+@@ -1,3 +1,7 @@
++0.17 (UNRELEASED)
++-----------------
++ - Call dbus-daemon directly instead of dbus-launch. (Debian #836053)
++
+ 0.16.9 (2017-06-19)
+ -------------------
+  - NetworkManager template: Fix type of 'State' property in AddActiveConnection()
+diff --git a/README.rst b/README.rst
+index 3dc4552..310e1ac 100644
+--- a/README.rst
++++ b/README.rst
+@@ -118,9 +118,9 @@ Let's walk through:
+ Simple example from shell
+ -------------------------
+ 
+-We use the actual session bus for this example. You can use ``dbus-launch`` to
+-start a private one as well if you want, but that is not part of the actual
+-mocking.
++We use the actual session bus for this example. You can use
++``dbus-run-session`` to start a private one as well if you want, but that is
++not part of the actual mocking.
+ 
+ So let's start a mock at the D-Bus name ``com.example.Foo`` with an initial
+ "main" object on path /, with the main D-Bus interface
+diff --git a/dbusmock/testcase.py b/dbusmock/testcase.py
+index 825c61f..49787e2 100644
+--- a/dbusmock/testcase.py
++++ b/dbusmock/testcase.py
+@@ -97,16 +97,18 @@ def start_dbus(klass, conf=None):
+         Normally you do not need to call this directly. Use start_system_bus()
+         and start_session_bus() instead.
+         '''
+-        argv = ['dbus-launch']
++        argv = ['dbus-daemon', '--fork', '--print-address=1', '--print-pid=1']
+         if conf:
+             argv.append('--config-file=' + conf)
+-        out = subprocess.check_output(argv, universal_newlines=True)
+-        variables = {}
+-        for line in out.splitlines():
+-            (k, v) = line.split('=', 1)
+-            variables[k] = v
+-        return (int(variables['DBUS_SESSION_BUS_PID']),
+-                variables['DBUS_SESSION_BUS_ADDRESS'])
++        else:
++            argv.append('--session')
++        lines = subprocess.check_output(argv, universal_newlines=True).strip().splitlines()
++        assert len(lines) == 2, 'expected exactly 2 lines of output from dbus-daemon'
++        # usually the first line is the address, but be lenient and accept any order
++        try:
++            return (int(lines[1]), lines[0])
++        except ValueError:
++            return (int(lines[0]), lines[1])
+ 
+     @classmethod
+     def stop_dbus(klass, pid):


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/dbusmock/, dev-python/dbusmock/files/
@ 2018-02-03 19:40 Mart Raudsepp
  0 siblings, 0 replies; 5+ messages in thread
From: Mart Raudsepp @ 2018-02-03 19:40 UTC (permalink / raw
  To: gentoo-commits

commit:     0c5751081595a053ab37e645b0543a9be19f3b52
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  3 19:22:01 2018 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sat Feb  3 19:38:42 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c575108

dev-python/dbusmock: remove old

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-python/dbusmock/Manifest                       |  1 -
 dev-python/dbusmock/dbusmock-0.16.7.ebuild         | 45 ----------------------
 .../files/0.16.7-disable-pyflakes-test.patch       | 20 ----------
 3 files changed, 66 deletions(-)

diff --git a/dev-python/dbusmock/Manifest b/dev-python/dbusmock/Manifest
index c096ceb5b61..2cc87933222 100644
--- a/dev-python/dbusmock/Manifest
+++ b/dev-python/dbusmock/Manifest
@@ -1,2 +1 @@
-DIST dbusmock-0.16.7.tar.gz 70544 BLAKE2B 4b7bcf4207362b61cdabce7752db07e76f8ab1e2ac96d1c9415a143ba6e8f8cfd51ff1bb0d051d58df5f7fddd96c6b871c10e377f975984cd83f2e2f9c7efdac SHA512 749728b966b1e067a0a8bd61ee64c1c7ff22751ccb48e15096d041e78c6e779d787160ee191e90daa3177b92c0ee45c66af74b2dd4e4bcb570892b431ec13467
 DIST dbusmock-0.16.9.tar.gz 71014 BLAKE2B d1c0853cfd06848f1d10afdd8de764814054a44080b44e1ac2ef3a1658a538f1e4c7f5936d65658c16da33ccbc2e94f35d2746f200fc6791f645e1eccc55f6fd SHA512 3aa91f6ede054ed3d3a69f68f3886094e881d266a8f09c7d08a34d10b080a77facde8aae01e75232472c2e643574fe897dae2c3588f5ad9ecf4ec4e67f404f54

diff --git a/dev-python/dbusmock/dbusmock-0.16.7.ebuild b/dev-python/dbusmock/dbusmock-0.16.7.ebuild
deleted file mode 100644
index dbb59680d73..00000000000
--- a/dev-python/dbusmock/dbusmock-0.16.7.ebuild
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
-PYTHON_REQ_USE="xml(+)"
-
-inherit distutils-r1
-
-MY_PN="python-${PN}"
-MY_P="${MY_PN}-${PV}"
-S="${WORKDIR}/${MY_P}"
-
-DESCRIPTION="Easily create mock objects on D-Bus for software testing"
-HOMEPAGE="https://github.com/martinpitt/python-dbusmock"
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="LGPL-3+"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64"
-IUSE="test"
-
-RDEPEND="
-	dev-python/dbus-python[${PYTHON_USEDEP}]
-	dev-python/pygobject:3[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}
-	>=dev-python/setuptools-17.1[${PYTHON_USEDEP}]
-	test? (
-		dev-python/nose[${PYTHON_USEDEP}]
-	)"
-
-PATCHES=(
-	"${FILESDIR}"/${PV}-disable-pyflakes-test.patch
-)
-
-python_test() {
-	nosetests --verbose || die "tests fail under ${EPYTHON}"
-}
-
-python_install_all() {
-	local DOCS=( NEWS README.rst )
-
-	distutils-r1_python_install_all
-}

diff --git a/dev-python/dbusmock/files/0.16.7-disable-pyflakes-test.patch b/dev-python/dbusmock/files/0.16.7-disable-pyflakes-test.patch
deleted file mode 100644
index 160003ce5ea..00000000000
--- a/dev-python/dbusmock/files/0.16.7-disable-pyflakes-test.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-https://github.com/martinpitt/python-dbusmock/issues/28
-
---- a/tests/test_code.orig
-+++ b/tests/test_code.py
-@@ -17,6 +17,7 @@
- 
- 
- class StaticCodeTests(unittest.TestCase):
-+    """
-     @unittest.skipIf(subprocess.call(['which', 'pyflakes'],
-                                      stdout=subprocess.PIPE) != 0,
-                      'pyflakes not installed')
-@@ -25,6 +26,7 @@
-                                     universal_newlines=True)
-         (out, err) = pyflakes.communicate()
-         self.assertEqual(pyflakes.returncode, 0, out)
-+    """
- 
-     @unittest.skipIf(subprocess.call(['which', 'pep8'],
-                                      stdout=subprocess.PIPE) != 0,


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/dbusmock/, dev-python/dbusmock/files/
@ 2019-03-02  8:33 Dennis Lamm
  0 siblings, 0 replies; 5+ messages in thread
From: Dennis Lamm @ 2019-03-02  8:33 UTC (permalink / raw
  To: gentoo-commits

commit:     ea5a43ab8d11a58410c4542c25cdd83c632688d1
Author:     Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  2 08:33:03 2019 +0000
Commit:     Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
CommitDate: Sat Mar  2 08:33:26 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea5a43ab

dev-python/dbusmock: version bump to 0.18.2

Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
Bug: https://bugs.gentoo.org/659878
Bug: https://bugs.gentoo.org/656912
Bug: https://bugs.gentoo.org/636414
Bug: https://bugs.gentoo.org/649552
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-python/dbusmock/Manifest                       |  1 +
 dev-python/dbusmock/dbusmock-0.18.2.ebuild         | 45 ++++++++++++++++++++++
 .../files/0.18.2-disable-polkitd-tests.patch       | 13 +++++++
 3 files changed, 59 insertions(+)

diff --git a/dev-python/dbusmock/Manifest b/dev-python/dbusmock/Manifest
index 2cc87933222..d8da470bc7d 100644
--- a/dev-python/dbusmock/Manifest
+++ b/dev-python/dbusmock/Manifest
@@ -1 +1,2 @@
 DIST dbusmock-0.16.9.tar.gz 71014 BLAKE2B d1c0853cfd06848f1d10afdd8de764814054a44080b44e1ac2ef3a1658a538f1e4c7f5936d65658c16da33ccbc2e94f35d2746f200fc6791f645e1eccc55f6fd SHA512 3aa91f6ede054ed3d3a69f68f3886094e881d266a8f09c7d08a34d10b080a77facde8aae01e75232472c2e643574fe897dae2c3588f5ad9ecf4ec4e67f404f54
+DIST dbusmock-0.18.2.tar.gz 72031 BLAKE2B 44b46f05e48f1178fe95e44c83899bbef5bc64dcee856be1b332890893a5b901a03c236ad9a8cc6cf2ece83efbf5ec798551320a098736ff95c13951333ffaa3 SHA512 2421cea872e1d84db639cae0d6cc10c4b80ccf64903b7b3f437cb58ad8e3d957c30c871f9666a7a7774808b4b56d6116959ea03fdc8b575ed98023b77b61c8a0

diff --git a/dev-python/dbusmock/dbusmock-0.18.2.ebuild b/dev-python/dbusmock/dbusmock-0.18.2.ebuild
new file mode 100644
index 00000000000..8a4c3472176
--- /dev/null
+++ b/dev-python/dbusmock/dbusmock-0.18.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1
+
+MY_PN="python-${PN}"
+MY_P="${MY_PN}-${PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Easily create mock objects on D-Bus for software testing"
+HOMEPAGE="https://github.com/martinpitt/python-dbusmock"
+SRC_URI="https://github.com/martinpitt/${MY_PN}/releases/download/${PV}/${MY_P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+
+RDEPEND="
+	dev-python/dbus-python[${PYTHON_USEDEP}]
+	dev-python/pygobject:3[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+	>=dev-python/setuptools-17.1[${PYTHON_USEDEP}]
+	test? (
+		dev-python/nose[${PYTHON_USEDEP}]
+	)"
+
+PATCHES=(
+	"${FILESDIR}"/0.18.2-disable-polkitd-tests.patch
+)
+
+python_test() {
+	nosetests --verbose || die "tests fail under ${EPYTHON}"
+}
+
+python_install_all() {
+	local DOCS=( NEWS README.rst )
+
+	distutils-r1_python_install_all
+}

diff --git a/dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch b/dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch
new file mode 100644
index 00000000000..2f17c233a3f
--- /dev/null
+++ b/dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch
@@ -0,0 +1,13 @@
+diff --git a/tests/test_polkitd.py b/tests/test_polkitd.py
+index f47fdfa..975878b 100644
+--- a/tests/test_polkitd.py
++++ b/tests/test_polkitd.py
+@@ -25,7 +25,7 @@ p.communicate()
+ have_pkcheck = (p.returncode == 0)
+ 
+ 
+-@unittest.skipUnless(have_pkcheck, 'pkcheck not installed')
++@unittest.skip
+ class TestPolkit(dbusmock.DBusTestCase):
+     '''Test mocking polkitd'''
+ 


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/dbusmock/, dev-python/dbusmock/files/
@ 2019-12-01 16:39 Mart Raudsepp
  0 siblings, 0 replies; 5+ messages in thread
From: Mart Raudsepp @ 2019-12-01 16:39 UTC (permalink / raw
  To: gentoo-commits

commit:     406b5c53c966d73fd068cb922fabc42c1c090cd9
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  1 16:31:45 2019 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sun Dec  1 16:31:45 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=406b5c53

dev-python/dbusmock: remove old

Package-Manager: Portage-2.3.69, Repoman-2.3.12
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>

 dev-python/dbusmock/Manifest                       |  1 -
 dev-python/dbusmock/dbusmock-0.16.9.ebuild         | 46 -------------
 .../files/0.16.9-disable-style-tests.patch         | 14 ----
 .../files/0.16.9-replace-dbus-launch.patch         | 76 ----------------------
 4 files changed, 137 deletions(-)

diff --git a/dev-python/dbusmock/Manifest b/dev-python/dbusmock/Manifest
index d8da470bc7d..5f6a671d2f1 100644
--- a/dev-python/dbusmock/Manifest
+++ b/dev-python/dbusmock/Manifest
@@ -1,2 +1 @@
-DIST dbusmock-0.16.9.tar.gz 71014 BLAKE2B d1c0853cfd06848f1d10afdd8de764814054a44080b44e1ac2ef3a1658a538f1e4c7f5936d65658c16da33ccbc2e94f35d2746f200fc6791f645e1eccc55f6fd SHA512 3aa91f6ede054ed3d3a69f68f3886094e881d266a8f09c7d08a34d10b080a77facde8aae01e75232472c2e643574fe897dae2c3588f5ad9ecf4ec4e67f404f54
 DIST dbusmock-0.18.2.tar.gz 72031 BLAKE2B 44b46f05e48f1178fe95e44c83899bbef5bc64dcee856be1b332890893a5b901a03c236ad9a8cc6cf2ece83efbf5ec798551320a098736ff95c13951333ffaa3 SHA512 2421cea872e1d84db639cae0d6cc10c4b80ccf64903b7b3f437cb58ad8e3d957c30c871f9666a7a7774808b4b56d6116959ea03fdc8b575ed98023b77b61c8a0

diff --git a/dev-python/dbusmock/dbusmock-0.16.9.ebuild b/dev-python/dbusmock/dbusmock-0.16.9.ebuild
deleted file mode 100644
index 47cb5113fdf..00000000000
--- a/dev-python/dbusmock/dbusmock-0.16.9.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python2_7 python3_{5,6} )
-PYTHON_REQ_USE="xml(+)"
-
-inherit distutils-r1
-
-MY_PN="python-${PN}"
-MY_P="${MY_PN}-${PV}"
-S="${WORKDIR}/${MY_P}"
-
-DESCRIPTION="Easily create mock objects on D-Bus for software testing"
-HOMEPAGE="https://github.com/martinpitt/python-dbusmock"
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="LGPL-3+"
-SLOT="0"
-KEYWORDS="alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 sparc x86"
-IUSE="test"
-
-RDEPEND="
-	dev-python/dbus-python[${PYTHON_USEDEP}]
-	dev-python/pygobject:3[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}
-	>=dev-python/setuptools-17.1[${PYTHON_USEDEP}]
-	test? (
-		dev-python/nose[${PYTHON_USEDEP}]
-	)"
-
-PATCHES=(
-	"${FILESDIR}"/0.16.9-disable-style-tests.patch
-	"${FILESDIR}"/0.16.9-replace-dbus-launch.patch
-)
-
-python_test() {
-	nosetests --verbose || die "tests fail under ${EPYTHON}"
-}
-
-python_install_all() {
-	local DOCS=( NEWS README.rst )
-
-	distutils-r1_python_install_all
-}

diff --git a/dev-python/dbusmock/files/0.16.9-disable-style-tests.patch b/dev-python/dbusmock/files/0.16.9-disable-style-tests.patch
deleted file mode 100644
index cb7febdb4e5..00000000000
--- a/dev-python/dbusmock/files/0.16.9-disable-style-tests.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-These tests are bound to fail dependending on QA tools updates
-
-https://github.com/martinpitt/python-dbusmock/issues/28
-
---- a/tests/test_code.py	2017-08-16 09:20:43.848503995 +0200
-+++ b/tests/test_code.py	2017-08-16 09:20:54.410177037 +0200
-@@ -21,6 +21,7 @@
-     pycodestyle = None
- 
- 
-+@unittest.skip('style tests')
- class StaticCodeTests(unittest.TestCase):
-     @unittest.skipIf(subprocess.call(['which', 'pyflakes'], stdout=subprocess.PIPE) != 0,
-                      'pyflakes not installed')

diff --git a/dev-python/dbusmock/files/0.16.9-replace-dbus-launch.patch b/dev-python/dbusmock/files/0.16.9-replace-dbus-launch.patch
deleted file mode 100644
index 54149ed033a..00000000000
--- a/dev-python/dbusmock/files/0.16.9-replace-dbus-launch.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-From 9470c54a2836795974e83e55ea859e4653b20b37 Mon Sep 17 00:00:00 2001
-From: Martin Pitt <martin@piware.de>
-Date: Mon, 19 Jun 2017 16:31:28 +0200
-Subject: [PATCH] Call dbus-daemon directly instead of dbus-launch
-
-dbus-launch is X11 specific and being deprecated.
-
-Adjust documentation to use dbus-run-session instead.
-
-https://bugs.debian.org/836053
----
- NEWS                 |  4 ++++
- README.rst           |  6 +++---
- dbusmock/testcase.py | 18 ++++++++++--------
- 3 files changed, 17 insertions(+), 11 deletions(-)
-
-diff --git a/NEWS b/NEWS
-index c1250ea..181a4df 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,3 +1,7 @@
-+0.17 (UNRELEASED)
-+-----------------
-+ - Call dbus-daemon directly instead of dbus-launch. (Debian #836053)
-+
- 0.16.9 (2017-06-19)
- -------------------
-  - NetworkManager template: Fix type of 'State' property in AddActiveConnection()
-diff --git a/README.rst b/README.rst
-index 3dc4552..310e1ac 100644
---- a/README.rst
-+++ b/README.rst
-@@ -118,9 +118,9 @@ Let's walk through:
- Simple example from shell
- -------------------------
- 
--We use the actual session bus for this example. You can use ``dbus-launch`` to
--start a private one as well if you want, but that is not part of the actual
--mocking.
-+We use the actual session bus for this example. You can use
-+``dbus-run-session`` to start a private one as well if you want, but that is
-+not part of the actual mocking.
- 
- So let's start a mock at the D-Bus name ``com.example.Foo`` with an initial
- "main" object on path /, with the main D-Bus interface
-diff --git a/dbusmock/testcase.py b/dbusmock/testcase.py
-index 825c61f..49787e2 100644
---- a/dbusmock/testcase.py
-+++ b/dbusmock/testcase.py
-@@ -97,16 +97,18 @@ def start_dbus(klass, conf=None):
-         Normally you do not need to call this directly. Use start_system_bus()
-         and start_session_bus() instead.
-         '''
--        argv = ['dbus-launch']
-+        argv = ['dbus-daemon', '--fork', '--print-address=1', '--print-pid=1']
-         if conf:
-             argv.append('--config-file=' + conf)
--        out = subprocess.check_output(argv, universal_newlines=True)
--        variables = {}
--        for line in out.splitlines():
--            (k, v) = line.split('=', 1)
--            variables[k] = v
--        return (int(variables['DBUS_SESSION_BUS_PID']),
--                variables['DBUS_SESSION_BUS_ADDRESS'])
-+        else:
-+            argv.append('--session')
-+        lines = subprocess.check_output(argv, universal_newlines=True).strip().splitlines()
-+        assert len(lines) == 2, 'expected exactly 2 lines of output from dbus-daemon'
-+        # usually the first line is the address, but be lenient and accept any order
-+        try:
-+            return (int(lines[1]), lines[0])
-+        except ValueError:
-+            return (int(lines[0]), lines[1])
- 
-     @classmethod
-     def stop_dbus(klass, pid):


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/dbusmock/, dev-python/dbusmock/files/
@ 2021-01-18 18:48 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2021-01-18 18:48 UTC (permalink / raw
  To: gentoo-commits

commit:     8124f5852a36d75a1b09e330480cddcb32db4933
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 18 18:46:28 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jan 18 18:46:28 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8124f585

dev-python/dbusmock: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/dbusmock/Manifest                       |  2 -
 dev-python/dbusmock/dbusmock-0.19.ebuild           | 46 ----------------------
 dev-python/dbusmock/dbusmock-0.21.0.ebuild         | 34 ----------------
 .../files/0.18.2-disable-polkitd-tests.patch       | 13 ------
 4 files changed, 95 deletions(-)

diff --git a/dev-python/dbusmock/Manifest b/dev-python/dbusmock/Manifest
index 8d586730318..3b32f637d6c 100644
--- a/dev-python/dbusmock/Manifest
+++ b/dev-python/dbusmock/Manifest
@@ -1,4 +1,2 @@
-DIST dbusmock-0.19.tar.gz 72567 BLAKE2B 973cfa02d1aec29f2151ce077471c49f7def3cee079eb975bbc1abca39cc6d391f5dc4aed40fcd9c9db3fcc25429e689f130dc495b94428b73c64f3c650a9c3a SHA512 9f49cb1818c0de8b774d4ccd0eed35de3b0a95de669e70539699237b5cdfee993da7747dc28375c8f1c26fac83d948b7ce25107d866e28b833b556c6f654706c
 DIST dbusmock-0.20.0.tar.gz 72228 BLAKE2B 704287414bf562bcda9c25c6febd6c4a7b0123c1c38dcbe00f5448dc94784eb6002825975f03b8633e253dd63b18126026c9630aa98fcd891d7e40eba207f123 SHA512 26660439801dbd4c2cdc146d67fa465ecfdfbe4dba4fbd163e0f00af415247d0ff502122d0a850b5bd6dde9f296dea601dcb180ba4bdd5d58966ee4ccdef8999
-DIST python-dbusmock-0.21.0.tar.gz 68184 BLAKE2B 3a9ecac8677d0c48f458ae6b39d3fd38aca0bc85ea666f0806f6fb463161cd983ef83af6b0c9f68ace64d4f3a28920f71265d75aa5a6bf8dc61a506ab6f8b67d SHA512 46acfdb7598a99f2daf8ab00677e558bc499c092b44f3231f1371b4aa99393d2bdcfdc8d2181236362932c89c0d94a283e6e985c61cf284652f55ec192f8de1f
 DIST python-dbusmock-0.22.0.tar.gz 68626 BLAKE2B 51b897ad95bc547afe6cd59abed243dcaecd3c6ce8c47825f3a2eeaf7364c5aba04d23247c876f748b071f30753a86da954493bc63f0ae503085974e7e769658 SHA512 2c3430f4178a16acc376ce582f4a1a9bbe8b917efcd7eee58dab85ee3addf60ba355ae9e7b318ec2cdf7ca771183c37d16520a1e5bcab8414c66e2d2a36d26fe

diff --git a/dev-python/dbusmock/dbusmock-0.19.ebuild b/dev-python/dbusmock/dbusmock-0.19.ebuild
deleted file mode 100644
index 899a8a78598..00000000000
--- a/dev-python/dbusmock/dbusmock-0.19.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6..9} )
-PYTHON_REQ_USE="xml(+)"
-
-inherit distutils-r1
-
-MY_PN="python-${PN}"
-MY_P="${MY_PN}-${PV}"
-S="${WORKDIR}/${MY_P}"
-
-DESCRIPTION="Easily create mock objects on D-Bus for software testing"
-HOMEPAGE="https://github.com/martinpitt/python-dbusmock"
-SRC_URI="https://github.com/martinpitt/${MY_PN}/releases/download/${PV}/${MY_P}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="LGPL-3+"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 sparc x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-	dev-python/dbus-python[${PYTHON_USEDEP}]
-	dev-python/pygobject:3[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}
-	>=dev-python/setuptools-17.1[${PYTHON_USEDEP}]
-	test? (
-		dev-python/nose[${PYTHON_USEDEP}]
-	)"
-
-PATCHES=(
-	"${FILESDIR}"/0.18.2-disable-polkitd-tests.patch
-)
-
-python_test() {
-	nosetests --verbose || die "tests fail under ${EPYTHON}"
-}
-
-python_install_all() {
-	local DOCS=( NEWS README.rst )
-
-	distutils-r1_python_install_all
-}

diff --git a/dev-python/dbusmock/dbusmock-0.21.0.ebuild b/dev-python/dbusmock/dbusmock-0.21.0.ebuild
deleted file mode 100644
index 8ba3f1810b5..00000000000
--- a/dev-python/dbusmock/dbusmock-0.21.0.ebuild
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..9} )
-PYTHON_REQ_USE="xml(+)"
-
-inherit distutils-r1
-
-MY_PN="python-${PN}"
-MY_P="${MY_PN}-${PV}"
-
-DESCRIPTION="Easily create mock objects on D-Bus for software testing"
-HOMEPAGE="https://github.com/martinpitt/python-dbusmock"
-SRC_URI="https://github.com/martinpitt/${MY_PN}/releases/download/${PV}/${MY_P}.tar.gz"
-S=${WORKDIR}/${MY_P}
-
-LICENSE="LGPL-3+"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-
-RDEPEND="
-	dev-python/dbus-python[${PYTHON_USEDEP}]
-	dev-python/pygobject:3[${PYTHON_USEDEP}]"
-
-distutils_enable_tests unittest
-
-src_prepare() {
-	# needed for unittest discovery
-	> tests/__init__.py || die
-
-	distutils-r1_src_prepare
-}

diff --git a/dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch b/dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch
deleted file mode 100644
index 2f17c233a3f..00000000000
--- a/dev-python/dbusmock/files/0.18.2-disable-polkitd-tests.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/tests/test_polkitd.py b/tests/test_polkitd.py
-index f47fdfa..975878b 100644
---- a/tests/test_polkitd.py
-+++ b/tests/test_polkitd.py
-@@ -25,7 +25,7 @@ p.communicate()
- have_pkcheck = (p.returncode == 0)
- 
- 
--@unittest.skipUnless(have_pkcheck, 'pkcheck not installed')
-+@unittest.skip
- class TestPolkit(dbusmock.DBusTestCase):
-     '''Test mocking polkitd'''
- 


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-18 18:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-18 18:48 [gentoo-commits] repo/gentoo:master commit in: dev-python/dbusmock/, dev-python/dbusmock/files/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2019-12-01 16:39 Mart Raudsepp
2019-03-02  8:33 Dennis Lamm
2018-02-03 19:40 Mart Raudsepp
2017-08-16  7:28 Gilles Dartiguelongue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox