[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/

2023-03-16 Thread Michał Górny
commit: 05568709dca87baf6dc2602f2336f05d1942ff2b
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Mar 16 18:58:43 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Mar 17 05:31:58 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05568709

dev-python/citeproc-py: Use pypi.eclass

Signed-off-by: Michał Górny  gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/30163
Signed-off-by: Michał Górny  gentoo.org>

 dev-python/citeproc-py/citeproc-py-0.6.0.ebuild | 12 +++-
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild 
b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
index fc213ba3c5d8..b3938812ea05 100644
--- a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
+++ b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
@@ -3,20 +3,22 @@
 
 EAPI=8
 
+PYPI_NO_NORMALIZE=1
 PYTHON_COMPAT=( python3_{9..10} )
 
 # Keep synced with tests/citeproc-test.py
 TEST_SUITE_COMMIT="c3db429ab7c6b9b9ccaaa6d3c6bb9e503f0d7b11"
 
-inherit distutils-r1
+inherit distutils-r1 pypi
 
 DESCRIPTION="Yet another Python CSL Processor"
 HOMEPAGE="https://pypi.org/project/citeproc-py/;
-SRC_URI="
-   mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
+SRC_URI+="
test? (
-   
https://github.com/citation-style-language/test-suite/archive/${TEST_SUITE_COMMIT}.tar.gz
 -> ${PN}-test-suite-${TEST_SUITE_COMMIT}.tar.gz
-   )"
+   
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"



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/, dev-python/citeproc-py/files/

2021-11-14 Thread Michał Górny
commit: 8b2696408a861d31a0b53ba2ec9161d5977ba8e1
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Nov 14 08:37:49 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Nov 14 08:46:33 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b269640

dev-python/citeproc-py: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/citeproc-py/Manifest|  1 -
 dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild | 25 -
 .../b1a5f925527093b0b5c11507f379a908e3354820.patch | 42 --
 3 files changed, 68 deletions(-)

diff --git a/dev-python/citeproc-py/Manifest b/dev-python/citeproc-py/Manifest
index 8cf3be4efa9a..f226fa1ed986 100644
--- a/dev-python/citeproc-py/Manifest
+++ b/dev-python/citeproc-py/Manifest
@@ -1,3 +1,2 @@
-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 
acf02bec956765d0bea794a96ce7b86104c98aa4c0f8620dbfaeb7f16f37fe07e5b45883c04a1c639fad9098e379c90deaf8cdd794fadb8db1456972d16b
 SHA512 
8653ea8968fa108c0814f43744f6e569a0a32cf4e82addec667f75a28b9c1fd9c7714c0c75a85e0d6f7f579e554494925ba4ab05e21e4dcb6b727d00b6a16df7

diff --git a/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild 
b/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
deleted file mode 100644
index 37553b998754..
--- a/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..9} )
-
-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"
-
-LICENSE="BSD-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-PATCHES=( "${FILESDIR}/b1a5f925527093b0b5c11507f379a908e3354820.patch" )
-
-RDEPEND="
-   app-text/rnc2rng[${PYTHON_USEDEP}]
-   dev-python/lxml[${PYTHON_USEDEP}]"
-BDEPEND="
-   ${RDEPEND}"

diff --git 
a/dev-python/citeproc-py/files/b1a5f925527093b0b5c11507f379a908e3354820.patch 
b/dev-python/citeproc-py/files/b1a5f925527093b0b5c11507f379a908e3354820.patch
deleted file mode 100644
index b3b6e0fe074a..
--- 
a/dev-python/citeproc-py/files/b1a5f925527093b0b5c11507f379a908e3354820.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From b1a5f925527093b0b5c11507f379a908e3354820 Mon Sep 17 00:00:00 2001
-From: Brecht Machiels 
-Date: Tue, 22 May 2018 12:57:47 +0200
-Subject: [PATCH] rnc2rng 2.6.1 handles rnc file encoding (fixes #81)
-

- setup.py | 8 
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/setup.py b/setup.py
-index dbaad6d..774932b 100755
 a/setup.py
-+++ b/setup.py
-@@ -9,6 +9,7 @@
- import sys
- 
- from datetime import datetime
-+from io import open
- from subprocess import Popen, PIPE
- from setuptools import setup, find_packages
- from setuptools.command.build_py import build_py
-@@ -63,9 +64,8 @@ def convert_rnc():
- import rnc2rng
- 
- filename_root, _ = os.path.splitext(CSL_SCHEMA_RNC)
--with open(CSL_SCHEMA_RNC, 'r') as rnc:
--root = rnc2rng.load(rnc)
--with open(filename_root + '.rng', 'w') as rng:
-+root = rnc2rng.load(CSL_SCHEMA_RNC)
-+with open(filename_root + '.rng', 'w', encoding='utf-8') as rng:
- rnc2rng.dump(root, rng)
- 
- 
-@@ -91,7 +91,7 @@ def run(self):
- 'data/schema/*.rng',
- 'data/styles/*.csl']},
- scripts=['bin/csl_unsorted'],
--setup_requires=['rnc2rng>=2.2'],
-+setup_requires=['rnc2rng>=2.6.1'],
- install_requires=['lxml'],
- provides=[PACKAGE],
- #test_suite='nose.collector',



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/

