Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyparsing/
Date: Fri, 21 Jan 2022 08:54:42
Message-Id: 1642755253.8cae35e56a79be95b27943490329a1ef9963ccc3.arthurzam@gentoo
1 commit: 8cae35e56a79be95b27943490329a1ef9963ccc3
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 21 08:34:14 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 21 08:54:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cae35e5
7
8 dev-python/pyparsing: add 3.0.7
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/pyparsing/Manifest | 1 +
13 dev-python/pyparsing/pyparsing-3.0.7.ebuild | 44 +++++++++++++++++++++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/dev-python/pyparsing/Manifest b/dev-python/pyparsing/Manifest
17 index a319dc21b02f..9cee19b2620d 100644
18 --- a/dev-python/pyparsing/Manifest
19 +++ b/dev-python/pyparsing/Manifest
20 @@ -1,2 +1,3 @@
21 DIST pyparsing_2.4.7.tar.gz 648158 BLAKE2B 24525b4ee7876e245b9eb270f0e3e22fe2d8b398f9777ad3b3657b8a1227dcbd25983aa64a3f3018debdbffc1a042c732e6b3a09800e081c7acac7b97da15317 SHA512 c7a546729f86a2b5176e2482b566b9fd715b03e495aaef4d720b21307bb03f385dbc849247f8d266cb3d92be0a83c34ce4995b655ce85318355d5a0d42d6991e
22 DIST pyparsing_3.0.6.tar.gz 942509 BLAKE2B 1ece2e83dd4193c8364bf690afc54090b46658fced62fc852b0098208d2ae4b18e96f050e63d8751c4b5cf95aa178a11dd1c37fc9d63ae1551639b5c91fe81d8 SHA512 5e94f1dcb4560a0f8e5b9a979b691b6362939648d03e9ea03f74e3aeeddafc09029c8e82c42a517aebe4a0483fd06cac03ae45030e074a40576f9570ed1eb5cc
23 +DIST pyparsing_3.0.7.tar.gz 944917 BLAKE2B bcbcd18817c69a69ac6863affb1309a5ca63fe46a45dc056d8407d79a77d1f19e4d1abce08f5d6f1aff7cbdaefb5b699787abcddfcbf64e5514e79e2b0b86ce6 SHA512 d5d5547188ebda6fb7f45928174314d3d4d10302acc8fb476cd6590fb4a75167dee5f6397ab0b63efd4cb55c0765708ffd432bcfecf28d8f808815e62615f447
24
25 diff --git a/dev-python/pyparsing/pyparsing-3.0.7.ebuild b/dev-python/pyparsing/pyparsing-3.0.7.ebuild
26 new file mode 100644
27 index 000000000000..2130df7b4182
28 --- /dev/null
29 +++ b/dev-python/pyparsing/pyparsing-3.0.7.ebuild
30 @@ -0,0 +1,44 @@
31 +# Copyright 2004-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
38 +inherit distutils-r1
39 +
40 +MY_P=${P/-/_}
41 +DESCRIPTION="Easy-to-use Python module for text parsing"
42 +HOMEPAGE="https://github.com/pyparsing/pyparsing https://pypi.org/project/pyparsing/"
43 +SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_P}.tar.gz"
44 +S="${WORKDIR}/${PN}-${MY_P}"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +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"
49 +IUSE="examples"
50 +
51 +distutils_enable_tests pytest
52 +
53 +EPYTEST_IGNORE=(
54 + # railroad-diagrams not packaged (and not suitable for packaging yet)
55 + tests/test_diagram.py
56 +)
57 +
58 +EPYTEST_DESELECT=(
59 + # also railroad-diagrams
60 + tests/test_unit.py::Test02_WithoutPackrat::testEmptyExpressionsAreHandledProperly
61 + tests/test_unit.py::Test04_WithPackrat::testEmptyExpressionsAreHandledProperly
62 + tests/test_unit.py::Test06_WithBoundedPackrat::testEmptyExpressionsAreHandledProperly
63 + tests/test_unit.py::Test08_WithUnboundedPackrat::testEmptyExpressionsAreHandledProperly
64 + tests/test_unit.py::Test09_WithLeftRecursionParsing::testEmptyExpressionsAreHandledProperly
65 + tests/test_unit.py::Test10_WithLeftRecursionParsingBoundedMemo::testEmptyExpressionsAreHandledProperly
66 +)
67 +
68 +python_install_all() {
69 + if use examples; then
70 + docompress -x /usr/share/doc/${PF}/examples
71 + dodoc -r examples
72 + fi
73 + distutils-r1_python_install_all
74 +}