1 |
commit: cc2c2cd548cc6d45ea60e3ecd6710ff6378dcc2f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 23 19:55:58 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 23 20:19:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc2c2cd5 |
7 |
|
8 |
dev-python/pyparsing: Bump to 3.0.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyparsing/Manifest | 1 + |
13 |
dev-python/pyparsing/pyparsing-3.0.0.ebuild | 44 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pyparsing/Manifest b/dev-python/pyparsing/Manifest |
17 |
index 736d09882be..e8f441a8ad9 100644 |
18 |
--- a/dev-python/pyparsing/Manifest |
19 |
+++ b/dev-python/pyparsing/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pyparsing_2.4.7.tar.gz 648158 BLAKE2B 24525b4ee7876e245b9eb270f0e3e22fe2d8b398f9777ad3b3657b8a1227dcbd25983aa64a3f3018debdbffc1a042c732e6b3a09800e081c7acac7b97da15317 SHA512 c7a546729f86a2b5176e2482b566b9fd715b03e495aaef4d720b21307bb03f385dbc849247f8d266cb3d92be0a83c34ce4995b655ce85318355d5a0d42d6991e |
22 |
+DIST pyparsing_3.0.0.tar.gz 935578 BLAKE2B 2932fb8da83f4f7b0ba98057002c870ab54f50bb93cea3f1da1cb9bba87fd8a6066c7bbee700667663285226ad6bf637f340160ccf7b7b06616e1140a7b93ce3 SHA512 1400370a6e7518940b7965645578028588af5a4ec1c379d57c924f036c86e342a9a60f1dd5c700ce8a4dbcd16afb55a2a4c371548c8bac6c53338b5cc349f4d8 |
23 |
|
24 |
diff --git a/dev-python/pyparsing/pyparsing-3.0.0.ebuild b/dev-python/pyparsing/pyparsing-3.0.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..5e4cb765d6a |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pyparsing/pyparsing-3.0.0.ebuild |
29 |
@@ -0,0 +1,44 @@ |
30 |
+# Copyright 2004-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+MY_P=${P/-/_} |
40 |
+DESCRIPTION="Easy-to-use Python module for text parsing" |
41 |
+HOMEPAGE="https://github.com/pyparsing/pyparsing https://pypi.org/project/pyparsing/" |
42 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_P}.tar.gz" |
43 |
+S=${WORKDIR}/${PN}-${MY_P} |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
48 |
+IUSE="examples" |
49 |
+ |
50 |
+distutils_enable_tests pytest |
51 |
+ |
52 |
+EPYTEST_IGNORE=( |
53 |
+ # railroad-diagrams not packaged (and not suitable for packaging yet) |
54 |
+ tests/test_diagram.py |
55 |
+) |
56 |
+ |
57 |
+EPYTEST_DESELECT=( |
58 |
+ # also railroad-diagrams |
59 |
+ tests/test_unit.py::Test02_WithoutPackrat::testEmptyExpressionsAreHandledProperly |
60 |
+ tests/test_unit.py::Test04_WithPackrat::testEmptyExpressionsAreHandledProperly |
61 |
+ tests/test_unit.py::Test06_WithBoundedPackrat::testEmptyExpressionsAreHandledProperly |
62 |
+ tests/test_unit.py::Test08_WithUnboundedPackrat::testEmptyExpressionsAreHandledProperly |
63 |
+ tests/test_unit.py::Test09_WithLeftRecursionParsing::testEmptyExpressionsAreHandledProperly |
64 |
+ tests/test_unit.py::Test10_WithLeftRecursionParsingBoundedMemo::testEmptyExpressionsAreHandledProperly |
65 |
+) |
66 |
+ |
67 |
+python_install_all() { |
68 |
+ if use examples; then |
69 |
+ docompress -x /usr/share/doc/${PF}/examples |
70 |
+ dodoc -r examples |
71 |
+ fi |
72 |
+ distutils-r1_python_install_all |
73 |
+} |