summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-01-20 14:33:00 +0000
committerMichał Górny <mgorny@gentoo.org>2013-01-20 14:33:00 +0000
commit3a16bb9d82b4c4ff19877991d59b0c3cb153ace8 (patch)
tree25937980294799cad8900d512c7ba866ce04429c /dev-python/python-gnupg
parentMask dev-lang/ruby-enterprise and its use flag. (diff)
downloadhistorical-3a16bb9d82b4c4ff19877991d59b0c3cb153ace8.tar.gz
historical-3a16bb9d82b4c4ff19877991d59b0c3cb153ace8.tar.bz2
historical-3a16bb9d82b4c4ff19877991d59b0c3cb153ace8.zip
Version bump. Fix running tests in parallel. Use fast random source to make tests finish in a reasonable time.
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64 Manifest-Sign-Key: 0x42B9401D
Diffstat (limited to 'dev-python/python-gnupg')
-rw-r--r--dev-python/python-gnupg/ChangeLog9
-rw-r--r--dev-python/python-gnupg/Manifest15
-rw-r--r--dev-python/python-gnupg/files/python-gnupg-0.3.2-fast-random.patch88
-rw-r--r--dev-python/python-gnupg/python-gnupg-0.3.2.ebuild28
4 files changed, 133 insertions, 7 deletions
diff --git a/dev-python/python-gnupg/ChangeLog b/dev-python/python-gnupg/ChangeLog
index d6940c93a543..1f6bed628cd5 100644
--- a/dev-python/python-gnupg/ChangeLog
+++ b/dev-python/python-gnupg/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-python/python-gnupg
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/python-gnupg/ChangeLog,v 1.3 2013/01/08 19:00:42 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-gnupg/ChangeLog,v 1.4 2013/01/20 14:32:54 mgorny Exp $
+
+*python-gnupg-0.3.2 (20 Jan 2013)
+
+ 20 Jan 2013; Michał Górny <mgorny@gentoo.org>
+ +files/python-gnupg-0.3.2-fast-random.patch, +python-gnupg-0.3.2.ebuild:
+ Version bump. Fix running tests in parallel. Use fast random source to make
+ tests finish in a reasonable time.
*python-gnupg-0.3.1-r1 (08 Jan 2013)
diff --git a/dev-python/python-gnupg/Manifest b/dev-python/python-gnupg/Manifest
index ba5e43e2739b..a1bc8dec5fc2 100644
--- a/dev-python/python-gnupg/Manifest
+++ b/dev-python/python-gnupg/Manifest
@@ -1,19 +1,22 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
+AUX python-gnupg-0.3.2-fast-random.patch 3310 SHA256 af6e0327805b10373e462f036e7e2f94de2376444497e613adfd2419659eb31f SHA512 56b0e30860d8ea9212d9b7ddf244b07dba8f580e09ed57b91bd3b7885fb9c2c14eea64d4d80a7b676806f734bc685178fd4571bed85b9467ddac0ed901ffa595 WHIRLPOOL 8b89c17dcae970ff225a60d0645e7c1b465a23969d62853f73891792ca3a5c0b2a8a503be6ce2354dd143f591bdb5a812bf7352e499550f55e81da1aada4fc27
DIST python-gnupg-0.3.0.tar.gz 16647 SHA256 dbe4f6ad6c33bacffab94cd34063c05ff8f08014e4e215b3934e46c5cc031deb SHA512 fc269fd48ce87a3f983fff607f0175def01fdffe4a25a5d802c26d0097c62e95b82b29f17804ac91337757f6f188e57a2012c91dffbd2738561245a80bd15321 WHIRLPOOL be33bd1e1faadca10debc2debee523df42a1a7623785749246d778e4363830d209b86d0935a834905c8b55093a42c71fdf25a93b778db630a3e9ebf49a551759
DIST python-gnupg-0.3.1.tar.gz 17226 SHA256 05a04a1c5dc562ff49e3bc7ebb32144c25e19b5a2d65c8ada064ceae08c87d86 SHA512 993989b7978ef18b6e2e5488829fc879b8dc90029f5a689c8f8f970b91257cdb579f0e46dccafc28f0e09006797bd3786ff0eda03c66f43eba63c09f56adbc85 WHIRLPOOL 4f8174087fbfaacaced781a994c12850ce295dbb649eb9af7c059ec05185bba4245f5f6400c2a62c79a6fff84d0bd25efc4c1cbb2365b82351e2f1e9b6230d6d
+DIST python-gnupg-0.3.2.tar.gz 17645 SHA256 e38e724a021767673054d54338f621c53edd48f2cdbc1226f5a9bffc831c3418 SHA512 6ce427231210bb1a19ed0a9676e7c2b82985ca4407ba3c13c6fa1624c97ddf76839badc23681d877c054bea3d098abfc700938d4b1e5454e4b0c3952ba552a52 WHIRLPOOL ee6a1dba881b6a65750a1ab0d1e4e3257e7f13d457fecc4e68ed6b37c8ec3fa51499f98a797c45bebc316e42640050e67f2c031cb483676d299296a5736e000c
EBUILD python-gnupg-0.3.0.ebuild 589 SHA256 fb2fd2cbab80d887a1adc97090142d77c81db0d8c807bfba7b067ec6a592cfd6 SHA512 181a69d3cbed105c74d55493e28f2dec697331adba2ba45ea388213b6ce01330785316879c0545642189431c4409d7e1cd565fb5a3b85c739928dba64da6ca42 WHIRLPOOL ee7b28abddae1877c2f649dbac96a8e4eb36cc30d0a98bb0330e0960e21a8a555f0bbccc5085738a470f5facd90ada7c5776655945dd315567cd71cee8f05b68
EBUILD python-gnupg-0.3.1-r1.ebuild 692 SHA256 9fe71ab432387186a657e595cb1e4d5ccab8e36eccfa1f68a8236d332346aa12 SHA512 9ed54ce5c19a4e68d9e6b356c218df5f9f046846a9bf6b289ea1cbe4f2bdc4162c3e03c87081685c8a0579b8ac7e4193d7df839ab3227f760b09570cf030b995 WHIRLPOOL bd5d9981f40ce4aaf3692005bfde4c8ac3b785db3f7531d3f616a56a1dd91992bad1f3349be8bd854737c4f3bcfa7660edb887737f6ff014f5788bde483de909
EBUILD python-gnupg-0.3.1.ebuild 596 SHA256 0ef8b052c62b5bb947efbcb765530ab28002a346a99c5f1dec2c0ef34a9a8396 SHA512 06faf133efaade422296cecb2539949aa94339ce051773e2f54d637cc68e4a6183e5a103fb72a1ce6a1e8c03101b5d40224c234dda92abbecc308a0a3413d202 WHIRLPOOL 01c726d7089cbd2c839cd8818413b91827b0e477c77a29bd212fff33ce9933e7ca3c8cd141b484b9b4a28ed38ceb0e10210e13605d964f0c59dacd299d6f17de
-MISC ChangeLog 700 SHA256 dc7ac9b0f6ca079bc0b0886127668398248505faa66068b97b91fdb38c59459d SHA512 10ab12fc051eeb42e3ce5cbc7ca1a38f0bf3519b2c72a2213d7683968ffaab383e5e360876d06ff93a4380f15ced2218af3ecd8f7536fd6b0c6e388dc019ef89 WHIRLPOOL 2c60e1be1781b1f457923b433723ce8c5371e44d8a9090e2f892157493a86e1ad2bfed098faea5b64dda282833ed7a5b5f725b13aa2aef6a700329a03ca5d26c
+EBUILD python-gnupg-0.3.2.ebuild 731 SHA256 c094e35af396dbd48ea62ce808f39c9d831315def45ba55edc003757e20378fb SHA512 1e85a291a2e8b6b5b4464e0d4343d3984ac90561dd40ffeb9fcc5b0b8dc88a287e8216de64a3b5c2383aca0187a5f42d6ee1e5e15de07da69412a6a8e2753ad2 WHIRLPOOL 50ca41cd06afd6ed688a74f8e1447f5605450df9444551fda3ff34407ceee68f81427e6004b529a4667378c23a7dcdc9b13f45804cb165d77cb8333d531edd0a
+MISC ChangeLog 976 SHA256 54ba294eb31b39c04515a6d9ec69a4bbb21955e884f0d2a2e5a25f4c6e58cec2 SHA512 93c4597fd25424c5e852a1dabf0443e778138b2d3eeed9e7fff91e783ad5a13acc8da169ed8240eacc328b955e7cafa9e37d191ae7272321c241742d7cb07cfe WHIRLPOOL 6dc5fbe531eb2f57856c1a25ccacc9f926109b72ec398762e62be2f6da2742f67db74e42ff2d927f36a792e17604b7089780edccd721c02804b7fefd74163ac8
MISC metadata.xml 242 SHA256 7be3c0da93825240d34d52dc4a401662377a2f73effd5e68ff74683abea05319 SHA512 6c802a3ec463d34a01df8d1c03266d3dd95b2ecfc06e1ec0630428a7e1629290cc0aa0f5f475e2a01acfddda4e9a74d911eaeb3b7d46dd33aa93604aa77d4d01 WHIRLPOOL bdf635f697e9a6864b356377d4ffb931645a13b9e73c29945fc65ad127867ec6ac77f30690ff1051058c6823471fed1d7d40774a153d0e64d6469f3c0ab3c2fe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iJwEAQEIAAYFAlDsbPcACgkQfXuS5UK5QB3hlwP8D/g4XoEKrLGf9OMN4ZrMouoY
-XS6hg6/ycPGHJsreeR9Idrjc/EpVb2B+G/2ZjQ1ZQTlk95frbmNloU4l2LfqClsv
-Lg+WnYxSH7vZgK5M7e8M+FREs7nMvVGt5brMk5OZAjtUX0npAlwXitAkUWZw76Jf
-5h+72pWs+phgatnkBGM=
-=Pou0
+iJwEAQEIAAYFAlD8AEQACgkQfXuS5UK5QB2jbwP/Z+UcTnNosvLU/hENCq8O1GtM
+2mzxyroVpsDNQ8nzEBHcA+J7Tm83ZVckMfDNbxSdMtAG8VYZl/AemDb38ucA2aX1
+sMSLNbkWwg/816u8u9BzGB0pL4ShZTgQI3XAvd1ibKTFx30Q5PyqXrKlzP91rm6J
+SkMF5Bc+Rjk2PKk+ZZQ=
+=XNBS
-----END PGP SIGNATURE-----
diff --git a/dev-python/python-gnupg/files/python-gnupg-0.3.2-fast-random.patch b/dev-python/python-gnupg/files/python-gnupg-0.3.2-fast-random.patch
new file mode 100644
index 000000000000..53ad5388963c
--- /dev/null
+++ b/dev-python/python-gnupg/files/python-gnupg-0.3.2-fast-random.patch
@@ -0,0 +1,88 @@
+From 0dc9665f3aa31ff2f4dc0d7fe6838295fa27b2df Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sun, 20 Jan 2013 14:58:30 +0100
+Subject: [PATCH] Use quick random source for tests (now with doctests).
+
+Pass --debug-quick-random to gpg in order to enable the fast random
+source. Good random is not really useful for tests while it makes them
+awfully slow.
+---
+ gnupg.py | 12 ++++++------
+ test_gnupg.py | 3 ++-
+ 2 files changed, 8 insertions(+), 7 deletions(-)
+
+diff --git a/gnupg.py b/gnupg.py
+index e279116..9366961 100644
+--- a/gnupg.py
++++ b/gnupg.py
+@@ -694,7 +694,7 @@ class GPG(object):
+ def verify(self, data):
+ """Verify the signature on the contents of the string 'data'
+
+- >>> gpg = GPG(gnupghome="keys")
++ >>> gpg = GPG(gnupghome="keys", options=['--debug-quick-random'])
+ >>> input = gpg.gen_key_input(Passphrase='foo')
+ >>> key = gpg.gen_key(input)
+ >>> assert key
+@@ -745,7 +745,7 @@ class GPG(object):
+
+ >>> import shutil
+ >>> shutil.rmtree("keys")
+- >>> gpg = GPG(gnupghome="keys")
++ >>> gpg = GPG(gnupghome="keys", options=['--debug-quick-random'])
+ >>> input = gpg.gen_key_input()
+ >>> result = gpg.gen_key(input)
+ >>> print1 = result.fingerprint
+@@ -798,7 +798,7 @@ class GPG(object):
+
+ >>> import shutil
+ >>> shutil.rmtree("keys")
+- >>> gpg = GPG(gnupghome="keys")
++ >>> gpg = GPG(gnupghome="keys", options=['--debug-quick-random'])
+ >>> result = gpg.recv_keys('pgp.mit.edu', '3FF0DB166A7476EA')
+ >>> assert result
+
+@@ -848,7 +848,7 @@ class GPG(object):
+
+ >>> import shutil
+ >>> shutil.rmtree("keys")
+- >>> gpg = GPG(gnupghome="keys")
++ >>> gpg = GPG(gnupghome="keys", options=['--debug-quick-random'])
+ >>> input = gpg.gen_key_input()
+ >>> result = gpg.gen_key(input)
+ >>> print1 = result.fingerprint
+@@ -894,7 +894,7 @@ class GPG(object):
+ """Generate a key; you might use gen_key_input() to create the
+ control input.
+
+- >>> gpg = GPG(gnupghome="keys")
++ >>> gpg = GPG(gnupghome="keys", options=['--debug-quick-random'])
+ >>> input = gpg.gen_key_input()
+ >>> result = gpg.gen_key(input)
+ >>> assert result
+@@ -994,7 +994,7 @@ class GPG(object):
+ >>> import shutil
+ >>> if os.path.exists("keys"):
+ ... shutil.rmtree("keys")
+- >>> gpg = GPG(gnupghome="keys")
++ >>> gpg = GPG(gnupghome="keys", options=['--debug-quick-random'])
+ >>> input = gpg.gen_key_input(passphrase='foo')
+ >>> result = gpg.gen_key(input)
+ >>> print1 = result.fingerprint
+diff --git a/test_gnupg.py b/test_gnupg.py
+index d5aed97..5258d97 100644
+--- a/test_gnupg.py
++++ b/test_gnupg.py
+@@ -96,7 +96,8 @@ class GPGTestCase(unittest.TestCase):
+ "Not a directory: %s" % hd)
+ shutil.rmtree(hd)
+ self.homedir = hd
+- self.gpg = gnupg.GPG(gnupghome=hd, gpgbinary='gpg')
++ self.gpg = gnupg.GPG(gnupghome=hd, gpgbinary='gpg',
++ options=['--debug-quick-random'])
+
+ def test_environment(self):
+ "Test the environment by ensuring that setup worked"
+--
+1.8.1.1
+
diff --git a/dev-python/python-gnupg/python-gnupg-0.3.2.ebuild b/dev-python/python-gnupg/python-gnupg-0.3.2.ebuild
new file mode 100644
index 000000000000..2fdfa98f465d
--- /dev/null
+++ b/dev-python/python-gnupg/python-gnupg-0.3.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-gnupg/python-gnupg-0.3.2.ebuild,v 1.1 2013/01/20 14:32:54 mgorny Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python wrapper for GNU Privacy Guard"
+HOMEPAGE="http://code.google.com/p/python-gnupg/"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-crypt/gnupg"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fast-random.patch
+)
+
+python_test() {
+ cd "${BUILD_DIR}" || die
+ "${PYTHON}" "${S}"/test_gnupg.py || die "Tests fail with ${EPYTHON}"
+}