commit: 4abcd443a1c52ef3232fa7068e335a3524a2c294
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Fri Mar 13 20:46:18 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Fri Mar 13 20:46:18 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4abcd443
dev-python/aiofiles: enable tests
had to switch to the github tarball because the pypi tarball
does not contain tests. Also pytest-asyncio sadly does not
support py3_8 or pypy3 yet, so that had to go.
If it is desirable to add py3_8 or pypy3 anyway.
A workaround could be to RESTRICT="python_targets_python3_8? ( test )"
and REQUIRED_USE="python_targets_python3_8? ( !test )"
Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
dev-python/aiofiles/Manifest | 2 +-
dev-python/aiofiles/aiofiles-0.4.0.ebuild | 8 ++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/dev-python/aiofiles/Manifest b/dev-python/aiofiles/Manifest
index c9d4b4f..ca27e48 100644
--- a/dev-python/aiofiles/Manifest
+++ b/dev-python/aiofiles/Manifest
@@ -1 +1 @@
-DIST aiofiles-0.4.0.tar.gz 9270 BLAKE2B
05eb8bc76cfdb4be4c82cacf15ab5e0a59d652d5db641cbad9fd20a431e17f16606cae413092d20453710435b3de829b2cb61c983efb1ce4b70a863958fc9fe3
SHA512
ad41aed2151fc2adf01ddbaec7fcc772c2ee8e33609dff881d00e255412c2142b0594e70eca32e73accd120d13e1f112b20a627fae2fa343b96d18f59371c9da
+DIST aiofiles-0.4.0.tar.gz 12942 BLAKE2B
c8e6570f0759cf97b642a8feec4a572dc40a86906c9f7e749fa5b20346b61000d62d72c1ef8316e03adc1352021ec622fe9c670e916fdf84f41845ce37f1de51
SHA512
9e1f8b2beb3ca2996b35de9281ceafbb8ccdeab4b213f9605cb5908558c5f495d1cf4481ac229ca44bb236ad99826d89d137ec6ac4386c23b6e056b657a6bf4a
diff --git a/dev-python/aiofiles/aiofiles-0.4.0.ebuild
b/dev-python/aiofiles/aiofiles-0.4.0.ebuild
index 12e33e0..e61975b 100644
--- a/dev-python/aiofiles/aiofiles-0.4.0.ebuild
+++ b/dev-python/aiofiles/aiofiles-0.4.0.ebuild
@@ -3,14 +3,18 @@
EAPI=7
-PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
+PYTHON_COMPAT=( python3_{6,7} )
inherit distutils-r1
DESCRIPTION="File support for asyncio"
HOMEPAGE="https://github.com/Tinche/aiofiles"
-SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="https://github.com/Tinche/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+
+DEPEND="test? ( dev-python/pytest-asyncio[${PYTHON_USEDEP}] )"
+
+distutils_enable_tests pytest