summaryrefslogtreecommitdiff
path: root/dev-python/python-yadis
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/python-yadis
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/python-yadis')
-rw-r--r--dev-python/python-yadis/Manifest6
-rw-r--r--dev-python/python-yadis/files/python-yadis-1.1.0-gentoo-test.patch82
-rw-r--r--dev-python/python-yadis/metadata.xml9
-rw-r--r--dev-python/python-yadis/python-yadis-1.1.0-r2.ebuild33
4 files changed, 130 insertions, 0 deletions
diff --git a/dev-python/python-yadis/Manifest b/dev-python/python-yadis/Manifest
new file mode 100644
index 000000000000..c74c348ef0b4
--- /dev/null
+++ b/dev-python/python-yadis/Manifest
@@ -0,0 +1,6 @@
+AUX python-yadis-1.1.0-gentoo-test.patch 3153 SHA256 6bc1d94e2232ddeb584a395256ed6a423dc73354f1a4fd9a89dfb61fc8ba17f3 SHA512 fda698114472b569031a2d9c6fe2c85d856f9fa7b1118aefb282bda10dc53f20727581f3b9a1fb535cec535cae2b3253c851de7d64ad0e0ce60cbfabf1df9186 WHIRLPOOL 757da86a794213e5114e9b39b5bf49d7562a2e44671b32ef0512d08f31bb624e256b7076d3bc901e68169d3d228803a69be34879b605fdca6905d0de7833c28a
+DIST python-yadis-1.1.0.tar.gz 192569 SHA256 1f9e9c55e82ac0025030e9bb0bcc4e2344ad4b26e6fd0aee10690fb18a3ca307 SHA512 955efbcd13f02c8e112e0f5dfd4ad8a7fb56e0d5d55a2c409ed044f4ac99d5496b9d641916a7af1ddc18628d83cef1f3907d787afd468ceb7573ec192de1e02f WHIRLPOOL 0389fbf85635752b23eeef3ada41a6df8dd181aa89facb208e5f4e20c4d7278cc78a20e335a033456e5e2bfc171e92a22dba990c96fbf9d8a66090cf0573be3c
+EBUILD python-yadis-1.1.0-r2.ebuild 838 SHA256 9320001613fb13b369309959fe9bcbffc7bd3ae83ee9d9b82628abfa932c0bcd SHA512 c125938ebc5a757c9729641a834a729c6bb60e32dc6ce173ceaed4144189e000449fa3d5c9f80f29fefe8c8d58fcec23a094720f2f59491804af731f451a3d5a WHIRLPOOL c23c245fcf58cc958daede3a62b9b1664c266c1f5e9b70c427b859a8d121eb598a0f24c154cff48b450b5b6e0e6087d13649b8bc80f8fb64363ac908ff1226ef
+MISC ChangeLog 2723 SHA256 fff56bb70a1cc66db673e98855b7543c5086b708b593f31b042a2ae99c93040c SHA512 f9b64c04e788bf60cd98e216be7625b33db1df26dc019f526c4149c847ec077aa50e264550db128fc6924c25622be0e6738b600f33b17165d787e49a78819be1 WHIRLPOOL 7b4e4e522ab55ba43e0d6871e8b90d816648e3e1d47fbcb76d2b710616856a387c146c293cb0c13198a043579073ffe38ae327f449174336c22c7e81dd586b52
+MISC ChangeLog-2015 1547 SHA256 0dc8f4d6046f3e76e307fd4c20a4db61e38f0e4f5963aa9d4fe2da504ecd85b9 SHA512 adc9a1828ff4ec63c547b9a44ee659b83cb0c654e920c2e91741bfe884084b20481794bdd40ecac900a5c95b023965df8a8399505f50157ca3728cca92e8b0aa WHIRLPOOL 053ae2e989c9576e3a8639d8271472b4a25743bc5569ab06626c6ab395ef1460a0d1ecb760adbc2c74fbf79f821db5a976ee00e45bc6ee0bd671db0ca06bbfa2
+MISC metadata.xml 308 SHA256 ee787ea98be9bc027a6119d24d4270df5f33fa9062579ce741ac75c4f6a4f173 SHA512 c4cc94efed57dfcce6e258fb46a67b2c49d7575b7cd17da7b95b04451d2180241ec34fa697514bc1f65f2fa5c9de5e841d3ae24ffd4f7e62de37e7c5d7c002a2 WHIRLPOOL f94adbe9f3d5ca958d43259f36d0c0503c16437fb8f43d83be14d41c31846d4ebe2100cd54ce8b7a2596a4cab95b1b3a3a3c19cdcbe7e1f7614fa982862c4bfd
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"
+}