summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-08-02 18:58:55 +0000
committerSam James <sam@gentoo.org>2020-08-02 18:58:56 +0000
commitfe42987634ae134b618daeb7e63d64c3dc0af4a1 (patch)
treef85569a9391d51b3e3ce23b06829b08af2b1e8b0 /dev-python/enzyme
parentdev-python/guessit: add Python 3.9 (diff)
downloadgentoo-fe42987634ae134b618daeb7e63d64c3dc0af4a1.tar.gz
gentoo-fe42987634ae134b618daeb7e63d64c3dc0af4a1.tar.bz2
gentoo-fe42987634ae134b618daeb7e63d64c3dc0af4a1.zip
dev-python/enzyme: add Python 3.9
Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/enzyme')
-rw-r--r--dev-python/enzyme/enzyme-0.4.1-r2.ebuild13
-rw-r--r--dev-python/enzyme/enzyme-9999.ebuild14
2 files changed, 10 insertions, 17 deletions
diff --git a/dev-python/enzyme/enzyme-0.4.1-r2.ebuild b/dev-python/enzyme/enzyme-0.4.1-r2.ebuild
index c4c197a51f0b..21430148dd1c 100644
--- a/dev-python/enzyme/enzyme-0.4.1-r2.ebuild
+++ b/dev-python/enzyme/enzyme-0.4.1-r2.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_COMPAT=( python3_{6,7,8,9} )
PYTHON_REQ_USE='xml(+)'
inherit distutils-r1
@@ -21,8 +21,7 @@ KEYWORDS="amd64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
-RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}
+BDEPEND="
test? (
app-arch/unzip
dev-python/pyyaml[${PYTHON_USEDEP}]
@@ -30,6 +29,8 @@ DEPEND="${RDEPEND}
)
"
+distutils_enable_tests setup.py
+
python_prepare_all() {
if use test; then
mkdir enzyme/tests/test_{mkv,parsers} || die
@@ -39,7 +40,3 @@ python_prepare_all() {
distutils-r1_python_prepare_all
}
-
-python_test() {
- esetup.py test
-}
diff --git a/dev-python/enzyme/enzyme-9999.ebuild b/dev-python/enzyme/enzyme-9999.ebuild
index 303680658ee3..40184beaebb1 100644
--- a/dev-python/enzyme/enzyme-9999.ebuild
+++ b/dev-python/enzyme/enzyme-9999.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-PYTHON_COMPAT=( python3_6 )
+PYTHON_COMPAT=( python3_{6,7,8,9} )
PYTHON_REQ_USE='xml(+)'
inherit distutils-r1 git-r3
@@ -15,12 +15,10 @@ SRC_URI="test? ( mirror://sourceforge/matroska/test_files/matroska_test_w1_1.zip
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS=""
IUSE="test"
RESTRICT="!test? ( test )"
-RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-DEPEND="${RDEPEND}
+BDEPEND="
test? (
app-arch/unzip
dev-python/pyyaml[${PYTHON_USEDEP}]
@@ -28,6 +26,8 @@ DEPEND="${RDEPEND}
)
"
+distutils_enable_tests setup.py
+
src_unpack() {
default_src_unpack
git-r3_src_unpack
@@ -42,7 +42,3 @@ python_prepare_all() {
distutils-r1_python_prepare_all
}
-
-python_test() {
- esetup.py test
-}