From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-twisted/
Date: Fri, 26 Aug 2022 07:22:40 +0000 (UTC) [thread overview]
Message-ID: <1661498329.16dae49cee3ea8253f25830b3e0c1c74e68df4c0.sam@gentoo> (raw)
commit: 16dae49cee3ea8253f25830b3e0c1c74e68df4c0
Author: Matt Jolly <Matt.Jolly <AT> footclan <DOT> ninja>
AuthorDate: Thu Aug 25 08:09:43 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug 26 07:18:49 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16dae49c
dev-python/pytest-twisted: new package, add 1.13.4
Signed-off-by: Matt Jolly <Matt.Jolly <AT> footclan.ninja>
Closes: https://github.com/gentoo/gentoo/pull/26903
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-python/pytest-twisted/Manifest | 1 +
dev-python/pytest-twisted/metadata.xml | 15 +++++++
.../pytest-twisted/pytest-twisted-1.13.4.ebuild | 47 ++++++++++++++++++++++
3 files changed, 63 insertions(+)
diff --git a/dev-python/pytest-twisted/Manifest b/dev-python/pytest-twisted/Manifest
new file mode 100644
index 000000000000..dc6c53d82ef4
--- /dev/null
+++ b/dev-python/pytest-twisted/Manifest
@@ -0,0 +1 @@
+DIST pytest-twisted-1.13.4.tar.gz 15687 BLAKE2B 8e1024da02a5a1c9c33df96c18a355b9be5757446d9f5495ba1f043c15a2e44efd6e59693986a0684d77b8518393ce9f382d62e3d1e5b903876e8cff34efb427 SHA512 99899ad73f87582023a0e639986a287b4571638be4f1ae134078a15a4d4bebd24153f813c993382603edc14306c12931e2daf517d7998e48d3d19b8469c0b7aa
diff --git a/dev-python/pytest-twisted/metadata.xml b/dev-python/pytest-twisted/metadata.xml
new file mode 100644
index 000000000000..2d0071fe9c21
--- /dev/null
+++ b/dev-python/pytest-twisted/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="github">pytest-dev/pytest-twisted</remote-id>
+ </upstream>
+ <maintainer type="person">
+ <email>Matt.Jolly@footclan.ninja</email>
+ <name>Matt Jolly</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/pytest-twisted/pytest-twisted-1.13.4.ebuild b/dev-python/pytest-twisted/pytest-twisted-1.13.4.ebuild
new file mode 100644
index 000000000000..7f0af08f78f5
--- /dev/null
+++ b/dev-python/pytest-twisted/pytest-twisted-1.13.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+DESCRIPTION="pytest-twisted is a plugin for pytest that allows you to test code which uses the twisted framework"
+HOMEPAGE="https://github.com/pytest-dev/pytest-twisted"
+SRC_URI="https://github.com/pytest-dev/pytest-twisted/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/decorator[${PYTHON_USEDEP}]
+ dev-python/greenlet[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.3[${PYTHON_USEDEP}]
+ dev-python/twisted[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # https://github.com/pytest-dev/pytest/issues/9280
+ sed -e '/^pytest_plugins =/d' -i testing/conftest.py || die
+
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ epytest -p pytester
+}
+
+src_install() {
+ # If we let pytest-twisted autoload everywhere, it breaks tests in
+ # packages that don't expect it. Apply a similar hack as for bug
+ # #661218. We can't do this in src_prepare() because the tests need
+ # autoloading enabled.
+ sed -e 's/"pytest11": \[[^]]*\]//' -i setup.py || die
+
+ distutils-r1_src_install
+}
next reply other threads:[~2022-08-26 7:22 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-26 7:22 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-26 7:22 [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-twisted/ Sam James
2022-08-26 7:22 Sam James
2022-08-26 9:58 Arthur Zamarin
2022-08-26 11:38 Sam James
2022-08-26 11:42 Sam James
2022-08-26 15:42 Arthur Zamarin
2022-08-26 15:42 Arthur Zamarin
2022-09-16 2:52 Yixun Lan
2022-10-10 23:40 Sam James
2022-10-14 1:28 Sam James
2022-10-14 5:49 Joonas Niilola
2022-10-18 7:26 Michał Górny
2022-11-19 16:40 Sam James
2022-11-19 16:40 Sam James
2022-11-19 16:54 Michał Górny
2024-03-19 7:20 Michał Górny
2024-04-06 12:32 Arthur Zamarin
2024-04-06 12:32 Arthur Zamarin
2024-04-06 12:41 Michał Górny
2024-04-06 12:41 Michał Górny
2024-06-03 2:38 Sam James
2024-06-05 15:42 Michał Górny
2024-07-09 15:30 Michał Górny
2024-07-11 3:25 Michał Górny
2024-07-11 11:59 Michał Górny
2024-07-27 8:53 Arthur Zamarin
2024-07-27 10:06 Michał Górny
2024-09-10 16:28 Michał Górny
2024-09-28 12:32 Arthur Zamarin
2024-09-28 12:59 Michał Górny
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=1661498329.16dae49cee3ea8253f25830b3e0c1c74e68df4c0.sam@gentoo \
--to=sam@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