diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/python-yadis | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/python-yadis')
-rw-r--r-- | dev-python/python-yadis/Manifest | 4 | ||||
-rw-r--r-- | dev-python/python-yadis/files/python-yadis-1.1.0-gentoo-test.patch | 82 | ||||
-rw-r--r-- | dev-python/python-yadis/metadata.xml | 9 | ||||
-rw-r--r-- | dev-python/python-yadis/python-yadis-1.1.0-r2.ebuild | 33 |
4 files changed, 128 insertions, 0 deletions
diff --git a/dev-python/python-yadis/Manifest b/dev-python/python-yadis/Manifest new file mode 100644 index 000000000000..7b0f042b2b33 --- /dev/null +++ b/dev-python/python-yadis/Manifest @@ -0,0 +1,4 @@ +AUX python-yadis-1.1.0-gentoo-test.patch 3153 BLAKE2B e19df48735fcdc9cd163fb8c49ee376e445915f92d02d004356af79543b5f0895b8bfac7a01d563975ca9c12e44840a6256f4113d234130581fed6f00b83f62a SHA512 fda698114472b569031a2d9c6fe2c85d856f9fa7b1118aefb282bda10dc53f20727581f3b9a1fb535cec535cae2b3253c851de7d64ad0e0ce60cbfabf1df9186 +DIST python-yadis-1.1.0.tar.gz 192569 BLAKE2B 2d2f16779bf7f53069f0b2450cece681acc01475ce0688d10cf90c213c863d99713253f605d77cd9978cf51abc859133bf5ac5cbbf547b25b1ea0013241a68cb SHA512 955efbcd13f02c8e112e0f5dfd4ad8a7fb56e0d5d55a2c409ed044f4ac99d5496b9d641916a7af1ddc18628d83cef1f3907d787afd468ceb7573ec192de1e02f +EBUILD python-yadis-1.1.0-r2.ebuild 838 BLAKE2B b3af4fb58f14107e597a1f527ce8ca4501e87cb4605dbf354c742ff66b9258fe3fd88d6933e47199ed4f32bfcc274630bb76244f8a4a648e800d51d217789f02 SHA512 c125938ebc5a757c9729641a834a729c6bb60e32dc6ce173ceaed4144189e000449fa3d5c9f80f29fefe8c8d58fcec23a094720f2f59491804af731f451a3d5a +MISC metadata.xml 308 BLAKE2B d98cf54d35a62aaafcadc116d5f46816311c7d32b0bed219e4b57e44bebed1ea344cb90e77b8b52eb573663d5942c8a2e0699eed5c5f2691d7bfe946ebcbf3ac SHA512 c4cc94efed57dfcce6e258fb46a67b2c49d7575b7cd17da7b95b04451d2180241ec34fa697514bc1f65f2fa5c9de5e841d3ae24ffd4f7e62de37e7c5d7c002a2 diff --git a/dev-python/python-yadis/files/python-yadis-1.1.0-gentoo-test.patch b/dev-python/python-yadis/files/python-yadis-1.1.0-gentoo-test.patch new file mode 100644 index 000000000000..ae6a06c9012c --- /dev/null +++ b/dev-python/python-yadis/files/python-yadis-1.1.0-gentoo-test.patch @@ -0,0 +1,82 @@ +--- admin/runtests.orig 2007-05-31 11:30:01.000000000 -0700 ++++ admin/runtests 2007-05-31 11:31:26.000000000 -0700 +@@ -1,7 +1,6 @@ + #!/bin/bash + +-ADMINDIR=$(dirname $0) +-YDIR=${ADMINDIR}/.. ++YDIR='.' + + declare -i errorcode=0 + +@@ -17,13 +16,6 @@ + echo 'Install pyflakes. http://divmod.org/trac/wiki/DivmodPyflakes' + fi + +-if [[ $1 != "darcs" ]] ; then +- echo 'Checking docs... ' +- if ! ${ADMINDIR}/epyrun check; then +- # Who knows? Epydoc --check doesn't modify the return code. +- errorcode=$errorcode+2 +- fi +-fi + + echo -n 'Running tests... ' + if ! python ${YDIR}/yadis/test/runtests ; then +diff -ur python-yadis-1.1.0.orig/yadis/test/test_xri.py python-yadis-1.1.0/yadis/test/test_xri.py +--- yadis/test/test_xri.py 2006-12-09 06:17:12.000000000 +0900 ++++ yadis/test/test_xri.py 2011-11-16 22:03:07.254992928 +0800 +@@ -44,11 +44,6 @@ + s = u'l\xa1m' + expected = 'l%C2%A1m' + self.failUnlessEqual(xri.iriToURI(s), expected) +- else: +- def test_iri_to_url(self): +- s = u'l\xa1m\U00101010n' +- expected = 'l%C2%A1m%F4%81%80%90n' +- self.failUnlessEqual(xri.iriToURI(s), expected) + + + +diff -ur /mnt/gen2/tmpdir/portage/dev-python/python-yadis-1.1.0/work/python-yadis-1.1.0.orig/yadis/etxrd.py /mnt/gen2/tmpdir/portage/dev-python/python-yadis-1.1.0/work/python-yadis-1.1.0/yadis/etxrd.py +--- yadis/etxrd.py 2006-12-09 06:17:12.000000000 +0900 ++++ yadis/etxrd.py 2011-11-16 22:26:21.386992510 +0800 +@@ -22,12 +22,8 @@ + from elementtree.ElementTree import ElementTree + + # Use expat if it's present. Otherwise, use xmllib +-try: +- from xml.parsers.expat import ExpatError as XMLError +- from elementtree.ElementTree import XMLTreeBuilder +-except ImportError: +- from elementtree.SimpleXMLTreeBuilder import TreeBuilder as XMLTreeBuilder +- from xmllib import Error as XMLError ++from elementtree.SimpleXMLTreeBuilder import TreeBuilder as XMLTreeBuilder ++from xmllib import Error as XMLError + + from yadis import xri + +diff -ur /mnt/gen2/tmpdir/portage/dev-python/python-yadis-1.1.0/work/python-yadis-1.1.0.orig/yadis/test/test_etxrd.py /mnt/gen2/tmpdir/portage/dev-python/python-yadis-1.1.0/work/python-yadis-1.1.0/yadis/test/test_etxrd.py +--- yadis/test/test_etxrd.py 2006-12-09 06:17:12.000000000 +0900 ++++ yadis/test/test_etxrd.py 2011-11-16 22:29:00.896992462 +0800 +@@ -40,9 +40,6 @@ + def _getServices(self, flt=None): + return list(services.applyFilter(self.yadis_url, self.xmldoc, flt)) + +- def testParse(self): +- """Make sure that parsing succeeds at all""" +- services = self._getServices() + + def testParseOpenID(self): + """Parse for OpenID services with a transformer function""" +diff -ur python-yadis-1.1.0.orig/yadis/test/test_parsehtml.py python-yadis-1.1.0/yadis/test/test_parsehtml.py +--- yadis/test/test_parsehtml.py 2006-12-09 06:17:12.000000000 +0900 ++++ yadis/test/test_parsehtml.py 2012-11-08 20:42:34.248733469 +0800 +@@ -3,6 +3,7 @@ + + import os.path, unittest, sys + ++@unittest.skip("Recently broken test") + class _TestCase(unittest.TestCase): + reserved_values = ['None', 'EOF'] + diff --git a/dev-python/python-yadis/metadata.xml b/dev-python/python-yadis/metadata.xml new file mode 100644 index 000000000000..85d4aef0b6da --- /dev/null +++ b/dev-python/python-yadis/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription>Yadis service discovery library</longdescription> +</pkgmetadata> diff --git a/dev-python/python-yadis/python-yadis-1.1.0-r2.ebuild b/dev-python/python-yadis/python-yadis-1.1.0-r2.ebuild new file mode 100644 index 000000000000..571bae4a83f7 --- /dev/null +++ b/dev-python/python-yadis/python-yadis-1.1.0-r2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 + +DESCRIPTION="Yadis service discovery library" +HOMEPAGE="http://www.openidenabled.com/yadis/libraries/python/" +SRC_URI="http://www.openidenabled.com/resources/downloads/python-openid/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/elementtree[${PYTHON_USEDEP}] + dev-python/python-urljr[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( >=dev-python/pyflakes-0.2.1[${PYTHON_USEDEP}] )" + +# Fix broken test +PATCHES=( "${FILESDIR}/${P}-gentoo-test.patch" ) + +# Tests are broken. +RESTRICT='test' + +python_test() { + ./admin/runtests + einfo "The pyflake output about XML* redefinitions can be safely ignored" +} |