Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/, dev-python/citeproc-py/files/
Date: Wed, 20 Oct 2021 03:10:52
Message-Id: 1634699295.c5ecf710bcac01705d82d711f7a965f6c53f1135.sam@gentoo
1 commit: c5ecf710bcac01705d82d711f7a965f6c53f1135
2 Author: Alfred Wingate <parona <AT> protonmail <DOT> com>
3 AuthorDate: Mon Sep 13 19:03:34 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 20 03:08:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5ecf710
7
8 dev-python/citeproc-py: add 0.6.0
9
10 Bug: https://bugs.gentoo.org/792561
11 Package-Manager: Portage-3.0.22, Repoman-3.0.3
12 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/22283
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 dev-python/citeproc-py/Manifest | 2 ++
17 dev-python/citeproc-py/citeproc-py-0.6.0.ebuild | 42 ++++++++++++++++++++++
18 .../files/stop_test_from_accessing_git-0.6.0.patch | 13 +++++++
19 3 files changed, 57 insertions(+)
20
21 diff --git a/dev-python/citeproc-py/Manifest b/dev-python/citeproc-py/Manifest
22 index b47f04a2e2a..8cf3be4efa9 100644
23 --- a/dev-python/citeproc-py/Manifest
24 +++ b/dev-python/citeproc-py/Manifest
25 @@ -1 +1,3 @@
26 DIST citeproc-py-0.4.0.tar.gz 109786 BLAKE2B 8d8520ad10a9db7b7da1a2febcc594750572a562ada3944e41dd42321a3b9384828ad17e671307b5c4affeca2ec4a3f8e97eec650dad7005323ccb2913ef43d5 SHA512 bdc09a6f632a13cdfa757710c0d137ec73fe590bd01e049847fe013569231426bc72b318133fa34c96c5608b7a30058c27f4cd3d5fa2ba4b0760527b877992d5
27 +DIST citeproc-py-0.6.0.tar.gz 140624 BLAKE2B 169129c6be29a5a5c4678ccc2e2dd0b9ef58248ae66339ac32c6fab887058c7bbd2884d2ce959ce52287a622be4abded7e1ab06cae9c0952be47352671f951c4 SHA512 901a62c59189a652b589e4aa12e489f72f5ea40db1349fcdc0e4ffd6f5be8d364dccdc23cfab1a9003fbc672d75c5bdf06c74b9b5e1fcfb2c12e84df39fe1fb1
28 +DIST citeproc-py-test-suite-c3db429ab7c6b9b9ccaaa6d3c6bb9e503f0d7b11.tar.gz 990340 BLAKE2B acf02bec956765d0bea794a96ce7b86104c98aa4c0f8620dbfaeb7f16f37fe07e5b45883c04a1c639fad9098e3733339c90deaf8cdd794fadb8db1456972d16b SHA512 8653ea8968fa108c0814f43744f6e569a0a32cf4e82addec667f75a28b9c1fd9c7714c0c75a85e0d6f7f579e554494925ba4ab05e21e4dcb6b727d00b6a16df7
29
30 diff --git a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
31 new file mode 100644
32 index 00000000000..d69a3058ef1
33 --- /dev/null
34 +++ b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
35 @@ -0,0 +1,42 @@
36 +# Copyright 1999-2021 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=8
40 +
41 +PYTHON_COMPAT=( python3_{8..9} )
42 +
43 +# Keep synced with tests/citeproc-test.py
44 +TEST_SUITE_COMMIT="c3db429ab7c6b9b9ccaaa6d3c6bb9e503f0d7b11"
45 +
46 +inherit distutils-r1
47 +
48 +DESCRIPTION="Yet another Python CSL Processor"
49 +HOMEPAGE="https://pypi.org/project/citeproc-py/"
50 +SRC_URI="
51 + mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
52 + test? (
53 + https://github.com/citation-style-language/test-suite/archive/${TEST_SUITE_COMMIT}.tar.gz -> ${PN}-test-suite-${TEST_SUITE_COMMIT}.tar.gz
54 + )"
55 +
56 +LICENSE="BSD-2"
57 +SLOT="0"
58 +KEYWORDS="~amd64"
59 +IUSE="test"
60 +
61 +BDEPEND=">=app-text/rnc2rng-2.6.3[${PYTHON_USEDEP}]"
62 +RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]"
63 +DEPEND="test? ( ${RDEPEND} )"
64 +
65 +PATCHES=( "${FILESDIR}/stop_test_from_accessing_git-${PV}.patch" )
66 +
67 +distutils_enable_tests nose
68 +
69 +src_prepare() {
70 + default_src_prepare
71 + mv "${WORKDIR}/test-suite-${TEST_SUITE_COMMIT}" "${S}/tests/test-suite" || die
72 +}
73 +
74 +python_test() {
75 + nosetests -v --ignore-files=citeproc-test.py || die "Tests failed with ${EPYTHON}"
76 + ${EPYTHON} tests/citeproc-test.py -vs || die "Tests failed with ${EPYTHON}"
77 +}
78
79 diff --git a/dev-python/citeproc-py/files/stop_test_from_accessing_git-0.6.0.patch b/dev-python/citeproc-py/files/stop_test_from_accessing_git-0.6.0.patch
80 new file mode 100644
81 index 00000000000..e04ff1be1b8
82 --- /dev/null
83 +++ b/dev-python/citeproc-py/files/stop_test_from_accessing_git-0.6.0.patch
84 @@ -0,0 +1,13 @@
85 +diff --git a/tests/citeproc-test.py b/tests/citeproc-test.py
86 +index 11bd47d..8934700 100644
87 +--- a/tests/citeproc-test.py
88 ++++ b/tests/citeproc-test.py
89 +@@ -288,7 +288,7 @@ if __name__ == '__main__':
90 + glob_pattern = '*'
91 + run_all_tests = True
92 +
93 +- test_repo_has_updates = clone_test_suite()
94 ++ test_repo_has_updates = False
95 +
96 + # import the text fixture parser included with citeproc-test
97 + try: # Python 3.3+