From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/
Date: Sun, 29 Mar 2020 13:21:16 +0000 (UTC) [thread overview]
Message-ID: <1585484729.5809afe66f9d0a59bcb35f6f894e3874b62bf78c.andrewammerlaan@gentoo> (raw)
Message-ID: <20200329132116.LgrKkohwVDcVPARipOix4DMsHo5qLXpJPrdLVIxD2mk@z> (raw)
commit: 5809afe66f9d0a59bcb35f6f894e3874b62bf78c
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Sun Mar 29 12:25:29 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sun Mar 29 12:25:29 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5809afe6
dev-python/trio-asyncio: do not depend on pytest-runner
it is deprecated
also tired to fix tests
should probably depend on pytest-marks
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
index eac1549..ccf267c 100644
--- a/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
+++ b/dev-python/trio-asyncio/trio-asyncio-0.11.0.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_6 )
+PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
@@ -18,24 +18,31 @@ LICENSE=" || ( Apache-2.0 MIT )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+# ImportError: cannot import name 'MarkInfo'
+# might be an issue in pytest-marks
+RESTRICT="test"
+
RDEPEND="
>=dev-python/async_generator-1.6[${PYTHON_USEDEP}]
dev-python/outcome[${PYTHON_USEDEP}]
>=dev-python/trio-0.12.0[${PYTHON_USEDEP}]
$(python_gen_cond_dep '>=dev-python/contextvars-2.1[${PYTHON_USEDEP}]' python3_6)
"
-DEPEND="
- ${RDEPEND}
- dev-python/pytest-runner[${PYTHON_USEDEP}]
-"
+
+DEPEND="test? (
+ dev-python/pytest-marks[${PYTHON_USEDEP}]
+)"
distutils_enable_tests pytest
distutils_enable_sphinx docs/source
-src_prepare() {
+python_prepare_all() {
+ # do not depend on deprecated dep
+ sed -i -e '/pytest-runner/d' setup.py || die
+
#remove tests from installed packages
#TODO: remove hardcoded
sed -i 's|packages=find_packages()|packages=["trio_asyncio"]|' setup.py || die
- default
+ distutils-r1_python_prepare_all
}
next reply other threads:[~2020-03-29 13:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-29 13:21 Andrew Ammerlaan [this message]
2020-03-29 13:21 ` [gentoo-commits] repo/proj/guru:dev commit in: dev-python/trio-asyncio/ Andrew Ammerlaan
-- strict thread matches above, loose matches on Subject: below --
2021-06-15 7:11 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-04-19 8:04 Andrew Ammerlaan
2021-04-13 12:27 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-04-13 13:22 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-09-24 12:50 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-09-24 13:01 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-08-29 14:14 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-08-29 14:14 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-06-15 11:34 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-06-15 11:35 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-04-02 10:12 Andrew Ammerlaan
2020-04-02 10:12 Andrew Ammerlaan
2020-04-02 10:12 Andrew Ammerlaan
2020-03-29 13:21 Andrew Ammerlaan
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=1585484729.5809afe66f9d0a59bcb35f6f894e3874b62bf78c.andrewammerlaan@gentoo \
--to=andrewammerlaan@riseup.net \
--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