diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-15 14:57:03 +0100 |
commit | d18bf1e01b65ee4bf0c804e2843b282d3d4e5d7c (patch) | |
tree | 4a95cbc6ffdf13bad6ecbc7f8d5af99631984123 /dev-python/future | |
parent | e748ba9741f6540f4675c23e3e37b73e822c13a4 (diff) |
gentoo resync : 15.06.2021
Diffstat (limited to 'dev-python/future')
-rw-r--r-- | dev-python/future/Manifest | 3 | ||||
-rw-r--r-- | dev-python/future/files/future-0.18.2-py39-fileurl.patch | 22 | ||||
-rw-r--r-- | dev-python/future/future-0.18.2-r1.ebuild | 12 |
3 files changed, 32 insertions, 5 deletions
diff --git a/dev-python/future/Manifest b/dev-python/future/Manifest index 69fb31e2621a..796120c2b0a2 100644 --- a/dev-python/future/Manifest +++ b/dev-python/future/Manifest @@ -1,5 +1,6 @@ +AUX future-0.18.2-py39-fileurl.patch 1005 BLAKE2B 9446c90649e5c06c1d603041c07e81ca96ea982fcf6ac9d7aaf48141015574ca2f81bd4da02c994e41ce96ef2e37290ae45f4ec70e332632e7086d08ce2feca0 SHA512 7d469a212b36828d20f65964aa52db30ab2c82f92b4411d39de054ba6ea7b7860413609b426f3f30dcc715be517e25e99f2b8afc05cc629c9a8e149fee2421b4 AUX future-0.18.2-py39.patch 2789 BLAKE2B db6c0cb0a030d166f01b95721e560d346f8a80ec63f81c58e5fca663f975b8f8f771d169742a421c34c08b0de01069bb5455b5fafdab440af6e73746df0bb24c SHA512 7bb140d526d2e728d5a988898977e8bf87934f68c42a38f97717b3e5fc040ddc736cdb2b366a8dbbb95c857bffee9f448ff1883dff9c61cb46582d3a01aad65f AUX future-0.18.2-tests.patch 11773 BLAKE2B e2b9321ab2a04e4567c312beaccd23886c87f8b78c1de5d480205181a68b77d8c8b1582a57f43e510d5cd3ecc54252bb85130fe6d7e82756c9f1db11263fdf7b SHA512 d884d6b4e320a6e2aeca2c0c46576d9b0fd0d31aaa6f8f9a79f2007ecbc949f1393aa0b9254f0c51616ca4e8d3fb3f11d828879e4e8c01549acd4ecf04e2cf68 DIST future-0.18.2.tar.gz 829220 BLAKE2B 68574b589bf54aa8dacbd162a54885589faa32829ccf212f50de5bf036ebd8b9aba0c13e63e80d34e507cc0dae4d8d3d47fea33433b17d2c2e6dbf6c37f66d8f SHA512 91c025f7d94bcdf93df838fab67053165a414fc84e8496f92ecbb910dd55f6b6af5e360bbd051444066880c5a6877e75157bd95e150ead46e5c605930dfc50f2 -EBUILD future-0.18.2-r1.ebuild 1000 BLAKE2B 763bb3d8eee48499de30e062149abce8eca1b367864bbe748c0321acc4db6a2197f6cd552f6768d7180cd5ce89ca06dde8fb2c6dea8cb47d914cbfe0adccdc23 SHA512 f6620feebeefeef6c5779e8ce60497ba82141013a49b43e0aa49858224ec1565b614dafcb2c20fc7bf1a2cebae640b7e297c2921a894adaa2ee91c6fc34b0ef7 +EBUILD future-0.18.2-r1.ebuild 1006 BLAKE2B 5400f45c45636c828fb2abfd3c657e15a754db153f4d2372dfb079cdd2ea4e1825937df2c756b01f80f6940f410b1ff214028772ac9efd606bcb3faa74b71c1d SHA512 6758eaeac50d37a7964088bf8427ad95c447a4890155267ffc0a1c3637fa8b53aa36c0ba36895369ed6d43b98d80dfb6e6fbb2522e0af97c3f43219a7c511520 MISC metadata.xml 309 BLAKE2B aed48a59f4d7e6bcbbdda701092f113245a3492797c5fda1edd32812e124cfd84afdb08347b6bf7800131ca5d3f1630ec7f50356c4e97ac6095fafa0d500c23c SHA512 eaa309de211ffbffb38049c113cf6c5e11faf86ecf7baab4a02b831ca1fe6a57ab0fa442b7cc6922fd8cd8c5a812c71de00d8970ebb79fff36cb435893761673 diff --git a/dev-python/future/files/future-0.18.2-py39-fileurl.patch b/dev-python/future/files/future-0.18.2-py39-fileurl.patch new file mode 100644 index 000000000000..71ed088edcb5 --- /dev/null +++ b/dev-python/future/files/future-0.18.2-py39-fileurl.patch @@ -0,0 +1,22 @@ +diff --git a/tests/test_future/test_urllib_toplevel.py b/tests/test_future/test_urllib_toplevel.py +index 68bc4c9..923b2e8 100644 +--- a/tests/test_future/test_urllib_toplevel.py ++++ b/tests/test_future/test_urllib_toplevel.py +@@ -120,7 +120,7 @@ class urlopen_FileTests(unittest.TestCase): + finally: + f.close() + self.pathname = support.TESTFN +- self.returned_obj = urlopen("file:%s" % self.pathname) ++ self.returned_obj = urlopen("file:%s" % urllib_parse.quote(self.pathname)) + + def tearDown(self): + """Shut down the open object""" +@@ -167,7 +167,7 @@ class urlopen_FileTests(unittest.TestCase): + self.assertIsInstance(self.returned_obj.info(), email_message.Message) + + def test_geturl(self): +- self.assertEqual(self.returned_obj.geturl(), self.pathname) ++ self.assertEqual(self.returned_obj.geturl(), urllib_parse.quote(self.pathname)) + + def test_getcode(self): + self.assertIsNone(self.returned_obj.getcode()) diff --git a/dev-python/future/future-0.18.2-r1.ebuild b/dev-python/future/future-0.18.2-r1.ebuild index a959673b21e1..653a507983cb 100644 --- a/dev-python/future/future-0.18.2-r1.ebuild +++ b/dev-python/future/future-0.18.2-r1.ebuild @@ -2,9 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} pypy3 ) -DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{8..9} pypy3 ) inherit distutils-r1 DESCRIPTION="Easy, clean, reliable Python 2/3 compatibility" @@ -16,8 +15,12 @@ SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux" IUSE="doc" -# TODO: restore numpy when python2.7 is gone -#BDEPEND="test? ( dev-python/numpy[${PYTHON_USEDEP}] )" +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/numpy[${PYTHON_USEDEP}] + ' 'python*') + )" distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/sphinx-bootstrap-theme @@ -25,6 +28,7 @@ distutils_enable_sphinx docs dev-python/sphinx-bootstrap-theme PATCHES=( "${FILESDIR}"/${P}-tests.patch "${FILESDIR}"/${P}-py39.patch + "${FILESDIR}"/${P}-py39-fileurl.patch ) python_prepare_all() { |