diff options
Diffstat (limited to 'dev-python/citeproc-py')
-rw-r--r-- | dev-python/citeproc-py/Manifest | 4 | ||||
-rw-r--r-- | dev-python/citeproc-py/citeproc-py-0.6.0.ebuild | 43 | ||||
-rw-r--r-- | dev-python/citeproc-py/files/stop_test_from_accessing_git-0.6.0.patch | 13 |
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/citeproc-py/Manifest b/dev-python/citeproc-py/Manifest index 6d7f536e2d42..f4e1433824b2 100644 --- a/dev-python/citeproc-py/Manifest +++ b/dev-python/citeproc-py/Manifest @@ -1,4 +1,8 @@ AUX b1a5f925527093b0b5c11507f379a908e3354820.patch 1339 BLAKE2B 0dc159ac56179f13c528a13ad617d1ac52e65b4cc9be59bf6374adcb1ce787ffdc960bc70cc5dcd6287bd9bde4157f0ed1bb1511d2021a476ac61ce9428c2dd1 SHA512 477fc02354cacc75bfc341257caaac23501381c1e233a84a1e0973c98eba350c7cfa1a15503130f3059c0a239c20d5bb5fbde40b754785581c287fadc0183701 +AUX stop_test_from_accessing_git-0.6.0.patch 432 BLAKE2B c4b4696acf4619eb30ec3423743a0d3db76f4932c67afecca121f289fe2d144f0bf51e1c62847f09d083e741b4a586ca02adea8bde321edfe5ea3156c673d60b SHA512 79308abf6392436ce528e0a9713ee3d7af7345585e68510a7f5ecd8427e8f6c9a7bcebc7787935ae838e089c94a3f8b7cc472af99c735fb5c0f3626501c35f0e DIST citeproc-py-0.4.0.tar.gz 109786 BLAKE2B 8d8520ad10a9db7b7da1a2febcc594750572a562ada3944e41dd42321a3b9384828ad17e671307b5c4affeca2ec4a3f8e97eec650dad7005323ccb2913ef43d5 SHA512 bdc09a6f632a13cdfa757710c0d137ec73fe590bd01e049847fe013569231426bc72b318133fa34c96c5608b7a30058c27f4cd3d5fa2ba4b0760527b877992d5 +DIST citeproc-py-0.6.0.tar.gz 140624 BLAKE2B 169129c6be29a5a5c4678ccc2e2dd0b9ef58248ae66339ac32c6fab887058c7bbd2884d2ce959ce52287a622be4abded7e1ab06cae9c0952be47352671f951c4 SHA512 901a62c59189a652b589e4aa12e489f72f5ea40db1349fcdc0e4ffd6f5be8d364dccdc23cfab1a9003fbc672d75c5bdf06c74b9b5e1fcfb2c12e84df39fe1fb1 +DIST citeproc-py-test-suite-c3db429ab7c6b9b9ccaaa6d3c6bb9e503f0d7b11.tar.gz 990340 BLAKE2B acf02bec956765d0bea794a96ce7b86104c98aa4c0f8620dbfaeb7f16f37fe07e5b45883c04a1c639fad9098e3733339c90deaf8cdd794fadb8db1456972d16b SHA512 8653ea8968fa108c0814f43744f6e569a0a32cf4e82addec667f75a28b9c1fd9c7714c0c75a85e0d6f7f579e554494925ba4ab05e21e4dcb6b727d00b6a16df7 EBUILD citeproc-py-0.4.0-r1.ebuild 554 BLAKE2B 3308d1c89f85cc30f0cc66927e9b23009022a83189782ea3da2c65c00aa50475a651de467c5907eb6fd0bfe43db14323a08918efa01bd93c01dd2e188acd05b5 SHA512 699f218cbe0c1bd3971ad7fc4d9e8181a9a29f1a956e4c75da6abceb4a2b5229d061f2880b0c73b09d0c1fda5f7ed3d825d65d9bc238fd7d38e6291419fe13f0 +EBUILD citeproc-py-0.6.0.ebuild 1133 BLAKE2B 03adcd47ccd1e738465223956e1ffcf2294b5bdd06f93ac73e6d9e97fe6d4b24eefd8692d43086c6c13d65a649e943d530c86f638750b921debd2384c60e2f48 SHA512 cda31c80454058b33c0ebcdb3ea65e69601f2c3dd853e742650c1fee3dc113ce2d9d0acb77715a4fefe4e3d28b2048bd6d167babfb206d467da214f187e5ed9a MISC metadata.xml 382 BLAKE2B 2d84f4b9844043338b0eb9f737dfef0495445b91a66d4b4aed910e87d7742ff5889dcf55fb0beed2f09042ed44415f4587e34a011ce7e4ad424079da3a74fd4f SHA512 de145eb60b314cd6f502b9f9115b5b034f3b72f0d3209c8e368ffcff0f4105ce4a88511d6599d6472092761d6800508a911a0765937aeb9b8782b1621d9488e6 diff --git a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild new file mode 100644 index 000000000000..b71b4ef34c4c --- /dev/null +++ b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..9} ) + +# Keep synced with tests/citeproc-test.py +TEST_SUITE_COMMIT="c3db429ab7c6b9b9ccaaa6d3c6bb9e503f0d7b11" + +inherit distutils-r1 + +DESCRIPTION="Yet another Python CSL Processor" +HOMEPAGE="https://pypi.org/project/citeproc-py/" +SRC_URI=" + mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz + test? ( + https://github.com/citation-style-language/test-suite/archive/${TEST_SUITE_COMMIT}.tar.gz -> ${PN}-test-suite-${TEST_SUITE_COMMIT}.tar.gz + )" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND=">=app-text/rnc2rng-2.6.3[${PYTHON_USEDEP}]" +RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]" + +PATCHES=( "${FILESDIR}/stop_test_from_accessing_git-${PV}.patch" ) + +distutils_enable_tests nose + +src_prepare() { + default + + if use test ; then + mv "${WORKDIR}/test-suite-${TEST_SUITE_COMMIT}" "${S}/tests/test-suite" || die + fi +} + +python_test() { + nosetests -v --ignore-files=citeproc-test.py || die "Tests failed with ${EPYTHON}" + ${EPYTHON} tests/citeproc-test.py -vs || die "Tests failed with ${EPYTHON}" +} 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 new file mode 100644 index 000000000000..e04ff1be1b87 --- /dev/null +++ b/dev-python/citeproc-py/files/stop_test_from_accessing_git-0.6.0.patch @@ -0,0 +1,13 @@ +diff --git a/tests/citeproc-test.py b/tests/citeproc-test.py +index 11bd47d..8934700 100644 +--- a/tests/citeproc-test.py ++++ b/tests/citeproc-test.py +@@ -288,7 +288,7 @@ if __name__ == '__main__': + glob_pattern = '*' + run_all_tests = True + +- test_repo_has_updates = clone_test_suite() ++ test_repo_has_updates = False + + # import the text fixture parser included with citeproc-test + try: # Python 3.3+ |