summaryrefslogtreecommitdiff
path: root/dev-python/future
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/future
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/future')
-rw-r--r--dev-python/future/Manifest7
-rw-r--r--dev-python/future/files/future-0.15.2-fix-py35-test-failures.patch57
-rw-r--r--dev-python/future/future-0.15.2.ebuild23
-rw-r--r--dev-python/future/future-0.16.0.ebuild27
-rw-r--r--dev-python/future/metadata.xml11
5 files changed, 125 insertions, 0 deletions
diff --git a/dev-python/future/Manifest b/dev-python/future/Manifest
new file mode 100644
index 000000000000..2c938e77d63e
--- /dev/null
+++ b/dev-python/future/Manifest
@@ -0,0 +1,7 @@
+AUX future-0.15.2-fix-py35-test-failures.patch 2339 SHA256 563628f399342a6f5035b105f0cc1d56f7817025ddb20d065447c563719fcc85 SHA512 816a3d30461f6e0eed0106bc46952e3f6d98323d03ff3f212332871b7eaf7d3b9817ee2043110bd004152c4239bfa427d9ed74f1dc7166d41534ba0fc76ad055 WHIRLPOOL 65cd5db9c57e00545632df729c8613a975a63ad787caeaaf222d8a7ba72a3dfe75b11efddaff3fddf246ff771bf9053e3e6b9000a971d4c3cf7ab904777b4bc6
+DIST future-0.15.2.tar.gz 1583441 SHA256 3d3b193f20ca62ba7d8782589922878820d0a023b885882deec830adbf639b97 SHA512 24a0eaf70795efe1644b098c5abbcb0103d9172a5243721f0d26b1cbd108872b6c0616180da8f5507855ddfc7b26bb10a606a64e59d307d39042b346700f77ee WHIRLPOOL 557b53495033d4586dc0f34837cc7f0cab12fb770abda56049fd90b5bac3e36db561e185d86e8a08b153869f0f692ccf0b305f5edc20871edde487faa1b1fc4f
+DIST future-0.16.0.tar.gz 824484 SHA256 e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb SHA512 41c795cd1746a76df84de2da9fbc611fc6164322c1c712ec9e8a8626c21c2717cb4899ec150d95c5e0c037270e6bb71e099edd169609369aae619daea9df2e5f WHIRLPOOL 744ab7e228c608f49308609e18778e198804a7b6fea3a6285efcce14a4ea8d114e146e94779e084ac91916fb7cc560be2178806378305b40568d6bb7ff448951
+EBUILD future-0.15.2.ebuild 490 SHA256 ed6145f6dfab57b955480719c27e24179994720c5f8a292c654df9c16f714405 SHA512 2830318a18c7948a413e83401e33a7dc911791ae672288160c49159a96918d9556d7077746efed3467fda487a61b07da0d34d8adbb6c38ea7618cd8b21d48ac2 WHIRLPOOL fa5cf6ed8ecef08e69549139c3e48a606f9f6a8d8368f5e0e295130fbd6afb3daf9dd22801f80c93f73941e55d275c3a07144f37dcb6fb8dc7c290af2312ec34
+EBUILD future-0.16.0.ebuild 555 SHA256 aa31b591d1ba357e87dc802d018085fc1b00afda2eff4835a79466fa5647628b SHA512 b68848c3df188420e8a3826ed06d4e85994278e9214ae03945b801a7eeb0df3cb440852dd4b42f54c451cc2a7c2efa27e9bdb8164309794ff502b375d1113207 WHIRLPOOL f86de97d310fb9ad158534fce6ded08ec3427c208e7afa36506ee50be50b95c28bac3e74bb270235c9dbc073558b5bd3929fb63455f81a1364f19ce90faeaeeb
+MISC ChangeLog 1394 SHA256 98c7b22ba268a5ab6ef159456f749e2fe89f22c18ef62da04f14f2d2dd65a007 SHA512 4a6dbf4a22ff0af654f1b367ae6534b92c0fc3f37407c8de7be5514fc5a9de6abcc8380edaf6fb408a740ba074c731bc98b021ffeccbd44c9b344512185668ff WHIRLPOOL d627df34b85c5e6bfa05c058a0ff0846f2bec52ef7938c38e360a4e3a4c03a8412d5fde79c19f3ca0f35370574b087f23238c4392d199a8226f33f639a5d8085
+MISC metadata.xml 309 SHA256 b34d01a25d528ef86a4bccb18881a1623e31aac8a8df38c36371fa6f51fbf3e3 SHA512 e01e3b2733211e1eb6aaef4da19265c7165411a46fde4c2156118700c315bc2ad52cd87de1b90355741de77d91aa22eed5f9e5847d45186bf7138d246cd775e4 WHIRLPOOL 8f95c0410c7e60dec33b734054a4a7b57283b4e41794a7b24b006142457f97f4a5bf08ebf864e6433d5634a8e54a2f96183aea698cb5aea31be3d0ac3e01e924
diff --git a/dev-python/future/files/future-0.15.2-fix-py35-test-failures.patch b/dev-python/future/files/future-0.15.2-fix-py35-test-failures.patch
new file mode 100644
index 000000000000..8d8e5daccf10
--- /dev/null
+++ b/dev-python/future/files/future-0.15.2-fix-py35-test-failures.patch
@@ -0,0 +1,57 @@
+* Fix test failures on py3.5, backported from git, see also
+ https://github.com/PythonCharmers/python-future/issues/183
+* Fix unexpected test successes on py3.5, which are now correct
+
+--- a/tests/test_future/test_bytes.py
++++ b/tests/test_future/test_bytes.py
+@@ -10,6 +10,8 @@
+ from numbers import Integral
+ from future.tests.base import unittest, expectedFailurePY2
+
++import sys
++
+
+ TEST_UNICODE_STR = u'ℝεα∂@ßʟ℮ ☂ℯṧт υηḯ¢☺ḓ℮'
+ # Tk icon as a .gif:
+@@ -534,6 +536,8 @@
+ self.assertRaises(ValueError, bytes.maketrans, b'abc', b'xyzq')
+ self.assertRaises(TypeError, bytes.maketrans, 'abc', 'def')
+
++ @unittest.skipIf(sys.version_info[:2] == (3, 5),
++ 'Only works in Py3.5+')
+ @unittest.expectedFailure
+ def test_mod(self):
+ """
+@@ -551,6 +555,8 @@
+ a = b % (b'seventy-nine', 79)
+ self.assertEqual(a, b'seventy-nine / 100 = 79%')
+
++ @unittest.skipIf(sys.version_info[:2] == (3, 5),
++ 'Only works in Py3.5+')
+ @unittest.expectedFailure
+ def test_imod(self):
+ """
+--- a/tests/test_future/test_builtins.py
++++ b/tests/test_future/test_builtins.py
+@@ -525,11 +525,10 @@
+ self.assertRaises(ValueError, compile, 'print(42)\n', '<string>', 'badmode')
+ self.assertRaises(ValueError, compile, 'print(42)\n', '<string>', 'single', 0xff)
+ # Raises TypeError in Python < v3.5, ValueError in v3.5:
+- # self.assertRaises(TypeError, compile, chr(0), 'f', 'exec')
++ self.assertRaises((TypeError, ValueError), compile, chr(0), 'f', 'exec')
+ self.assertRaises(TypeError, compile, 'pass', '?', 'exec',
+ mode='eval', source='0', filename='tmp')
+ compile('print("\xe5")\n', '', 'exec')
+- self.assertRaises(TypeError, compile, chr(0), 'f', 'exec')
+ self.assertRaises(ValueError, compile, str('a = 1'), 'f', 'bad')
+
+ # test the optimize argument
+@@ -1287,7 +1286,7 @@
+ self.assertAlmostEqual(pow(-1, 1/3), 0.5 + 0.8660254037844386j)
+
+ # Raises TypeError in Python < v3.5, ValueError in v3.5:
+- # self.assertRaises(TypeError, pow, -1, -2, 3)
++ self.assertRaises((TypeError, ValueError), pow, -1, -2, 3)
+ self.assertRaises(ValueError, pow, 1, 2, 0)
+
+ self.assertRaises(TypeError, pow)
diff --git a/dev-python/future/future-0.15.2.ebuild b/dev-python/future/future-0.15.2.ebuild
new file mode 100644
index 000000000000..065b9adffcbb
--- /dev/null
+++ b/dev-python/future/future-0.15.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Easy, clean, reliable Python 2/3 compatibility"
+HOMEPAGE="http://python-future.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 x86"
+IUSE=""
+
+PATCHES=( "${FILESDIR}/${P}-fix-py35-test-failures.patch" )
+
+python_test() {
+ esetup.py test || die
+}
diff --git a/dev-python/future/future-0.16.0.ebuild b/dev-python/future/future-0.16.0.ebuild
new file mode 100644
index 000000000000..fb402928085e
--- /dev/null
+++ b/dev-python/future/future-0.16.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Easy, clean, reliable Python 2/3 compatibility"
+HOMEPAGE="http://python-future.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="test"
+
+DEPEND="
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+"
+
+python_test() {
+ py.test -v || die "Tests failed under ${EPYTHON}"
+}
diff --git a/dev-python/future/metadata.xml b/dev-python/future/metadata.xml
new file mode 100644
index 000000000000..c7fc9479ce4a
--- /dev/null
+++ b/dev-python/future/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">future</remote-id>
+ </upstream>
+</pkgmetadata>