From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/paho-mqtt/
Date: Wed, 25 Mar 2020 11:46:09 +0000 (UTC) [thread overview]
Message-ID: <1585136455.4bea3aea63fa191fa77e4ca95de03a7dd4ba1f4e.mgorny@gentoo> (raw)
commit: 4bea3aea63fa191fa77e4ca95de03a7dd4ba1f4e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 25 11:13:57 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Mar 25 11:40:55 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bea3aea
dev-python/paho-mqtt: Run pytest directly
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/paho-mqtt/paho-mqtt-1.4.0.ebuild | 13 ++++---------
dev-python/paho-mqtt/paho-mqtt-1.5.0.ebuild | 12 +++---------
2 files changed, 7 insertions(+), 18 deletions(-)
diff --git a/dev-python/paho-mqtt/paho-mqtt-1.4.0.ebuild b/dev-python/paho-mqtt/paho-mqtt-1.4.0.ebuild
index d37ae460afc..59c91177432 100644
--- a/dev-python/paho-mqtt/paho-mqtt-1.4.0.ebuild
+++ b/dev-python/paho-mqtt/paho-mqtt-1.4.0.ebuild
@@ -9,29 +9,24 @@ inherit distutils-r1
DESCRIPTION="A client class with support for both MQTT v3.1 and v3.1.1"
HOMEPAGE="https://www.eclipse.org/paho/clients/python/"
SRC_URI="https://github.com/eclipse/paho.mqtt.python/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/paho.mqtt.python-${PV}"
LICENSE="EPL-1.0"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
-IUSE="test"
RDEPEND=""
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+DEPEND="
test? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
- dev-python/pytest-runner[${PYTHON_USEDEP}]
) "
-S="${WORKDIR}/paho.mqtt.python-${PV}"
-
RESTRICT="test" #659106
+distutils_enable_tests pytest
+
src_prepare() {
eapply "${FILESDIR}/${PN}-1.3.1-strip-test-dependency.patch"
default
}
-
-python_test() {
- esetup.py test
-}
diff --git a/dev-python/paho-mqtt/paho-mqtt-1.5.0.ebuild b/dev-python/paho-mqtt/paho-mqtt-1.5.0.ebuild
index c85da652163..b72e1c3b5b9 100644
--- a/dev-python/paho-mqtt/paho-mqtt-1.5.0.ebuild
+++ b/dev-python/paho-mqtt/paho-mqtt-1.5.0.ebuild
@@ -9,29 +9,23 @@ inherit distutils-r1
DESCRIPTION="A client class with support for both MQTT v3.1 and v3.1.1"
HOMEPAGE="https://www.eclipse.org/paho/clients/python/"
SRC_URI="https://github.com/eclipse/paho.mqtt.python/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/paho.mqtt.python-${PV}"
LICENSE="EPL-1.0"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
RDEPEND=""
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+DEPEND="
test? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
- dev-python/pytest-runner[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
) "
-S="${WORKDIR}/paho.mqtt.python-${PV}"
+distutils_enable_tests pytest
src_prepare() {
eapply "${FILESDIR}/${P}-strip-test-dependency.patch"
default
}
-
-python_test() {
- esetup.py test
-}
next reply other threads:[~2020-03-25 11:46 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-25 11:46 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-31 17:36 [gentoo-commits] repo/gentoo:master commit in: dev-python/paho-mqtt/ Matt Turner
2024-05-17 9:55 Michał Górny
2024-05-17 9:49 Michał Górny
2024-05-17 8:31 Arthur Zamarin
2024-04-30 5:02 Michał Górny
2024-04-25 19:17 Matt Turner
2024-04-25 18:49 Matt Turner
2024-04-20 10:49 Michał Górny
2024-04-03 8:58 Michał Górny
2024-01-23 5:07 Ionen Wolkens
2023-12-24 23:07 Marek Szuba
2023-11-24 15:39 Michał Górny
2023-07-06 12:16 Michał Górny
2023-07-05 20:52 Sam James
2023-05-31 19:23 Arthur Zamarin
2023-05-31 19:23 Arthur Zamarin
2022-10-29 17:44 Matt Turner
2022-06-05 5:36 Michał Górny
2022-02-23 4:47 Matt Turner
2022-02-23 4:47 Matt Turner
2021-11-21 19:28 Jakov Smolić
2021-10-21 12:30 Michał Górny
2021-03-03 12:54 Michał Górny
2021-03-03 12:37 Agostino Sarubbo
2021-03-02 1:19 Sam James
2021-01-04 0:13 Matt Turner
2020-04-14 8:35 Joonas Niilola
2020-03-18 19:34 Matt Turner
2020-02-01 0:08 Matt Turner
2020-01-16 5:25 Matt Turner
2019-11-01 19:59 Matt Turner
2019-10-09 11:09 Agostino Sarubbo
2019-10-09 11:08 Agostino Sarubbo
2019-05-21 15:20 Stephen Klimaszewski
2018-10-18 11:33 Virgil Dupras
2018-07-02 0:49 Thomas Deutschmann
2018-06-28 19:18 Pacho Ramos
2018-06-28 19:18 Pacho Ramos
2018-06-25 9:53 Jason Zaman
2018-04-13 18:00 Michał Górny
2018-02-10 7:30 Michał Górny
2018-02-07 9:44 Michał Górny
2018-02-07 9:44 Michał Górny
2018-02-07 9:29 Michał Górny
2017-05-15 12:56 Manuel Rüger
2016-12-20 14:38 Tobias Klausmann
2016-05-12 11:57 Sam Jorna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1585136455.4bea3aea63fa191fa77e4ca95de03a7dd4ba1f4e.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox