summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-02 01:10:32 +0000
committerSam James <sam@gentoo.org>2021-03-02 01:19:37 +0000
commitad55379c9fa7a04654ed009ad256b0ec942648da (patch)
treeefbf87c53e8cabf2ea71bcdab93d079f8ff5f90e /dev-python/python-backoff
parentdev-python/python-backoff: mark ALLARCHES (diff)
downloadgentoo-ad55379c9fa7a04654ed009ad256b0ec942648da.tar.gz
gentoo-ad55379c9fa7a04654ed009ad256b0ec942648da.tar.bz2
gentoo-ad55379c9fa7a04654ed009ad256b0ec942648da.zip
dev-python/python-backoff: enable tests via github distfile
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/python-backoff')
-rw-r--r--dev-python/python-backoff/Manifest2
-rw-r--r--dev-python/python-backoff/python-backoff-1.10.0.ebuild15
2 files changed, 8 insertions, 9 deletions
diff --git a/dev-python/python-backoff/Manifest b/dev-python/python-backoff/Manifest
index 444d511fa6db..fa8b50b220bb 100644
--- a/dev-python/python-backoff/Manifest
+++ b/dev-python/python-backoff/Manifest
@@ -1,2 +1,2 @@
-DIST backoff-1.10.0.tar.gz 13652 BLAKE2B 15b9381fc83cce4559c3402cb214d8cf41651a1a72f7231a61a576e9a48ca7a4367b7823043c6540bd15d3d2b8c185be3ec3533bbc61d5f2dcebefaab013945b SHA512 87f64612ec1d6f80d2f173846af196bd347f1fcc6c6f93275dd1cb3b5486789f3c6e98e1080ed6f3b13e28c1b056fb1baa6da73639d4b9b460fedf68bb012422
DIST backoff-1.6.0.tar.gz 10474 BLAKE2B 64e4b4a9cb8a1ac5a888aae78f50111400bb57f46bb0c123ecfeb4d660393a9786945d83b838599479e70244f2aa9b667428be2f0d57958b084ed8a045d0ea7d SHA512 a9bb5477d8a84397df61bd3904ad0914c5b214e46da9b55a2286ca8a81508184483e99a6703551dfcd1147e3e656396171ab7133f9e0cf2bff1bc17e6da49444
+DIST python-backoff-1.10.0.gh.tar.gz 15546 BLAKE2B 4e2ff1f63a4659c9dbf3135f32da44d4c127909178ffe0fe6935cef43558d61087498d0cd31260396da0ccdff360ee1025db2c0347fb865468abffed2f4adf49 SHA512 9a874a12462c56e8559d2d3d85508f546c397c9d419d1d9ab81d9a046d27b338068f6baeb768fa78b43eccd299de71ec7d1471c4fb153f8c02e6f7292f56b285
diff --git a/dev-python/python-backoff/python-backoff-1.10.0.ebuild b/dev-python/python-backoff/python-backoff-1.10.0.ebuild
index 48d4a2f8dcef..24b5e8e5e654 100644
--- a/dev-python/python-backoff/python-backoff-1.10.0.ebuild
+++ b/dev-python/python-backoff/python-backoff-1.10.0.ebuild
@@ -4,23 +4,22 @@
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
-DISTUTILS_USE_SETUPTOOLS=no
-
+DISTUTILS_USE_SETUPTOOLS=pyproject.toml
inherit distutils-r1
MY_PN=${PN#python-}
MY_P=${MY_PN}-${PV}
DESCRIPTION="Function decoration for backoff and retry"
HOMEPAGE="https://github.com/litl/backoff https://pypi.org/project/backoff/"
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+SRC_URI="https://github.com/litl/backoff/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-RESTRICT="test"
-S=${WORKDIR}/${MY_P}
DOCS=( README.rst )
-python_test() {
- emake test
-}
+BDEPEND="test? ( dev-python/pytest-asyncio[${PYTHON_USEDEP}] )"
+
+distutils_enable_tests pytest