From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E294B138331 for ; Fri, 7 Oct 2016 18:11:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C996821C07E; Fri, 7 Oct 2016 18:11:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9A5DD21C07E for ; Fri, 7 Oct 2016 18:11:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5A87C341405 for ; Fri, 7 Oct 2016 18:11:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6D3F8248A for ; Fri, 7 Oct 2016 18:11:28 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1475863870.74bbfed18d48ae0f067e3048baa9ff4fc8ae5285.dolsen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/hpack/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/hpack/Manifest dev-python/hpack/hpack-2.3.0.ebuild dev-python/hpack/metadata.xml X-VCS-Directories: dev-python/hpack/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 74bbfed18d48ae0f067e3048baa9ff4fc8ae5285 X-VCS-Branch: master Date: Fri, 7 Oct 2016 18:11:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0deb1e4a-16f9-4861-82fd-1a8107e03ae0 X-Archives-Hash: 2ef628f5de53e08c516c92e584ab0403 commit: 74bbfed18d48ae0f067e3048baa9ff4fc8ae5285 Author: Brian Dolbec gentoo org> AuthorDate: Fri Sep 30 22:53:13 2016 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Fri Oct 7 18:11:10 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74bbfed1 dev-python/hpack: New package, dependency for dev-python/hyper-h2 Also an indirect dependency of dev-python/twisted Package-Manager: portage-2.3.1 dev-python/hpack/Manifest | 1 + dev-python/hpack/hpack-2.3.0.ebuild | 52 +++++++++++++++++++++++++++++++++++++ dev-python/hpack/metadata.xml | 24 +++++++++++++++++ 3 files changed, 77 insertions(+) diff --git a/dev-python/hpack/Manifest b/dev-python/hpack/Manifest new file mode 100644 index 00000000..a74bd98 --- /dev/null +++ b/dev-python/hpack/Manifest @@ -0,0 +1 @@ +DIST hpack-2.3.0.tar.gz 41610 SHA256 51bd9aa8151efd190d70fe87991b1e3b79be0f93f0e34088fba2a8d34877a0a9 SHA512 a3d13da105482bb258ee3a2314b2629215028777f84127f71359f08819c96af088a3952bb0a74435472035d10ee6e3943cdad689a28f04cbc12cddcc4af9a8a7 WHIRLPOOL 8f47b6c2a78f915b009c35ecefa517486c27eb45f0b99834718152e14f9e934c23d52981c87b0c39af28fb9cb58d94e5eda07db2e999c37900b76b7aefd64b08 diff --git a/dev-python/hpack/hpack-2.3.0.ebuild b/dev-python/hpack/hpack-2.3.0.ebuild new file mode 100644 index 00000000..7bd3591 --- /dev/null +++ b/dev-python/hpack/hpack-2.3.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5} pypy) + +inherit distutils-r1 + +DESCRIPTION="Pure-Python HPACK header compression" +HOMEPAGE="http://python-hyper.org/hpack https://pypi.python.org/pypi/hpack" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND="" +DEPEND="${RDEPEND} + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + ) + test? ( + >=dev-python/pytest-2.9.2[${PYTHON_USEDEP}] + >=dev-python/pytest-cov-2.3.0[${PYTHON_USEDEP}] + >=dev-python/pytest-xdist-1.14.0[${PYTHON_USEDEP}] + >=dev-python/hypothesis-3.4.2[${PYTHON_USEDEP}] + ) +" + +python_prepare_all() { + # Remove a test that is not part of the mainstream tests + # Also, it's data directory is not included in the release + rm test/test_hpack_integration.py || die + distutils-r1_python_prepare_all +} + +python_compile_all(){ + use doc && emake -C docs html +} + +python_test() { + PYTHONPATH="${S}/test:${BUILD_DIR}/lib" \ + py.test -v hpack test/|| die + cd test +} + +python_install_all() { + use doc && HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/hpack/metadata.xml b/dev-python/hpack/metadata.xml new file mode 100644 index 00000000..e0b56ef --- /dev/null +++ b/dev-python/hpack/metadata.xml @@ -0,0 +1,24 @@ + + + + + dol-sen@gentoo.org + Primary maintainer + + + python@gentoo.org + Python + + + + cory@lukasa.co.uk + Cory Benfield + + hpack + + This module contains a pure-Python HTTP/2 header encoding + (HPACK) logic for use in Python programs that implement HTTP/2. It + also contains a compatibility layer that automatically enables the use + of nghttp2 if it’s available. + +