1 |
commit: e35bf4281b07e1e7b152bedb8e41fb7b3ccf6098 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Sun Jun 5 08:33:33 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Sun Jun 5 08:33:33 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e35bf428 |
7 |
|
8 |
dev-python/compreffor: fix tests |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
dev-python/compreffor/compreffor-0.5.1_p1.ebuild | 24 ++++++++---------------- |
13 |
1 file changed, 8 insertions(+), 16 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/compreffor/compreffor-0.5.1_p1.ebuild b/dev-python/compreffor/compreffor-0.5.1_p1.ebuild |
16 |
index f6fb09197..da496b718 100644 |
17 |
--- a/dev-python/compreffor/compreffor-0.5.1_p1.ebuild |
18 |
+++ b/dev-python/compreffor/compreffor-0.5.1_p1.ebuild |
19 |
@@ -4,29 +4,26 @@ |
20 |
EAPI=8 |
21 |
|
22 |
DISTUTILS_USE_PEP517=setuptools |
23 |
-MYPV="${PV/_p/.post}" |
24 |
-MYP="${PN}-${MYPV}" |
25 |
PYTHON_COMPAT=( python3_{8..10} ) |
26 |
- |
27 |
inherit distutils-r1 |
28 |
|
29 |
+MY_P="${PN}-${PV/_p/.post}" |
30 |
DESCRIPTION="A CFF table subroutinizer for FontTools" |
31 |
HOMEPAGE=" |
32 |
https://github.com/googlefonts/compreffor |
33 |
https://pypi.org/project/compreffor/ |
34 |
" |
35 |
-SRC_URI="mirror://pypi/${MYP:0:1}/${PN}/${MYP}.tar.gz" |
36 |
-S="${WORKDIR}/${MYP}" |
37 |
+SRC_URI="mirror://pypi/${MY_P:0:1}/${PN}/${MY_P}.tar.gz" |
38 |
+S="${WORKDIR}/${MY_P}" |
39 |
+ |
40 |
KEYWORDS="~amd64" |
41 |
LICENSE="Apache-2.0" |
42 |
SLOT="0" |
43 |
|
44 |
-RDEPEND=" |
45 |
- >=dev-python/fonttools-4[${PYTHON_USEDEP}] |
46 |
-" |
47 |
+RDEPEND=">=dev-python/fonttools-4[${PYTHON_USEDEP}]" |
48 |
+DEPEND=">=dev-python/cython-0.29.24[${PYTHON_USEDEP}]" |
49 |
BDEPEND=" |
50 |
app-arch/unzip |
51 |
- >=dev-python/cython-0.29.24[${PYTHON_USEDEP}] |
52 |
dev-python/setuptools_scm[${PYTHON_USEDEP}] |
53 |
" |
54 |
|
55 |
@@ -34,12 +31,7 @@ PATCHES=( "${FILESDIR}/${P}-remove-unwanted-dependencies.patch" ) |
56 |
|
57 |
distutils_enable_tests pytest |
58 |
|
59 |
-python_compile() { |
60 |
- distutils-r1_python_compile |
61 |
- esetup.py build_ext --inplace |
62 |
-} |
63 |
- |
64 |
python_test() { |
65 |
- cd "${S}/src/python" || die |
66 |
- PYTHONPATH=".:${PYTHONPATH}" epytest compreffor/test |
67 |
+ cd "${T}" || die |
68 |
+ epytest --pyargs compreffor |
69 |
} |