1 |
commit: 542604a4acedadc529e824459b06b864434a0c34 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 28 01:21:18 2016 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 28 01:26:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=542604a4 |
7 |
|
8 |
dev-python/hyper-h2: Version bump |
9 |
|
10 |
Add test IUSE and python_test(), but restrict tests due to |
11 |
missing files in the release tarball. |
12 |
Upstream bug: https://github.com/python-hyper/hyper-h2/issues/371 |
13 |
|
14 |
Package-Manager: portage-2.3.2_p3 |
15 |
|
16 |
dev-python/hyper-h2/Manifest | 1 + |
17 |
dev-python/hyper-h2/hyper-h2-2.5.0.ebuild | 47 +++++++++++++++++++++++++++++++ |
18 |
2 files changed, 48 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/hyper-h2/Manifest b/dev-python/hyper-h2/Manifest |
21 |
index ebdc53b..67cada9 100644 |
22 |
--- a/dev-python/hyper-h2/Manifest |
23 |
+++ b/dev-python/hyper-h2/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST hyper-h2-2.4.0.tar.gz 77440 SHA256 c673efad0b8ee3c3c604375dd5e0c3dbc74f3c4e0385dae120d22b7d6f6ec301 SHA512 76835d6c97d4aed515b460bdbbcb8aea1ea061a416386cadf66a0e9b3c213a9ffe67948ce49b922d99e1895615a03159aa6aed198857e1ce73eb734b8bd9a016 WHIRLPOOL 9a5c1d313f53ee842403c77a8324aa432ff3d04d3d3737f6f7da83e5ff85e51ea6794419fa8886368cf34d4a7be3ff3b7ed19eb13a74ef8318fad738a71b9ef4 |
26 |
DIST hyper-h2-2.4.1.tar.gz 78056 SHA256 a914161895f60a16d7049386c77f2eee72af7fd49b117856033906e16110c9f4 SHA512 f7a29350a3f31740acf6fc199fb5f3fa06d751abcfbf5a2742370c40c656417ccc659d49b9754e5faeb09ad121c362a478076af81325644d04473d56fc83b07a WHIRLPOOL 4917deb305cca78a6cc8fcfeb34e8f4ef8982c213edc7c3f242422e992d1105ccb151168ad7387fd53faca6061a693cf76f7cb3f91880470cd7bf03bb7a73b26 |
27 |
+DIST hyper-h2-2.5.0.tar.gz 92558 SHA256 6c1512798f2ec2f178b5eed80be3c5239145d23989a1ff3c7cc635ee679cc241 SHA512 f7141da1ce6bd7b27486a0f091c62fea6ccb6fad84bd97b024b611e4d76b7a056cee6a63c179268b324673671dd833981e00dc32c441f340f5c472828f6e62a2 WHIRLPOOL 5e7c5e8d5ab1491427abda81c8c133017cf0b35aaa2601b393c0a24844a7e7988efea1401a72ef08dca04d8e389c89a70272f13f48c90675a05aa9766afbcbb5 |
28 |
|
29 |
diff --git a/dev-python/hyper-h2/hyper-h2-2.5.0.ebuild b/dev-python/hyper-h2/hyper-h2-2.5.0.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000..25dd56c |
32 |
--- /dev/null |
33 |
+++ b/dev-python/hyper-h2/hyper-h2-2.5.0.ebuild |
34 |
@@ -0,0 +1,47 @@ |
35 |
+# Copyright 1999-2016 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI=6 |
40 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy) |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+MY_PN="h2" |
45 |
+ |
46 |
+DESCRIPTION="HTTP/2 State-Machine based protocol implementation" |
47 |
+HOMEPAGE="http://python-hyper.org/h2 https://pypi.python.org/pypi/h2" |
48 |
+SRC_URI="mirror://pypi/${P:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+IUSE="test" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ >=dev-python/hyperframe-4.0.1[${PYTHON_USEDEP}] |
57 |
+ <dev-python/hyperframe-5.0.0[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/hpack-2.2.0[${PYTHON_USEDEP}] |
59 |
+ <dev-python/hpack-3.0.0[${PYTHON_USEDEP}] |
60 |
+ $(python_gen_cond_dep '>=dev-python/enum34-1.0.4[${PYTHON_USEDEP}]' python2_7) |
61 |
+ $(python_gen_cond_dep '<dev-python/enum34-2.0.0[${PYTHON_USEDEP}]' python2_7) |
62 |
+" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ test? ( |
65 |
+ >=dev-python/pytest-2.9.2[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/pytest-cov-2.3.0[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/pytest-xdist-1.14.0[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}] |
69 |
+ ) |
70 |
+" |
71 |
+ |
72 |
+S=${WORKDIR}/${MY_PN}-${PV} |
73 |
+ |
74 |
+# missing files in tarball to run tests properly |
75 |
+# upstream issue: https://github.com/python-hyper/hyper-h2/issues/371 |
76 |
+RESTRICT=test |
77 |
+ |
78 |
+python_test() { |
79 |
+ PYTHONPATH="${S}/test:${BUILD_DIR}/lib" py.test -v || die "Tests failed under ${EPYTHON}" |
80 |
+ cd test |
81 |
+} |