2021-10-22 Thread Arthur Zamarin
commit: 5a5cad21e934f3bf34373f667cea6f476bf683fe
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Oct 22 16:46:03 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Oct 22 17:20:46 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a5cad21

dev-python/citeproc-py: enable py3.10

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/citeproc-py/citeproc-py-0.6.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild 
b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
index b71b4ef34c4..be01afa9190 100644
--- a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
+++ b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{8..9} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 # Keep synced with tests/citeproc-test.py
 TEST_SUITE_COMMIT="c3db429ab7c6b9b9ccaaa6d3c6bb9e503f0d7b11"



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/

2021-10-19 Thread Sam James
commit: d45a32e5e69e9088922a75736e60cdc61016ee9f
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 20 03:11:08 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 20 03:11:12 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d45a32e5

dev-python/citeproc-py: keyword 0.6.0 for ~x86

Didn't need to be dropped AFAIK.

See: https://github.com/gentoo/gentoo/pull/22283
Signed-off-by: Sam James  gentoo.org>

 dev-python/citeproc-py/citeproc-py-0.6.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild 
b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
index 6aaa4f52d37..b71b4ef34c4 100644
--- a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
+++ b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
@@ -20,7 +20,7 @@ SRC_URI="
 
 LICENSE="BSD-2"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~x86"
 
 BDEPEND=">=app-text/rnc2rng-2.6.3[${PYTHON_USEDEP}]"
 RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]"



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/, dev-python/citeproc-py/files/

2021-10-19 Thread Sam James
commit: c5ecf710bcac01705d82d711f7a965f6c53f1135
Author: Alfred Wingate  protonmail  com>
AuthorDate: Mon Sep 13 19:03:34 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 20 03:08:15 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5ecf710

dev-python/citeproc-py: add 0.6.0

Bug: https://bugs.gentoo.org/792561
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Alfred Wingate  protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/22283
Signed-off-by: Sam James  gentoo.org>

 dev-python/citeproc-py/Manifest|  2 ++
 dev-python/citeproc-py/citeproc-py-0.6.0.ebuild| 42 ++
 .../files/stop_test_from_accessing_git-0.6.0.patch | 13 +++
 3 files changed, 57 insertions(+)

diff --git a/dev-python/citeproc-py/Manifest b/dev-python/citeproc-py/Manifest
index b47f04a2e2a..8cf3be4efa9 100644
--- a/dev-python/citeproc-py/Manifest
+++ b/dev-python/citeproc-py/Manifest
@@ -1 +1,3 @@
 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 
acf02bec956765d0bea794a96ce7b86104c98aa4c0f8620dbfaeb7f16f37fe07e5b45883c04a1c639fad9098e379c90deaf8cdd794fadb8db1456972d16b
 SHA512 
8653ea8968fa108c0814f43744f6e569a0a32cf4e82addec667f75a28b9c1fd9c7714c0c75a85e0d6f7f579e554494925ba4ab05e21e4dcb6b727d00b6a16df7

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 000..d69a3058ef1
--- /dev/null
+++ b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
@@ -0,0 +1,42 @@
+# 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"
+IUSE="test"
+
+BDEPEND=">=app-text/rnc2rng-2.6.3[${PYTHON_USEDEP}]"
+RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]"
+DEPEND="test? ( ${RDEPEND} )"
+
+PATCHES=( "${FILESDIR}/stop_test_from_accessing_git-${PV}.patch" )
+
+distutils_enable_tests nose
+
+src_prepare() {
+   default_src_prepare
+   mv "${WORKDIR}/test-suite-${TEST_SUITE_COMMIT}" "${S}/tests/test-suite" 
|| die
+}
+
+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 000..e04ff1be1b8
--- /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+



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/

