Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyparsing/
Date: Wed, 11 May 2022 08:05:43
Message-Id: 1652256329.ad3d5c8f1296acbe8111bb320e45a79b7e9499c3.mgorny@gentoo
1 commit: ad3d5c8f1296acbe8111bb320e45a79b7e9499c3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 11 06:24:18 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 11 08:05:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad3d5c8f
7
8 dev-python/pyparsing: Bump to 3.0.9
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.9.ebuild | 46 +++++++++++++++++++++++++++++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/dev-python/pyparsing/Manifest b/dev-python/pyparsing/Manifest
17 index 48526d4e4da8..83bac227ea75 100644
18 --- a/dev-python/pyparsing/Manifest
19 +++ b/dev-python/pyparsing/Manifest
20 @@ -1,2 +1,3 @@
21 DIST pyparsing_3.0.7.tar.gz 944917 BLAKE2B bcbcd18817c69a69ac6863affb1309a5ca63fe46a45dc056d8407d79a77d1f19e4d1abce08f5d6f1aff7cbdaefb5b699787abcddfcbf64e5514e79e2b0b86ce6 SHA512 d5d5547188ebda6fb7f45928174314d3d4d10302acc8fb476cd6590fb4a75167dee5f6397ab0b63efd4cb55c0765708ffd432bcfecf28d8f808815e62615f447
22 DIST pyparsing_3.0.8.tar.gz 948516 BLAKE2B 8df61ce3c5f0b9ef725bf750fa25c26e482a5786b6c3a03befbf7945c76f67981d0f60bfc98badeb353274e5e3c8442e105ae635d0b93681e23090e70716ce0a SHA512 5567824ac6d4c17755c0d47f2994cc2449383d9d3e9dfa374886d92af38651334483034713df420701d1c4560b331f61d763f7f8d1d7a14a7d221c022b9fc8a7
23 +DIST pyparsing_3.0.9.tar.gz 967771 BLAKE2B c13c74661b9e0d53b4886c9949b01951d220991f916362a13ce0c32c0ab05a6b1cab4d5e5a626acb7563c0ec1716348ede205cb67bf22c0710904f07404ad82a SHA512 1158f27e31f8eced540217b7234b09005eac416fad74faf59678fdae93fe2f76e0e3b5f4adfd3ceb42c8aef19150950293e989c9a5189741175073eb7a03cd6d
24
25 diff --git a/dev-python/pyparsing/pyparsing-3.0.9.ebuild b/dev-python/pyparsing/pyparsing-3.0.9.ebuild
26 new file mode 100644
27 index 000000000000..5dd04e79a482
28 --- /dev/null
29 +++ b/dev-python/pyparsing/pyparsing-3.0.9.ebuild
30 @@ -0,0 +1,46 @@
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 +DISTUTILS_USE_PEP517=flit
38 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
39 +
40 +inherit distutils-r1
41 +
42 +MY_P=${P/-/_}
43 +DESCRIPTION="Easy-to-use Python module for text parsing"
44 +HOMEPAGE="https://github.com/pyparsing/pyparsing https://pypi.org/project/pyparsing/"
45 +SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_P}.tar.gz"
46 +S="${WORKDIR}/${PN}-${MY_P}"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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"
51 +IUSE="examples"
52 +
53 +distutils_enable_tests pytest
54 +
55 +EPYTEST_IGNORE=(
56 + # railroad-diagrams not packaged (and not suitable for packaging yet)
57 + tests/test_diagram.py
58 +)
59 +
60 +EPYTEST_DESELECT=(
61 + # also railroad-diagrams
62 + tests/test_unit.py::Test02_WithoutPackrat::testEmptyExpressionsAreHandledProperly
63 + tests/test_unit.py::Test04_WithPackrat::testEmptyExpressionsAreHandledProperly
64 + tests/test_unit.py::Test06_WithBoundedPackrat::testEmptyExpressionsAreHandledProperly
65 + tests/test_unit.py::Test08_WithUnboundedPackrat::testEmptyExpressionsAreHandledProperly
66 + tests/test_unit.py::Test09_WithLeftRecursionParsing::testEmptyExpressionsAreHandledProperly
67 + tests/test_unit.py::Test10_WithLeftRecursionParsingBoundedMemo::testEmptyExpressionsAreHandledProperly
68 +)
69 +
70 +python_install_all() {
71 + if use examples; then
72 + docompress -x /usr/share/doc/${PF}/examples
73 + dodoc -r examples
74 + fi
75 + distutils-r1_python_install_all
76 +}