Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hpack/
Date: Fri, 07 Oct 2016 18:11:35
Message-Id: 1475863870.74bbfed18d48ae0f067e3048baa9ff4fc8ae5285.dolsen@gentoo
1 commit: 74bbfed18d48ae0f067e3048baa9ff4fc8ae5285
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 22:53:13 2016 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 7 18:11:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74bbfed1
7
8 dev-python/hpack: New package, dependency for dev-python/hyper-h2
9
10 Also an indirect dependency of dev-python/twisted
11
12 Package-Manager: portage-2.3.1
13
14 dev-python/hpack/Manifest | 1 +
15 dev-python/hpack/hpack-2.3.0.ebuild | 52 +++++++++++++++++++++++++++++++++++++
16 dev-python/hpack/metadata.xml | 24 +++++++++++++++++
17 3 files changed, 77 insertions(+)
18
19 diff --git a/dev-python/hpack/Manifest b/dev-python/hpack/Manifest
20 new file mode 100644
21 index 00000000..a74bd98
22 --- /dev/null
23 +++ b/dev-python/hpack/Manifest
24 @@ -0,0 +1 @@
25 +DIST hpack-2.3.0.tar.gz 41610 SHA256 51bd9aa8151efd190d70fe87991b1e3b79be0f93f0e34088fba2a8d34877a0a9 SHA512 a3d13da105482bb258ee3a2314b2629215028777f84127f71359f08819c96af088a3952bb0a74435472035d10ee6e3943cdad689a28f04cbc12cddcc4af9a8a7 WHIRLPOOL 8f47b6c2a78f915b009c35ecefa517486c27eb45f0b99834718152e14f9e934c23d52981c87b0c39af28fb9cb58d94e5eda07db2e999c37900b76b7aefd64b08
26
27 diff --git a/dev-python/hpack/hpack-2.3.0.ebuild b/dev-python/hpack/hpack-2.3.0.ebuild
28 new file mode 100644
29 index 00000000..7bd3591
30 --- /dev/null
31 +++ b/dev-python/hpack/hpack-2.3.0.ebuild
32 @@ -0,0 +1,52 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +PYTHON_COMPAT=( python2_7 python3_{4,5} pypy)
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Pure-Python HPACK header compression"
43 +HOMEPAGE="http://python-hyper.org/hpack https://pypi.python.org/pypi/hpack"
44 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="doc test"
50 +
51 +RDEPEND=""
52 +DEPEND="${RDEPEND}
53 + doc? (
54 + dev-python/sphinx[${PYTHON_USEDEP}]
55 + )
56 + test? (
57 + >=dev-python/pytest-2.9.2[${PYTHON_USEDEP}]
58 + >=dev-python/pytest-cov-2.3.0[${PYTHON_USEDEP}]
59 + >=dev-python/pytest-xdist-1.14.0[${PYTHON_USEDEP}]
60 + >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}]
61 + )
62 +"
63 +
64 +python_prepare_all() {
65 + # Remove a test that is not part of the mainstream tests
66 + # Also, it's data directory is not included in the release
67 + rm test/test_hpack_integration.py || die
68 + distutils-r1_python_prepare_all
69 +}
70 +
71 +python_compile_all(){
72 + use doc && emake -C docs html
73 +}
74 +
75 +python_test() {
76 + PYTHONPATH="${S}/test:${BUILD_DIR}/lib" \
77 + py.test -v hpack test/|| die
78 + cd test
79 +}
80 +
81 +python_install_all() {
82 + use doc && HTML_DOCS=( docs/_build/html/. )
83 + distutils-r1_python_install_all
84 +}
85
86 diff --git a/dev-python/hpack/metadata.xml b/dev-python/hpack/metadata.xml
87 new file mode 100644
88 index 00000000..e0b56ef
89 --- /dev/null
90 +++ b/dev-python/hpack/metadata.xml
91 @@ -0,0 +1,24 @@
92 +<?xml version="1.0" encoding="UTF-8"?>
93 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
94 +<pkgmetadata>
95 + <maintainer type="person">
96 + <email>dol-sen@g.o</email>
97 + <description>Primary maintainer</description>
98 + </maintainer>
99 + <maintainer type="project">
100 + <email>python@g.o</email>
101 + <name>Python</name>
102 + </maintainer>
103 + <upstream>
104 + <maintainer>
105 + <email>cory@×××××××××.uk</email>
106 + <name>Cory Benfield</name>
107 + </maintainer>
108 + <remote-id type="pypi">hpack</remote-id>
109 + </upstream>
110 + <longdescription>This module contains a pure-Python HTTP/2 header encoding
111 + (HPACK) logic for use in Python programs that implement HTTP/2. It
112 + also contains a compatibility layer that automatically enables the use
113 + of nghttp2 if it’s available.
114 + </longdescription>
115 +</pkgmetadata>