summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/python-yadis
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/python-yadis')
-rw-r--r--dev-python/python-yadis/Manifest1
-rw-r--r--dev-python/python-yadis/files/python-yadis-1.1.0-gentoo-test.patch82
-rw-r--r--dev-python/python-yadis/metadata.xml6
-rw-r--r--dev-python/python-yadis/python-yadis-1.1.0-r2.ebuild31
4 files changed, 120 insertions, 0 deletions
diff --git a/dev-python/python-yadis/Manifest b/dev-python/python-yadis/Manifest
new file mode 100644
index 000000000000..9f69a04a9e5d
--- /dev/null
+++ b/dev-python/python-yadis/Manifest
@@ -0,0 +1 @@
+DIST python-yadis-1.1.0.tar.gz 192569 SHA256 1f9e9c55e82ac0025030e9bb0bcc4e2344ad4b26e6fd0aee10690fb18a3ca307 SHA512 955efbcd13f02c8e112e0f5dfd4ad8a7fb56e0d5d55a2c409ed044f4ac99d5496b9d641916a7af1ddc18628d83cef1f3907d787afd468ceb7573ec192de1e02f WHIRLPOOL 0389fbf85635752b23eeef3ada41a6df8dd181aa89facb208e5f4e20c4d7278cc78a20e335a033456e5e2bfc171e92a22dba990c96fbf9d8a66090cf0573be3c
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..86fcb975b657
--- /dev/null
+++ b/dev-python/python-yadis/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <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..a914353dae7f
--- /dev/null
+++ b/dev-python/python-yadis/python-yadis-1.1.0-r2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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" )
+
+python_test() {
+ ./admin/runtests
+ einfo "The pyflake output about XML* redefinitions can be safely ignored"
+}