1 |
commit: b3e5d7fbdf5e5cba3463154954dd78379f31c614 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 2 09:03:02 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 2 09:03:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3e5d7fb |
7 |
|
8 |
dev-python/pep8: Recombine impls into a single ebuild |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pep8/pep8-1.7.1-r1.ebuild | 28 ---------------------------- |
13 |
dev-python/pep8/pep8-1.7.1.ebuild | 27 +++++++++------------------ |
14 |
2 files changed, 9 insertions(+), 46 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/pep8/pep8-1.7.1-r1.ebuild b/dev-python/pep8/pep8-1.7.1-r1.ebuild |
17 |
deleted file mode 100644 |
18 |
index 66396c091a9..00000000000 |
19 |
--- a/dev-python/pep8/pep8-1.7.1-r1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,28 +0,0 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
28 |
-PYTHON_COMPAT=( python3_{7,8} pypy3 ) |
29 |
- |
30 |
-inherit distutils-r1 |
31 |
- |
32 |
-DESCRIPTION="Python style guide checker" |
33 |
-HOMEPAGE="https://github.com/PyCQA/pep8 https://pypi.org/project/pep8/" |
34 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
- |
36 |
-LICENSE="MIT" |
37 |
-SLOT="0" |
38 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
39 |
- |
40 |
-distutils_enable_sphinx docs dev-python/sphinx_rtd_theme |
41 |
-distutils_enable_tests pytest |
42 |
- |
43 |
-python_prepare_all() { |
44 |
- # AssertionError: 7 is not false : 7 failure(s) |
45 |
- sed -i -e 's:test_checkers_testsuite:_&:' \ |
46 |
- testsuite/test_all.py || die |
47 |
- |
48 |
- distutils-r1_python_prepare_all |
49 |
-} |
50 |
|
51 |
diff --git a/dev-python/pep8/pep8-1.7.1.ebuild b/dev-python/pep8/pep8-1.7.1.ebuild |
52 |
index c7f91c06a17..b8c60182e65 100644 |
53 |
--- a/dev-python/pep8/pep8-1.7.1.ebuild |
54 |
+++ b/dev-python/pep8/pep8-1.7.1.ebuild |
55 |
@@ -1,10 +1,10 @@ |
56 |
# Copyright 1999-2020 Gentoo Authors |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
|
59 |
-EAPI=6 |
60 |
+EAPI=7 |
61 |
|
62 |
DISTUTILS_USE_SETUPTOOLS=rdepend |
63 |
-PYTHON_COMPAT=( python3_{6,7} pypy3 ) |
64 |
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) |
65 |
|
66 |
inherit distutils-r1 |
67 |
|
68 |
@@ -15,23 +15,14 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
69 |
LICENSE="MIT" |
70 |
SLOT="0" |
71 |
KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
72 |
-IUSE="doc" |
73 |
|
74 |
-DEPEND="${RDEPEND} |
75 |
- doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
76 |
+distutils_enable_sphinx docs dev-python/sphinx_rtd_theme |
77 |
+distutils_enable_tests pytest |
78 |
|
79 |
-python_compile_all() { |
80 |
- use doc && emake -C docs html |
81 |
-} |
82 |
- |
83 |
-python_test() { |
84 |
- PYTHONPATH="${S}" "${PYTHON}" pep8.py -v --statistics pep8.py || die |
85 |
- PYTHONPATH="${S}" "${PYTHON}" pep8.py -v --testsuite=testsuite || die |
86 |
- PYTHONPATH="${S}" "${PYTHON}" pep8.py --doctest -v || die |
87 |
- esetup.py test |
88 |
-} |
89 |
+python_prepare_all() { |
90 |
+ # AssertionError: 7 is not false : 7 failure(s) |
91 |
+ sed -i -e 's:test_checkers_testsuite:_&:' \ |
92 |
+ testsuite/test_all.py || die |
93 |
|
94 |
-python_install_all() { |
95 |
- use doc && local HTML_DOCS=( docs/_build/html/. ) |
96 |
- distutils-r1_python_install_all |
97 |
+ distutils-r1_python_prepare_all |
98 |
} |