summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/gdata/ChangeLog8
-rw-r--r--dev-python/gdata/Manifest15
-rw-r--r--dev-python/gdata/files/gdata-1.0.8-test-fix.patch81
-rw-r--r--dev-python/gdata/gdata-1.0.8.ebuild12
4 files changed, 109 insertions, 7 deletions
diff --git a/dev-python/gdata/ChangeLog b/dev-python/gdata/ChangeLog
index 093d96877af6..e7c35ac1691f 100644
--- a/dev-python/gdata/ChangeLog
+++ b/dev-python/gdata/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/gdata
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/gdata/ChangeLog,v 1.5 2007/10/09 21:40:11 lack Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/gdata/ChangeLog,v 1.6 2008/03/28 06:47:13 hawking Exp $
+
+ 28 Mar 2008; Ali Polatel <hawking@gentoo.org>
+ +files/gdata-1.0.8-test-fix.patch, gdata-1.0.8.ebuild:
+ Add patch from upstream to fix tests. Bug 212983
*gdata-1.0.8 (09 Oct 2007)
diff --git a/dev-python/gdata/Manifest b/dev-python/gdata/Manifest
index 0d8d317bde23..f215b38f5382 100644
--- a/dev-python/gdata/Manifest
+++ b/dev-python/gdata/Manifest
@@ -1,6 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX gdata-1.0.8-test-fix.patch 3672 RMD160 9592c71dfec756fb7c67afc8c54d5f380956c07c SHA1 57d3aa0437b81280e6c6f917ba6166a2b4bc5368 SHA256 2ef30211fdecb966f6cf30b2aba6a7fc336ed9f99de54bc5031cadcb9e2a6322
DIST gdata.py-1.0.4.tar.gz 90311 RMD160 9ce160cc967e373b0cd08cd0246408d04ed5fd06 SHA1 68b4fddbca406c3b8d905ac752d2a8f429ede1a1 SHA256 604b23b795bc04a8d159ecc410d7293cebcd211e3f64f17d52f7cc886d9242f9
DIST gdata.py-1.0.8.tar.gz 79022 RMD160 0bb5e3b583bc74f0299fa3074f7ab2a81c8d1801 SHA1 e398c24b6cde1c3dc35fbef890925122d578726c SHA256 18c789f7a792973fed2633981fa35711a3bbefc14d7703d97bb816e9ae5acf24
EBUILD gdata-1.0.4.ebuild 969 RMD160 fb30fbbfe7a1115f4304e13a49f1b79b8f38912f SHA1 227319e1213f7695a2ce5adcf67839a59f5d4c8c SHA256 b3f6c23d4a45f7d5b15bac37d822814b98ae6967e5bf2d72a227988d2082ee29
-EBUILD gdata-1.0.8.ebuild 964 RMD160 01920029d32b076f2aa33d1fd210cde2d55b9fbd SHA1 5a8f1709d49bb434074a72721f01acb4c0cd2e12 SHA256 166383c955132317818b116b9ae92072eecb1250cadac0953270e067a1bff748
-MISC ChangeLog 982 RMD160 06ecb6357ed1e3c8e78f0e26ad29f563da493d99 SHA1 88b6f0993edc7f9251db05217a78695ecfc675c1 SHA256 f11069e1001a8acca58a8800d6e59b4ade40cb1c793070b5eed2a94d44b41e5e
+EBUILD gdata-1.0.8.ebuild 1057 RMD160 f076f355c4a01e3f58aa50d0273a1c4482d3a307 SHA1 ec84264aa79c3b0f71cb13865d9b541fa34fd127 SHA256 1eaceef56fd1ef4feb783b031c02ced906346ba867ce578be75ae875428405ff
+MISC ChangeLog 1142 RMD160 79e0294863675996f585034ade330172c7313f9b SHA1 5100f14d8fe00a9ec2d1515fdce213fada8b569f SHA256 30b879ab79ba739c52bf06a2abe47d587303dbaeea0e24f754851eb9b4f55633
MISC metadata.xml 248 RMD160 3559dd9a9e84aff6bd15e25f8739de14ed621fde SHA1 296c47d4d9c6ace6b687addaffc93e1fd3393c07 SHA256 52b86152bb13610d668b3350a9b8cc31210b8d85c2e124075cea027236cf32b9
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.7 (GNU/Linux)
+
+iD8DBQFH7JRZQU4yORhF8iARAqVqAKCfLZ6TOKtbPetNXpjJeSbvPHYSOwCguhnh
+SGLtV9aWLN8abDVsLcurqGc=
+=7Rif
+-----END PGP SIGNATURE-----
diff --git a/dev-python/gdata/files/gdata-1.0.8-test-fix.patch b/dev-python/gdata/files/gdata-1.0.8-test-fix.patch
new file mode 100644
index 000000000000..4ff4de0c3f66
--- /dev/null
+++ b/dev-python/gdata/files/gdata-1.0.8-test-fix.patch
@@ -0,0 +1,81 @@
+--- gdata.py-1.0.8/tests/atom/service_test.py 2007-07-21 00:25:54.000000000 +0300
++++ gdata.py-1.0.8/tests/atom/service_test.py 2008-03-28 08:40:16.044330089 +0200
+@@ -69,7 +69,7 @@
+ self.assertEquals(ssl, False)
+ self.assertEquals(host, 'www.google.com')
+ self.assertEquals(port, 80)
+- self.assertEquals(path, 'http://www.google.com:80/service/subservice?name=value')
++ self.assertEquals(path, '/service/subservice?name=value')
+
+ def testParseHttpUrlWithPort(self):
+ as = atom.service.AtomService('code.google.com')
+@@ -81,7 +81,7 @@
+ self.assertEquals(host, 'www.google.com')
+ self.assertEquals(port, 12)
+ #self.assertEquals(path, '/service/subservice?name=value&newname=newvalue')
+- self.assertEquals(path, 'http://www.google.com:12/service/subservice?name=value&newname=newvalue')
++ self.assertEquals(path, '/service/subservice?name=value&newname=newvalue')
+
+ def testParseHttpsUrl(self):
+ as = atom.service.AtomService('code.google.com')
+@@ -92,7 +92,7 @@
+ self.assertEquals(ssl, True)
+ self.assertEquals(host, 'www.google.com')
+ self.assertEquals(port, 443)
+- self.assertEquals(path, 'https://www.google.com:443/service/subservice?name=value&newname=newvalue')
++ self.assertEquals(path, '/service/subservice?name=value&newname=newvalue')
+
+ def testParseHttpsUrlWithPort(self):
+ as = atom.service.AtomService('code.google.com')
+@@ -103,50 +103,8 @@
+ self.assertEquals(ssl, True)
+ self.assertEquals(host, 'www.google.com')
+ self.assertEquals(port, 13981)
+- self.assertEquals(path, 'https://www.google.com:13981/service/subservice?name=value&newname=newvalue')
++ self.assertEquals(path, '/service/subservice?name=value&newname=newvalue')
+
+- def testParseUrlWithFullProxyURL(self):
+- as = atom.service.AtomService('code.google.com')
+- as.proxy_url = 'https://proxy.example.com:8080'
+- self.assert_(as.server == 'code.google.com')
+- self.assert_(as.proxy_url == 'https://proxy.example.com:8080')
+- (host, port, ssl, path) = as._ProcessUrl(
+- 'http://www.google.com:13981/service/subservice?name=value&newname=newvalue')
+- self.assertEquals(ssl, True)
+- self.assertEquals(host, 'proxy.example.com')
+- self.assertEquals(port, 8080)
+- self.assertEquals(path, 'http://www.google.com:13981/service/subservice?name=value&newname=newvalue')
+-
+- def testParseUrlWithHostOnlyProxyURL(self):
+- as = atom.service.AtomService('code.google.com')
+- as.proxy_url = 'http://proxy.example.com'
+- self.assert_(as.server == 'code.google.com')
+- self.assert_(as.proxy_url == 'http://proxy.example.com:80')
+- (host, port, ssl, path) = as._ProcessUrl(
+- 'https://www.google.com/service/subservice')
+- self.assertEquals(ssl, False)
+- self.assertEquals(host, 'proxy.example.com')
+- self.assertEquals(port, 80)
+- self.assertEquals(path, 'https://www.google.com:443/service/subservice')
+-
+- def testSetProxyUrlToIllegalValues(self):
+- as = atom.service.AtomService('code.google.com')
+- try:
+- as.proxy_url = 'proxy.example.com'
+- self.fail('A URL with no protocol should trigger InvalidProxyUrl')
+- except atom.service.InvalidProxyUrl:
+- pass
+- try:
+- as.proxy_url = 'http://:80'
+- self.fail('A URL with no server should trigger InvalidProxyUrl')
+- except atom.service.InvalidProxyUrl:
+- pass
+- try:
+- as.proxy_url = 'http://'
+- self.fail('A URL with only the protocol should trigger InvalidProxyUrl')
+- except atom.service.InvalidProxyUrl:
+- pass
+-
+ def testSetBasicAuth(self):
+ client = atom.service.AtomService()
+ client.UseBasicAuth('foo', 'bar')
diff --git a/dev-python/gdata/gdata-1.0.8.ebuild b/dev-python/gdata/gdata-1.0.8.ebuild
index 0d733ec1fdb3..8660d71fb8cb 100644
--- a/dev-python/gdata/gdata-1.0.8.ebuild
+++ b/dev-python/gdata/gdata-1.0.8.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/gdata/gdata-1.0.8.ebuild,v 1.1 2007/10/09 21:40:11 lack Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/gdata/gdata-1.0.8.ebuild,v 1.2 2008/03/28 06:47:13 hawking Exp $
-inherit distutils
+inherit distutils eutils
MY_P="gdata.py-${PV}"
@@ -21,6 +21,12 @@ RDEPEND="|| ( >=dev-lang/python-2.5 dev-python/elementtree )"
PYTHON_MODNAME="atom gdata"
S="${WORKDIR}/${MY_P}"
+src_unpack() {
+ distutils_src_unpack
+
+ epatch "${FILESDIR}/${P}-test-fix.patch"
+}
+
src_install() {
distutils_src_install