2021-10-19 Thread Sam James
commit: 7644d1ccb7a14f8b0076002081f8c92f8abd9c43
Author: Sam James  gentoo  org>
AuthorDate: Wed Oct 20 03:09:51 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Oct 20 03:10:32 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7644d1cc

dev-python/citeproc-py: fix installation without tests, simplify

- distutils_enable_tests handles IUSE=test, RESTRICT, and BDEPEND="test? ( 
${RDEPEND} )"
  for us.

- Don't try to mv a directory which won't exist if USE=-test.

See: https://github.com/gentoo/gentoo/pull/22283
Signed-off-by: Sam James  gentoo.org>

 dev-python/citeproc-py/citeproc-py-0.6.0.ebuild | 9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild 
b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
index d69a3058ef1..6aaa4f52d37 100644
--- a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
+++ b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
@@ -21,19 +21,20 @@ SRC_URI="
 LICENSE="BSD-2"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="test"
 
 BDEPEND=">=app-text/rnc2rng-2.6.3[${PYTHON_USEDEP}]"
 RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]"
-DEPEND="test? ( ${RDEPEND} )"
 
 PATCHES=( "${FILESDIR}/stop_test_from_accessing_git-${PV}.patch" )
 
 distutils_enable_tests nose
 
 src_prepare() {
-   default_src_prepare
-   mv "${WORKDIR}/test-suite-${TEST_SUITE_COMMIT}" "${S}/tests/test-suite" 
|| die
+   default
+
+   if use test ; then
+   mv "${WORKDIR}/test-suite-${TEST_SUITE_COMMIT}" 
"${S}/tests/test-suite" || die
+   fi
 }
 
 python_test() {



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/

2021-02-05 Thread Michał Górny
commit: f42c8c1dd0a9bae59f7ab1e1afb2563644afc725
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Feb  5 08:37:47 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Feb  5 08:43:26 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f42c8c1d

dev-python/citeproc-py: Remove python@

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/citeproc-py/metadata.xml | 4 
 1 file changed, 4 deletions(-)

diff --git a/dev-python/citeproc-py/metadata.xml 
b/dev-python/citeproc-py/metadata.xml
index f2c00bc183f..4e6a5fe265f 100644
--- a/dev-python/citeproc-py/metadata.xml
+++ b/dev-python/citeproc-py/metadata.xml
@@ -1,10 +1,6 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-   
-   pyt...@gentoo.org
-   Python
-   

ale...@gentoo.org
Alexey Shvetsov



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/

2020-12-11 Thread Michał Górny
commit: b06d73a9f9d24ee6726664a27d19f9163717f408
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Dec 11 12:25:02 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Dec 11 12:48:20 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b06d73a9

dev-python/citeproc-py: Update HOMEPAGE

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild 
b/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
index 0077a97d054..88e0adc0c2e 100644
--- a/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
+++ b/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
@@ -8,7 +8,7 @@ PYTHON_COMPAT=( python3_{6..9} )
 inherit distutils-r1
 
 DESCRIPTION="Yet another Python CSL Processor"
-HOMEPAGE="https://pypi.python.org/pypi/citeproc-py;
+HOMEPAGE="https://pypi.org/project/citeproc-py/;
 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="BSD-2"



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/

2020-12-02 Thread Aaron Bauman
commit: ca0f4e1318b0212e69446b0a12f44572dd86d737
Author: Aaron Bauman  gentoo  org>
AuthorDate: Thu Dec  3 01:22:07 2020 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Thu Dec  3 01:35:45 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca0f4e13

dev-python/citeproc-py: add py3_{8,9}

Signed-off-by: Aaron Bauman  gentoo.org>

 dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild 
b/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
index 56734409539..0077a97d054 100644
--- a/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
+++ b/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
@@ -3,7 +3,8 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{6,7} )
+PYTHON_COMPAT=( python3_{6..9} )
+
 inherit distutils-r1
 
 DESCRIPTION="Yet another Python CSL Processor"



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/

