1 |
commit: 2c99600d6beda6ed5e287a784d506afbd91e2027 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 4 05:41:12 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 4 06:23:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c99600d |
7 |
|
8 |
dev-python/python-lzo: Port to py39 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/python-lzo/python-lzo-1.12-r1.ebuild | 20 ++++++++------------ |
13 |
1 file changed, 8 insertions(+), 12 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/python-lzo/python-lzo-1.12-r1.ebuild b/dev-python/python-lzo/python-lzo-1.12-r1.ebuild |
16 |
index 4a7a1b29084..8ff0146566c 100644 |
17 |
--- a/dev-python/python-lzo/python-lzo-1.12-r1.ebuild |
18 |
+++ b/dev-python/python-lzo/python-lzo-1.12-r1.ebuild |
19 |
@@ -3,7 +3,8 @@ |
20 |
|
21 |
EAPI=7 |
22 |
|
23 |
-PYTHON_COMPAT=( python3_{6,7} ) |
24 |
+DISTUTILS_USE_SETUPTOOLS=no |
25 |
+PYTHON_COMPAT=( python3_{6..9} ) |
26 |
|
27 |
inherit distutils-r1 prefix |
28 |
|
29 |
@@ -14,23 +15,18 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
30 |
LICENSE="GPL-2" |
31 |
SLOT="0" |
32 |
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" |
33 |
-IUSE="test" |
34 |
-RESTRICT="!test? ( test )" |
35 |
|
36 |
-RDEPEND=" |
37 |
- dev-libs/lzo:2" |
38 |
+RDEPEND="dev-libs/lzo:2" |
39 |
+DEPEND="${RDEPEND}" |
40 |
|
41 |
-DEPEND=" |
42 |
- ${RDEPEND} |
43 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
44 |
- test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
45 |
+distutils_enable_tests pytest |
46 |
|
47 |
src_prepare() { |
48 |
- distutils-r1_src_prepare |
49 |
+ sed -i -e 's:test_version:_&:' tests/test.py || die |
50 |
hprefixify setup.py |
51 |
+ distutils-r1_src_prepare |
52 |
} |
53 |
|
54 |
python_test() { |
55 |
- distutils_install_for_testing |
56 |
- PYTHONPATH="${TEST_DIR}"/lib nosetests -v || die "tests failed" |
57 |
+ pytest -vv tests/test.py || die "Tests failed with ${EPYTHON}" |
58 |
} |