diff options
Diffstat (limited to 'dev-python/future')
-rw-r--r-- | dev-python/future/Manifest | 5 | ||||
-rw-r--r-- | dev-python/future/files/future-0.18.2-py3.10.patch | 29 | ||||
-rw-r--r-- | dev-python/future/future-0.18.2-r1.ebuild | 16 | ||||
-rw-r--r-- | dev-python/future/metadata.xml | 2 |
4 files changed, 41 insertions, 11 deletions
diff --git a/dev-python/future/Manifest b/dev-python/future/Manifest index 796120c2b0a2..734077ac44f9 100644 --- a/dev-python/future/Manifest +++ b/dev-python/future/Manifest @@ -1,6 +1,7 @@ +AUX future-0.18.2-py3.10.patch 850 BLAKE2B 79c51778686c03a0b2fa6ed084b38039d9e5c14312cbf534da51a9da66e8fb50f0b619912414439f9975db43d5686e80150e82642d64963d16384fce339a09d4 SHA512 438e7092c4e9ece575e1d4cb341e52e45d6506fed348511266b7a583731516ad5e5eac43bc8b81ff7a24e29a8495612f5bbcb0984f6e428dee2b7dcfbf241ae2 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 1006 BLAKE2B 5400f45c45636c828fb2abfd3c657e15a754db153f4d2372dfb079cdd2ea4e1825937df2c756b01f80f6940f410b1ff214028772ac9efd606bcb3faa74b71c1d SHA512 6758eaeac50d37a7964088bf8427ad95c447a4890155267ffc0a1c3637fa8b53aa36c0ba36895369ed6d43b98d80dfb6e6fbb2522e0af97c3f43219a7c511520 -MISC metadata.xml 309 BLAKE2B aed48a59f4d7e6bcbbdda701092f113245a3492797c5fda1edd32812e124cfd84afdb08347b6bf7800131ca5d3f1630ec7f50356c4e97ac6095fafa0d500c23c SHA512 eaa309de211ffbffb38049c113cf6c5e11faf86ecf7baab4a02b831ca1fe6a57ab0fa442b7cc6922fd8cd8c5a812c71de00d8970ebb79fff36cb435893761673 +EBUILD future-0.18.2-r1.ebuild 1105 BLAKE2B 028d634ef4e0ef04cb4754371a0771452ae09fd2e194dac70c61e57e3327ccc37508a9b857416dce4f71cf367f793e32dcad7f8c1242c3b8bfd3a2fa4c49176c SHA512 907581c93b1c1069be123a8d0670fa054e4ba290c0d7b24415592c059749936c2829134890d942015d953a948ea6af8c02aa8165ebab645afa8aeb5e9040d5ec +MISC metadata.xml 401 BLAKE2B 618201f70a63da5999172ee7a19d45d4e503d59f5ad46708b419013f97997c6094e1a484ab7c5304ee6f423ec4feda9c8f83eae09cde5f127ad64083418ed85a SHA512 c94e63f9c6da5ecabbcd63f745f0809e3f1e961f339d9ea46602ae8dd476a6718a2299cbd5b30da34bd6e4d8eeede09ac10d5226b83c520b935cad349d547d67 diff --git a/dev-python/future/files/future-0.18.2-py3.10.patch b/dev-python/future/files/future-0.18.2-py3.10.patch new file mode 100644 index 000000000000..65cbc8e7a40d --- /dev/null +++ b/dev-python/future/files/future-0.18.2-py3.10.patch @@ -0,0 +1,29 @@ +From ca1362a4250b7124d9ae03506eb80a767f06e282 Mon Sep 17 00:00:00 2001 +From: Arthur Zamarin <arthurzam@gentoo.org> +Date: Fri, 20 Aug 2021 10:15:59 +0300 +Subject: [PATCH] Fix for Python3.10 + +Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> +--- + src/future/moves/test/support.py | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/future/moves/test/support.py b/src/future/moves/test/support.py +index e9aa0f4..4ae2ffd 100644 +--- a/src/future/moves/test/support.py ++++ b/src/future/moves/test/support.py +@@ -3,6 +3,11 @@ from future.standard_library import suspend_hooks + from future.utils import PY3 + + if PY3: ++ try: ++ from test.support.os_helper import * ++ from test.support.warnings_helper import * ++ except ImportError: ++ pass + from test.support import * + else: + __future_module__ = True +-- +2.33.0 + diff --git a/dev-python/future/future-0.18.2-r1.ebuild b/dev-python/future/future-0.18.2-r1.ebuild index 653a507983cb..ab4b1b6f3c42 100644 --- a/dev-python/future/future-0.18.2-r1.ebuild +++ b/dev-python/future/future-0.18.2-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{8..9} pypy3 ) +PYTHON_COMPAT=( python3_{8..10} pypy3 ) inherit distutils-r1 DESCRIPTION="Easy, clean, reliable Python 2/3 compatibility" @@ -13,7 +13,6 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux" -IUSE="doc" BDEPEND=" test? ( @@ -29,13 +28,12 @@ PATCHES=( "${FILESDIR}"/${P}-tests.patch "${FILESDIR}"/${P}-py39.patch "${FILESDIR}"/${P}-py39-fileurl.patch + "${FILESDIR}"/${P}-py3.10.patch ) -python_prepare_all() { +EPYTEST_DESELECT=( # tests requiring network access - rm tests/test_future/test_requests.py || die - sed -i -e 's:test.*request_http:_&:' \ - tests/test_future/test_standard_library.py || die - - distutils-r1_python_prepare_all -} + tests/test_future/test_requests.py + tests/test_future/test_standard_library.py::TestStandardLibraryReorganization::test_moves_urllib_request_http + tests/test_future/test_standard_library.py::TestStandardLibraryReorganization::test_urllib_request_http +) diff --git a/dev-python/future/metadata.xml b/dev-python/future/metadata.xml index a1c88b13d359..96f377aab8aa 100644 --- a/dev-python/future/metadata.xml +++ b/dev-python/future/metadata.xml @@ -5,7 +5,9 @@ <email>python@gentoo.org</email> <name>Python</name> </maintainer> + <stabilize-allarches/> <upstream> <remote-id type="pypi">future</remote-id> + <remote-id type="github">PythonCharmers/python-future</remote-id> </upstream> </pkgmetadata> |