2020-02-04 Thread Michał Górny
commit: 65070fb2c80249368fd9bac74c2d85e51f3a7213
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Feb  4 15:37:29 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Feb  4 15:40:16 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65070fb2

dev-python/citeproc-py: Remove py2

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild 
b/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
index 326dcbec5f6..5a6963b71c4 100644
--- a/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
+++ b/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python2_7 python3_{6,7} )
+PYTHON_COMPAT=( python3_{6,7} )
 inherit distutils-r1
 
 DESCRIPTION="Yet another Python CSL Processor"



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/

2019-11-17 Thread Alexey Shvetsov
commit: 0c0de4f445c06c998c4ffbb565425fc702d3a3ec
Author: Alexey Shvetsov  gentoo  org>
AuthorDate: Sun Nov 17 13:22:01 2019 +
Commit: Alexey Shvetsov  gentoo  org>
CommitDate: Sun Nov 17 15:12:02 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c0de4f4

dev-python/citeproc-py: Add py3.7 and move to eapi7

Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Alexey Shvetsov  gentoo.org>

 .../{citeproc-py-0.4.0.ebuild => citeproc-py-0.4.0-r1.ebuild} | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/dev-python/citeproc-py/citeproc-py-0.4.0.ebuild 
b/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
similarity index 85%
rename from dev-python/citeproc-py/citeproc-py-0.4.0.ebuild
rename to dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
index 2e0420e00d4..b81b9c57d50 100644
--- a/dev-python/citeproc-py/citeproc-py-0.4.0.ebuild
+++ b/dev-python/citeproc-py/citeproc-py-0.4.0-r1.ebuild
@@ -1,9 +1,9 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-PYTHON_COMPAT=( python2_7 python3_{5,6} )
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
 inherit distutils-r1
 
 DESCRIPTION="Yet another Python CSL Processor"
@@ -17,6 +17,8 @@ IUSE=""
 
 PATCHES=( "${FILESDIR}/b1a5f925527093b0b5c11507f379a908e3354820.patch" )
 
-DEPEND="
+RDEPEND="
dev-python/rnc2rng[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]"
+BDEPEND="
+   ${RDEPEND}"



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/files/, dev-python/citeproc-py/

2018-09-22 Thread Christoph Junghans
commit: f7cda0a8974873c0e916752c62bc99af1fd75aeb
Author: Christoph Junghans  gentoo  org>
AuthorDate: Sat Sep 22 13:05:35 2018 +
Commit: Christoph Junghans  gentoo  org>
CommitDate: Sat Sep 22 13:06:24 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7cda0a8

dev-python/citeproc-py: fix build with python3

Closes: https://bugs.gentoo.org/659520
Package-Manager: Portage-2.3.49, Repoman-2.3.10

 dev-python/citeproc-py/citeproc-py-0.4.0.ebuild|  2 ++
 .../b1a5f925527093b0b5c11507f379a908e3354820.patch | 42 ++
 2 files changed, 44 insertions(+)

diff --git a/dev-python/citeproc-py/citeproc-py-0.4.0.ebuild 
b/dev-python/citeproc-py/citeproc-py-0.4.0.ebuild
index 47823b83524..56f3fc4dce8 100644
--- a/dev-python/citeproc-py/citeproc-py-0.4.0.ebuild
+++ b/dev-python/citeproc-py/citeproc-py-0.4.0.ebuild
@@ -15,6 +15,8 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
+PATCHES=( "${FILESDIR}/b1a5f925527093b0b5c11507f379a908e3354820.patch" )
+
 DEPEND="
dev-python/rnc2rng[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]"

