diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-06-10 13:39:12 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-06-10 13:39:12 +0000 |
| commit | 1f81933683efd5b2bf82ee88eaa0be9bd0b58330 (patch) | |
| tree | 11c3ab6af7782c04d26566116fc8d4f6453d28be /dev-python/future | |
| parent | c4a445bb27dec293afdaa6aef479b3ad3880dc48 (diff) | |
| download | baldeagleos-repo-1f81933683efd5b2bf82ee88eaa0be9bd0b58330.tar.gz baldeagleos-repo-1f81933683efd5b2bf82ee88eaa0be9bd0b58330.tar.xz baldeagleos-repo-1f81933683efd5b2bf82ee88eaa0be9bd0b58330.zip | |
Adding metadata
Diffstat (limited to 'dev-python/future')
| -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 |
2 files changed, 30 insertions, 4 deletions
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 f8deb12bcf79..cea7fbef06cf 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_{6,7,8,9,10} pypy3 ) -DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9,10} 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() { |
