From 21435953e16cda318a82334ddbadb3b5c36d9ea7 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 15 Jan 2020 15:51:32 +0000 Subject: gentoo resync : 15.01.2020 --- dev-python/python-gnupg/Manifest | 10 +---- ...hon-gnupg-0.4.3-skip_network_needing_test.patch | 51 ---------------------- ...n-gnupg-0.4.3-use_seperate_keys_directory.patch | 50 --------------------- dev-python/python-gnupg/python-gnupg-0.4.0.ebuild | 27 ------------ dev-python/python-gnupg/python-gnupg-0.4.1.ebuild | 27 ------------ dev-python/python-gnupg/python-gnupg-0.4.3.ebuild | 31 ------------- dev-python/python-gnupg/python-gnupg-0.4.5.ebuild | 29 ++++++++++++ 7 files changed, 31 insertions(+), 194 deletions(-) delete mode 100644 dev-python/python-gnupg/files/python-gnupg-0.4.3-skip_network_needing_test.patch delete mode 100644 dev-python/python-gnupg/files/python-gnupg-0.4.3-use_seperate_keys_directory.patch delete mode 100644 dev-python/python-gnupg/python-gnupg-0.4.0.ebuild delete mode 100644 dev-python/python-gnupg/python-gnupg-0.4.1.ebuild delete mode 100644 dev-python/python-gnupg/python-gnupg-0.4.3.ebuild create mode 100644 dev-python/python-gnupg/python-gnupg-0.4.5.ebuild (limited to 'dev-python/python-gnupg') diff --git a/dev-python/python-gnupg/Manifest b/dev-python/python-gnupg/Manifest index 585adca75dd3..3d09904dd927 100644 --- a/dev-python/python-gnupg/Manifest +++ b/dev-python/python-gnupg/Manifest @@ -1,9 +1,3 @@ -AUX python-gnupg-0.4.3-skip_network_needing_test.patch 2286 BLAKE2B df6f591f70a12b7241781eebc7cb6f2a425a9479bb02e2d482e69dff9beae4741bc931aee953e99306731ca77f405e9b12366b262d63c54cedc9168f2551f869 SHA512 2189702d0fe00afbff59c494de2c02d97a91fd264e3f241c2b6f4b376fd188110b1da2ba27700cfc92fe6dc8b3246ecb8a072933a1fca3d7d3929d6cf0acaa76 -AUX python-gnupg-0.4.3-use_seperate_keys_directory.patch 1847 BLAKE2B 5488b55302336f4ddccea517684f1825b6a52f3100989c871846e6b140e98869ca682ad062507f8b3c5af9e99833c995d5737bc7e69597d247fbd6b68c71c507 SHA512 fee4817a26f934c5e7c216a0390abd3d1375168467e2695e1b35be34eed2b279bbfa8ba32ebe0347913a7750111b00c05264418f758c56f094c91e7c2b7ece52 -DIST python-gnupg-0.4.0.tar.gz 43987 BLAKE2B 59e72f894c5d554ba2a7c348ad3625500798ad6ac18332a3bb668b42559f52b58e3cd0f8b79ef1a99f37e796b48169d0bf36414e938e9039784cede4303cbb03 SHA512 f486ec97aee01cf46d055421211ff5704093a382155043b7ced6f809dc15d7669d5869038a1b26c5f1831076d85c929d781bc22e35ab293a14bc6e2f5f27fa32 -DIST python-gnupg-0.4.1.tar.gz 44534 BLAKE2B 0b58312b9f094b29f7009bb7a44ea3607be826ae2fda958dae0ba9dd5a2d7f81843fe23a6fe336b9df85c059e5b114787dab372df42b14b83cb73fb02abee919 SHA512 0920a1de4d98a745f7747280672975db04c40b59ea4436745cdbefa86a0c88bfdc086d6dd312c82a0a9e9f8cafb5651f8e17d86e0ee37282b5fc36e7ac8d1a1e -DIST python-gnupg-0.4.3.tar.gz 46958 BLAKE2B c83b13f8b36c136ac75e8a69dccb07025be3397284e27d9624677cd76ac8527bed67644be7a00958fdb248772a0c37de09257fb711eb16a2c982dbca0368dbd6 SHA512 9381acb1246b6ceec4de21091f2ce57dba9c6600dfb52ddee181effbd2e749d18935e6b6bb2183816064e9129cd1bb3ebfdd28a5dcddc9be1c56261a501067d8 -EBUILD python-gnupg-0.4.0.ebuild 668 BLAKE2B 15aac98e7a18c7f714dde3f4c58875e91d7cb0f45c00a2d9465d7df5c24b643db556e328cfc409eb0dd22b9c460ebfefbe289baa433dd7af5ad8a82764b57fb0 SHA512 33938c258738994351789a4dc947aab8c6a5ed0bfdddea063c583366bbe41d2790ee93ae77678b681efab84751c6a24aec3e74d7234ecfc0dc2c1bb8acfc8a18 -EBUILD python-gnupg-0.4.1.ebuild 654 BLAKE2B 6d8982c6c6ad2c35b1ab53d975d82d2a525a1c64ea785a3aef929b52e4ca1d226be6cdf64c4763c5eea30ea70aff437002e4fc755ef986edc50ed592d3c1cd9f SHA512 de4480fda18ec7718c6bc9052ebdb90721a240ecc7bbb159b67944a65fd7c84f94891def97fb707553059616e883ad33739864fd16c64c8616c51ee4a991fbc0 -EBUILD python-gnupg-0.4.3.ebuild 812 BLAKE2B 0f04a3328ff98482513ac60513dafa581e610774269c239ae8908ba2157fede95e46216eb438be729558d87f1733c816e1007cf2eb59482938beadfbeb489cd6 SHA512 25b778c54a721b6a28926725322b59b39d4b4397c5f98fe627087c048093c35fd9b2e5bffcaf3feb0cb664537f881185401a8cf3096e3deda89482b50edc857b +DIST python-gnupg-0.4.5.tar.gz 48792 BLAKE2B 1bf9cc1c8efafd4fa783574724852d0f168d4d4d4ec188bade9a3ff21be61cc1b087bd4ae72f11f189d182cd49c765d9b57ef22d954a69555c0368f1d863f1fd SHA512 441b49e1f87a7e8e3abf2d6e90f677dc33f1b66a36483787f972378127f31308bacc5e200ae254dd75942191d2fabd61ca5a2f200cf5400be70957942f889ca4 +EBUILD python-gnupg-0.4.5.ebuild 721 BLAKE2B 77b25fe04d741c3edc3e61ce4e979d9876e76af8044676e9fcc237e5029e6a77325fc6e76f660ff8722fd19e532b5ab92c8afaac2fcbf78a8a0cd486b8e82327 SHA512 20b4421b6c704c2cf7848aa091d5360bd27a4b35300c9c53de4acc6e1a5ebf35c69ced91276f04fa8eec0ea799de6adcc5bd4255f82fee47d2cc6ede3417be8a MISC metadata.xml 645 BLAKE2B 23e7cfc3792cd9aa1c8eac9c52fe3d01076f93880a17f4fd8aed0c6c30d8e00b866a9f3e71664ca08c41d1a8a6ea4a1ef55a01d6b12285ce36aa0654e2a837ba SHA512 77f5c9739da1875f655257da826acdb16e5dbdbac02f5c05ab66a91c842d63b478b26af52901fb6dcb2ab0b6ea19c3ffd09e761ddcb1df0d5e55d25c105fbc65 diff --git a/dev-python/python-gnupg/files/python-gnupg-0.4.3-skip_network_needing_test.patch b/dev-python/python-gnupg/files/python-gnupg-0.4.3-skip_network_needing_test.patch deleted file mode 100644 index f6df14348c1a..000000000000 --- a/dev-python/python-gnupg/files/python-gnupg-0.4.3-skip_network_needing_test.patch +++ /dev/null @@ -1,51 +0,0 @@ -# HG changeset patch -# User Vinay Sajip -# Date 1528916733 -3600 -# Node ID f16d4e17cf349cf9ee561e117262a4041e4fe2ee -# Parent 60ece27e564ef381392dc19a544aa289fb598c7e -Conditionally skip tests that rely on flaky external servers/networks. - -diff --git a/gnupg.py b/gnupg.py ---- a/gnupg.py -+++ b/gnupg.py -@@ -1118,7 +1118,7 @@ - >>> gpg = GPG(gpgbinary=GPGBINARY, gnupghome="keys") - >>> os.chmod('keys', 0x1C0) - >>> result = gpg.recv_keys('pgp.mit.edu', '92905378') -- >>> assert result -+ >>> if 'NO_EXTERNAL_TESTS' not in os.environ: assert result - - """ - result = self.result_map['import'](self) -@@ -1321,7 +1321,7 @@ - >>> gpg = GPG(gpgbinary=GPGBINARY, gnupghome='keys') - >>> os.chmod('keys', 0x1C0) - >>> result = gpg.search_keys('') -- >>> assert result, 'Failed using default keyserver' -+ >>> if 'NO_EXTERNAL_TESTS' not in os.environ: assert result, 'Failed using default keyserver' - >>> #keyserver = 'keyserver.ubuntu.com' - >>> #result = gpg.search_keys('', keyserver) - >>> #assert result, 'Failed using keyserver.ubuntu.com' -diff --git a/test_gnupg.py b/test_gnupg.py ---- a/test_gnupg.py -+++ b/test_gnupg.py -@@ -836,12 +836,13 @@ - #@skipIf(os.name == 'nt', 'Test not suitable for Windows') - def test_search_keys(self): - "Test that searching for keys works" -- r = self.gpg.search_keys('') -- self.assertTrue(r) -- self.assertTrue('Vinay Sajip ' in r[0]['uids']) -- r = self.gpg.search_keys('92905378') -- self.assertTrue(r) -- self.assertTrue('Vinay Sajip ' in r[0]['uids']) -+ if 'NO_EXTERNAL_TESTS' not in os.environ: -+ r = self.gpg.search_keys('') -+ self.assertTrue(r) -+ self.assertTrue('Vinay Sajip ' in r[0]['uids']) -+ r = self.gpg.search_keys('92905378') -+ self.assertTrue(r) -+ self.assertTrue('Vinay Sajip ' in r[0]['uids']) - - def test_quote_with_shell(self): - "Test shell quoting with a real shell" diff --git a/dev-python/python-gnupg/files/python-gnupg-0.4.3-use_seperate_keys_directory.patch b/dev-python/python-gnupg/files/python-gnupg-0.4.3-use_seperate_keys_directory.patch deleted file mode 100644 index b57137200990..000000000000 --- a/dev-python/python-gnupg/files/python-gnupg-0.4.3-use_seperate_keys_directory.patch +++ /dev/null @@ -1,50 +0,0 @@ -# HG changeset patch -# User Vinay Sajip -# Date 1534104706 -3600 -# Node ID aeb916c839c0f556dae96bb1136be760ccc19cfe -# Parent 1a5795e58fe216c1227a11d169dbe4c09c625d15 -Fixed problem with a fixed 'keys' homedir on slow/busy systems (see PR #24). - -diff --git a/test_gnupg.py b/test_gnupg.py ---- a/test_gnupg.py -+++ b/test_gnupg.py -@@ -173,11 +173,14 @@ - - class GPGTestCase(unittest.TestCase): - def setUp(self): -- hd = os.path.join(os.getcwd(), 'keys') -- if os.path.exists(hd): -- self.assertTrue(os.path.isdir(hd), -- "Not a directory: %s" % hd) -- shutil.rmtree(hd, ignore_errors=True) -+ if 'STATIC_TEST_HOMEDIR' not in os.environ: -+ hd = tempfile.mkdtemp(prefix='keys-') -+ else: -+ hd = os.path.join(os.getcwd(), 'keys') -+ if os.path.exists(hd): -+ self.assertTrue(os.path.isdir(hd), -+ "Not a directory: %s" % hd) -+ shutil.rmtree(hd, ignore_errors=True) - prepare_homedir(hd) - self.homedir = hd - self.gpg = gpg = gnupg.GPG(gnupghome=hd, gpgbinary=GPGBINARY) -@@ -193,6 +196,10 @@ - data_file.write(os.urandom(5120 * 1024)) - data_file.close() - -+ def tearDown(self): -+ if 'STATIC_TEST_HOMEDIR' not in os.environ: -+ shutil.rmtree(self.homedir, ignore_errors=True) -+ - def test_environment(self): - "Test the environment by ensuring that setup worked" - hd = self.homedir -@@ -373,7 +380,7 @@ - # and the keyring file name has changed. - pkn = 'pubring.kbx' - skn = None -- hd = os.path.join(os.getcwd(), 'keys') -+ hd = self.homedir - if os.name == 'posix': - pkn = os.path.join(hd, pkn) - if skn: diff --git a/dev-python/python-gnupg/python-gnupg-0.4.0.ebuild b/dev-python/python-gnupg/python-gnupg-0.4.0.ebuild deleted file mode 100644 index 896d81c3a1fa..000000000000 --- a/dev-python/python-gnupg/python-gnupg-0.4.0.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python{2_7,3_5} pypy ) - -inherit distutils-r1 - -DESCRIPTION="Python wrapper for GNU Privacy Guard" -HOMEPAGE="https://pythonhosted.org/python-gnupg/ https://github.com/vsajip/python-gnupg/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" - -RDEPEND="app-crypt/gnupg" -DEPEND="${RDEPEND}" - -# They hung. We haven't figured out why yet. -RESTRICT="test" - -python_test() { - # Note; 1 test fails under pypy only - "${PYTHON}" test_gnupg.py || die "Tests fail with ${EPYTHON}" -} diff --git a/dev-python/python-gnupg/python-gnupg-0.4.1.ebuild b/dev-python/python-gnupg/python-gnupg-0.4.1.ebuild deleted file mode 100644 index 9c2d9eda0570..000000000000 --- a/dev-python/python-gnupg/python-gnupg-0.4.1.ebuild +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python{2_7,3_5,3_6} pypy ) - -inherit distutils-r1 - -DESCRIPTION="Python wrapper for GNU Privacy Guard" -HOMEPAGE="https://pythonhosted.org/python-gnupg/ https://github.com/vsajip/python-gnupg/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" - -RDEPEND="app-crypt/gnupg" -DEPEND="${RDEPEND}" - -# Tests are still hanging. -RESTRICT="test" - -python_test() { - # Note; 1 test fails under pypy only - "${PYTHON}" test_gnupg.py || die "Tests fail with ${EPYTHON}" -} diff --git a/dev-python/python-gnupg/python-gnupg-0.4.3.ebuild b/dev-python/python-gnupg/python-gnupg-0.4.3.ebuild deleted file mode 100644 index 5eaa270034b5..000000000000 --- a/dev-python/python-gnupg/python-gnupg-0.4.3.ebuild +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -PYTHON_COMPAT=( pypy{,3} python2_7 python3_{5,6,7} ) - -inherit distutils-r1 - -DESCRIPTION="A Python wrapper for GnuPG" -HOMEPAGE="https://bitbucket.org/vinay.sajip/python-gnupg - https://pypi.org/project/python-gnupg/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86" -LICENSE="BSD" -SLOT="0" - -RDEPEND="app-crypt/gnupg" -DEPEND="${RDEPEND}" - -PATCHES=( - "${FILESDIR}"/${P}-skip_network_needing_test.patch - "${FILESDIR}"/${P}-use_seperate_keys_directory.patch -) - -python_test() { - # NO_EXTERNAL_TESTS must be enabled, - # to disable all tests, which need internet access. - NO_EXTERNAL_TESTS=1 "${PYTHON}" test_gnupg.py || die "Tests failed with ${EPYTHON}" -} diff --git a/dev-python/python-gnupg/python-gnupg-0.4.5.ebuild b/dev-python/python-gnupg/python-gnupg-0.4.5.ebuild new file mode 100644 index 000000000000..7d18793f2bc1 --- /dev/null +++ b/dev-python/python-gnupg/python-gnupg-0.4.5.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS="no" +PYTHON_COMPAT=( pypy3 python2_7 python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="A Python wrapper for GnuPG" +HOMEPAGE=" + https://bitbucket.org/vinay.sajip/python-gnupg + https://pypi.org/project/python-gnupg/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86" +LICENSE="BSD" +SLOT="0" + +RDEPEND="app-crypt/gnupg" +DEPEND="${RDEPEND}" + +python_test() { + # NO_EXTERNAL_TESTS must be enabled, + # to disable all tests, which need internet access. + NO_EXTERNAL_TESTS=1 "${PYTHON}" test_gnupg.py || die "Tests failed with ${EPYTHON}" +} -- cgit v1.2.3