dev-python/twine: Port to py39
authorMichał Górny <mgorny@gentoo.org>
Tue, 26 May 2020 15:31:55 +0000 (17:31 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 28 May 2020 07:59:58 +0000 (09:59 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/twine/twine-1.15.0.ebuild
dev-python/twine/twine-3.1.1.ebuild

index c306897ff28fd77c7d67f95bdb473cc04409a67c..685e99a4a62de62b9722024e868e89e7e919d8dd 100644 (file)
@@ -3,7 +3,8 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python{2_7,3_{6,7,8,9}} pypy3 )
 
 inherit distutils-r1
 
@@ -15,15 +16,15 @@ LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~arm64 ~hppa ~sparc x86"
 IUSE="test"
+RESTRICT="!test? ( test )"
 
-CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-DEPEND="${CDEPEND}
+DEPEND="
        test? (
                dev-python/pytest[${PYTHON_USEDEP}]
                dev-python/pretend[${PYTHON_USEDEP}]
        )
 "
-RDEPEND="${CDEPEND}
+RDEPEND="
        >=dev-python/tqdm-4.14[${PYTHON_USEDEP}]
        >=dev-python/pkginfo-1.4.2[${PYTHON_USEDEP}]
        >=dev-python/readme_renderer-21.0[${PYTHON_USEDEP}]
@@ -32,8 +33,6 @@ RDEPEND="${CDEPEND}
        $(python_gen_cond_dep 'dev-python/pyblake2[${PYTHON_USEDEP}]' python{2_7,3_5})
 "
 
-RESTRICT="!test? ( test )"
-
 PATCHES=(
        "${FILESDIR}/twine-1.15.0-tests.patch"
 )
index 6b1e17bcd56af789a472f4ee4f901f3f0d173899..7217eb645273dd7e6eb96f13cc3c186092e112ef 100644 (file)
@@ -3,7 +3,8 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
 
 inherit distutils-r1
 
@@ -15,9 +16,9 @@ LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~arm64 x86"
 IUSE="test"
+RESTRICT="!test? ( test )"
 
-CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-BDEPEND="${CDEPEND}
+BDEPEND="
        test? (
                dev-python/jaraco-envs[${PYTHON_USEDEP}]
                dev-python/jaraco-functools[${PYTHON_USEDEP}]
@@ -28,7 +29,7 @@ BDEPEND="${CDEPEND}
                dev-python/pytest[${PYTHON_USEDEP}]
        )
 "
-RDEPEND="${CDEPEND}
+RDEPEND="
        >=dev-python/tqdm-4.14[${PYTHON_USEDEP}]
        >=dev-python/pkginfo-1.4.2[${PYTHON_USEDEP}]
        >=dev-python/readme_renderer-21.0[${PYTHON_USEDEP}]
@@ -38,8 +39,6 @@ RDEPEND="${CDEPEND}
        >=dev-python/keyring-15.1[${PYTHON_USEDEP}]
 "
 
-RESTRICT="!test? ( test )"
-
 PATCHES=(
        "${FILESDIR}/twine-3.0.0-tests.patch"
 )