1 |
commit: 35135c2e2ce994f2659e0578abcca824e2242a3c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 10 16:40:42 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 10 16:48:58 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35135c2e |
7 |
|
8 |
dev-python/fields: EAPI 8, PEP517 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/fields/fields-5.0.0-r3.ebuild | 42 ++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 42 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/fields/fields-5.0.0-r3.ebuild b/dev-python/fields/fields-5.0.0-r3.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..d3bf8505d526 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/fields/fields-5.0.0-r3.ebuild |
20 |
@@ -0,0 +1,42 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Container class boilerplate killer" |
32 |
+HOMEPAGE=" |
33 |
+ https://github.com/ionelmc/python-fields/ |
34 |
+ https://pypi.org/project/fields/ |
35 |
+" |
36 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="BSD-2" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
41 |
+ |
42 |
+BDEPEND=" |
43 |
+ test? ( |
44 |
+ dev-python/attrs[${PYTHON_USEDEP}] |
45 |
+ dev-python/characteristic[${PYTHON_USEDEP}] |
46 |
+ ) |
47 |
+" |
48 |
+ |
49 |
+distutils_enable_tests pytest |
50 |
+ |
51 |
+python_prepare_all() { |
52 |
+ sed -r \ |
53 |
+ -e "/--benchmark-disable/d" \ |
54 |
+ -e 's|\[pytest\]|\[tool:pytest\]|' \ |
55 |
+ -i setup.cfg || die |
56 |
+ |
57 |
+ distutils-r1_python_prepare_all |
58 |
+} |
59 |
+ |
60 |
+python_test() { |
61 |
+ epytest --ignore tests/test_perf.py tests |
62 |
+} |