1 |
commit: 803a1db739bc2844b1328af699efbb04067ea6d5 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 15 13:26:51 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 15 13:48:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=803a1db7 |
7 |
|
8 |
dev-python/flake8-polyfill: enable py3.10, ebuild cleanup |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
.../flake8-polyfill/flake8-polyfill-1.0.2.ebuild | 24 +++++++++------------- |
13 |
1 file changed, 10 insertions(+), 14 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/flake8-polyfill/flake8-polyfill-1.0.2.ebuild b/dev-python/flake8-polyfill/flake8-polyfill-1.0.2.ebuild |
16 |
index da199eabc872..e9866fde8326 100644 |
17 |
--- a/dev-python/flake8-polyfill/flake8-polyfill-1.0.2.ebuild |
18 |
+++ b/dev-python/flake8-polyfill/flake8-polyfill-1.0.2.ebuild |
19 |
@@ -1,35 +1,31 @@ |
20 |
-# Copyright 1999-2021 Gentoo Authors |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=7 |
25 |
+EAPI=8 |
26 |
|
27 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
28 |
+PYTHON_COMPAT=( python3_{8..10} ) |
29 |
inherit distutils-r1 |
30 |
|
31 |
DESCRIPTION="Polyfill package for Flake8 plugins" |
32 |
HOMEPAGE="https://gitlab.com/pycqa/flake8-polyfill" |
33 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
34 |
-EGIT_REPO_URI="https://gitlab.com/pycqa/flake8-polyfill.git" |
35 |
|
36 |
LICENSE="MIT" |
37 |
SLOT="0" |
38 |
KEYWORDS="~amd64 ~x86" |
39 |
-IUSE="test" |
40 |
-RESTRICT="!test? ( test )" |
41 |
|
42 |
RDEPEND="dev-python/flake8[${PYTHON_USEDEP}]" |
43 |
-DEPEND=" |
44 |
- test? ( |
45 |
- dev-python/mock[${PYTHON_USEDEP}] |
46 |
- dev-python/pycodestyle[${PYTHON_USEDEP}] |
47 |
- )" |
48 |
+BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )" |
49 |
|
50 |
distutils_enable_tests pytest |
51 |
|
52 |
-python_prepare_all() { |
53 |
+EPYTEST_IGNORE=( |
54 |
# Get rid of the test that seems to test only the migration from |
55 |
# pep8 to pycodestyle (bug 598918). |
56 |
- rm "tests/test_stdin.py" || die |
57 |
+ tests/test_stdin.py |
58 |
+) |
59 |
+ |
60 |
+src_prepare() { |
61 |
sed -e 's|\[pytest\]|\[tool:pytest\]|' -i setup.cfg || die |
62 |
- distutils-r1_python_prepare_all |
63 |
+ distutils-r1_src_prepare |
64 |
} |