diff --git 
a/dev-python/citeproc-py/files/b1a5f925527093b0b5c11507f379a908e3354820.patch 
b/dev-python/citeproc-py/files/b1a5f925527093b0b5c11507f379a908e3354820.patch
new file mode 100644
index 000..b3b6e0fe074
--- /dev/null
+++ 
b/dev-python/citeproc-py/files/b1a5f925527093b0b5c11507f379a908e3354820.patch
@@ -0,0 +1,42 @@
+From b1a5f925527093b0b5c11507f379a908e3354820 Mon Sep 17 00:00:00 2001
+From: Brecht Machiels 
+Date: Tue, 22 May 2018 12:57:47 +0200
+Subject: [PATCH] rnc2rng 2.6.1 handles rnc file encoding (fixes #81)
+
+---
+ setup.py | 8 
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index dbaad6d..774932b 100755
+--- a/setup.py
 b/setup.py
+@@ -9,6 +9,7 @@
+ import sys
+ 
+ from datetime import datetime
++from io import open
+ from subprocess import Popen, PIPE
+ from setuptools import setup, find_packages
+ from setuptools.command.build_py import build_py
+@@ -63,9 +64,8 @@ def convert_rnc():
+ import rnc2rng
+ 
+ filename_root, _ = os.path.splitext(CSL_SCHEMA_RNC)
+-with open(CSL_SCHEMA_RNC, 'r') as rnc:
+-root = rnc2rng.load(rnc)
+-with open(filename_root + '.rng', 'w') as rng:
++root = rnc2rng.load(CSL_SCHEMA_RNC)
++with open(filename_root + '.rng', 'w', encoding='utf-8') as rng:
+ rnc2rng.dump(root, rng)
+ 
+ 
+@@ -91,7 +91,7 @@ def run(self):
+ 'data/schema/*.rng',
+ 'data/styles/*.csl']},
+ scripts=['bin/csl_unsorted'],
+-setup_requires=['rnc2rng>=2.2'],
++setup_requires=['rnc2rng>=2.6.1'],
+ install_requires=['lxml'],
+ provides=[PACKAGE],
+ #test_suite='nose.collector',



[gentoo-commits] repo/gentoo:master commit in: dev-python/citeproc-py/

2018-06-28 Thread Alexey Shvetsov
commit: e8a5a4ef2a02c95697b254a2b2434bf13e5bfaa3
Author: Alexey Shvetsov  gentoo  org>
AuthorDate: Thu Jun 28 12:00:51 2018 +
Commit: Alexey Shvetsov  gentoo  org>
CommitDate: Thu Jun 28 12:19:55 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8a5a4ef

dev-python/citeproc-py: Initial import

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-python/citeproc-py/Manifest |  1 +
 dev-python/citeproc-py/citeproc-py-0.4.0.ebuild | 20 
 dev-python/citeproc-py/metadata.xml | 15 +++
 3 files changed, 36 insertions(+)

diff --git a/dev-python/citeproc-py/Manifest b/dev-python/citeproc-py/Manifest
new file mode 100644
index 000..b47f04a2e2a
--- /dev/null
+++ b/dev-python/citeproc-py/Manifest
@@ -0,0 +1 @@
+DIST citeproc-py-0.4.0.tar.gz 109786 BLAKE2B 
8d8520ad10a9db7b7da1a2febcc594750572a562ada3944e41dd42321a3b9384828ad17e671307b5c4affeca2ec4a3f8e97eec650dad7005323ccb2913ef43d5
 SHA512 
bdc09a6f632a13cdfa757710c0d137ec73fe590bd01e049847fe013569231426bc72b318133fa34c96c5608b7a30058c27f4cd3d5fa2ba4b0760527b877992d5

diff --git a/dev-python/citeproc-py/citeproc-py-0.4.0.ebuild 
b/dev-python/citeproc-py/citeproc-py-0.4.0.ebuild
new file mode 100644
index 000..47823b83524
--- /dev/null
+++ b/dev-python/citeproc-py/citeproc-py-0.4.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+inherit distutils-r1
+
+DESCRIPTION="Yet another Python CSL Processor"
+HOMEPAGE="https://pypi.python.org/pypi/citeproc-py;
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+   dev-python/rnc2rng[${PYTHON_USEDEP}]
+   dev-python/lxml[${PYTHON_USEDEP}]"

diff --git a/dev-python/citeproc-py/metadata.xml 
b/dev-python/citeproc-py/metadata.xml
new file mode 100644
index 000..4ad4957cfd2
--- /dev/null
+++ b/dev-python/citeproc-py/metadata.xml
@@ -0,0 +1,15 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   pyt...@gentoo.org
+   Python
+   
+   
+   ale...@gentoo.org
+   Alexey Shvetsov
+   
+   
+   brechtm/citeproc-py
+   
+