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
}