diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-08-06 13:42:52 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-08-06 13:42:52 +0000 |
| commit | 4c98477e9a410c1a6e6fa62245cdf580581c6cd7 (patch) | |
| tree | f815ace86299169232648846e88f6887ea233452 /dev-python/python-xmlsec | |
| parent | c49cf756b59448a526cd6c7a6f64ead795d672fa (diff) | |
| download | baldeagleos-repo-4c98477e9a410c1a6e6fa62245cdf580581c6cd7.tar.gz baldeagleos-repo-4c98477e9a410c1a6e6fa62245cdf580581c6cd7.tar.xz baldeagleos-repo-4c98477e9a410c1a6e6fa62245cdf580581c6cd7.zip | |
Adding metadata
Diffstat (limited to 'dev-python/python-xmlsec')
| -rw-r--r-- | dev-python/python-xmlsec/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/python-xmlsec/files/python-xmlsec-1.3.11-fix-xml-testfail.patch | 23 | ||||
| -rw-r--r-- | dev-python/python-xmlsec/metadata.xml | 4 | ||||
| -rw-r--r-- | dev-python/python-xmlsec/python-xmlsec-1.3.11.ebuild | 12 | ||||
| -rw-r--r-- | dev-python/python-xmlsec/python-xmlsec-1.3.9.ebuild | 40 |
5 files changed, 34 insertions, 46 deletions
diff --git a/dev-python/python-xmlsec/Manifest b/dev-python/python-xmlsec/Manifest index 5f4becee1589..8b21cbd08819 100644 --- a/dev-python/python-xmlsec/Manifest +++ b/dev-python/python-xmlsec/Manifest @@ -1,2 +1 @@ DIST python-xmlsec-1.3.11.tar.gz 75023 BLAKE2B 87fe4b47a9df6bc2fb2f1a459fa20240d9d5c92e0f7fa9bfc466e1fbfc0e3f12d90d01f5c7a6eac1389ea3252b8267a545203edf34c30117573bada9a7f5481a SHA512 fe0144d67edcad366b1d0f4615983f5630afd8f22aa056f46d1e6564f1c3114c0a469675e64a06591540515b0d12b5bf9304845f5138b24e15acaf4e5b861961 -DIST python-xmlsec-1.3.9.tar.gz 75465 BLAKE2B 32aa8bcc2a17e1164fab6ebf37b47ad64bf8164a5d5cc5929571c32715e37d22143f996afc75c8a73a08e0a0a07d74ce1f8e405731260c1bcdb26c7ccb5faf25 SHA512 3c212c409430297a85316e0c4f7f704be112dfda323fd0300b7d70de812d90dd4681c6a5a3cc0314d1937ebc4f8e012fac7f787bccdfb2dc699d5d6f17316b38 diff --git a/dev-python/python-xmlsec/files/python-xmlsec-1.3.11-fix-xml-testfail.patch b/dev-python/python-xmlsec/files/python-xmlsec-1.3.11-fix-xml-testfail.patch new file mode 100644 index 000000000000..3e7ab8829c2f --- /dev/null +++ b/dev-python/python-xmlsec/files/python-xmlsec-1.3.11-fix-xml-testfail.patch @@ -0,0 +1,23 @@ +Taken from: https://github.com/mehcode/python-xmlsec/issues/84#issuecomment-632930116 +diff --git a/tests/base.py b/tests/base.py +index b05de1d..5ec356f 100644 +--- a/tests/base.py ++++ b/tests/base.py +@@ -94,6 +94,7 @@ class TestMemoryLeaks(unittest.TestCase): + + def load_xml(self, name, xpath=None): + """returns xml.etree""" ++ etree.set_default_parser(parser=etree.XMLParser()) + root = etree.parse(self.path(name)).getroot() + if xpath is None: + return root +diff --git a/tests/test_doc_examples.py b/tests/test_doc_examples.py +index 2fc490f..53d2377 100644 +--- a/tests/test_doc_examples.py ++++ b/tests/test_doc_examples.py +@@ -42,3 +42,5 @@ def test_doc_example(example): + """ + with cd(example.parent): + runpy.run_path(str(example)) ++ from lxml import etree ++ etree.set_default_parser(parser=etree.XMLParser()) diff --git a/dev-python/python-xmlsec/metadata.xml b/dev-python/python-xmlsec/metadata.xml index afdeb2a2bb2a..3ec1a68e95cc 100644 --- a/dev-python/python-xmlsec/metadata.xml +++ b/dev-python/python-xmlsec/metadata.xml @@ -5,6 +5,10 @@ <email>chutzpah@gentoo.org</email> <name>Patrick McLean</name> </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> <upstream> <remote-id type="pypi">xmlsec</remote-id> </upstream> diff --git a/dev-python/python-xmlsec/python-xmlsec-1.3.11.ebuild b/dev-python/python-xmlsec/python-xmlsec-1.3.11.ebuild index 1623bd9b634d..1c7ef1c87776 100644 --- a/dev-python/python-xmlsec/python-xmlsec-1.3.11.ebuild +++ b/dev-python/python-xmlsec/python-xmlsec-1.3.11.ebuild @@ -1,7 +1,7 @@ # Copyright 2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 PYTHON_COMPAT=( python3_{6,7,8,9,10} ) inherit distutils-r1 @@ -23,11 +23,13 @@ RDEPEND="${DEPEND} BDEPEND="${RDEPEND} dev-python/pkgconfig[${PYTHON_USEDEP}] dev-python/wheel[${PYTHON_USEDEP}] -" + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + )" -# tests fail, has been reported upstream -# https://github.com/mehcode/python-xmlsec/issues/84 -RESTRICT=test +PATCHES=( + "${FILESDIR}/${P}-fix-xml-testfail.patch" +) distutils_enable_tests pytest diff --git a/dev-python/python-xmlsec/python-xmlsec-1.3.9.ebuild b/dev-python/python-xmlsec/python-xmlsec-1.3.9.ebuild deleted file mode 100644 index 030a2c5224f7..000000000000 --- a/dev-python/python-xmlsec/python-xmlsec-1.3.9.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -inherit distutils-r1 - -DESCRIPTION="Python bindings for the XML Security Library" -HOMEPAGE="https://github.com/mehcode/python-xmlsec" -SRC_URI="https://github.com/mehcode/python-xmlsec/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~ppc64 ~x86" - -DEPEND=" - dev-libs/xmlsec:= -" -RDEPEND="${DEPEND} - dev-python/lxml[${PYTHON_USEDEP}] -" -BDEPEND="${RDEPEND} - dev-python/pkgconfig[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] -" - -# tests fail, has been reported upstream -# https://github.com/mehcode/python-xmlsec/issues/84 -RESTRICT=test - -distutils_enable_tests pytest - -python_prepare_all() { - sed -e "s:use_scm_version=.*:version='${PV}',:" \ - -e "/setup_requires/ d" \ - -i setup.py || die - - distutils-r1_python_prepare_all -} |
