dev-python/hpack: Version bump
authorBrian Dolbec <dolsen@gentoo.org>
Fri, 9 Jun 2017 16:45:32 +0000 (09:45 -0700)
committerBrian Dolbec <dolsen@gentoo.org>
Fri, 9 Jun 2017 18:18:45 +0000 (11:18 -0700)
Update HOMEPAGE

Package-Manager: Portage-2.3.6_p2, Repoman-2.3.2_p70

dev-python/hpack/Manifest
dev-python/hpack/hpack-2.3.0-r1.ebuild
dev-python/hpack/hpack-3.0.0.ebuild [new file with mode: 0644]

index a74bd98c2af1961a6d0a4e40bbf9578952e14de1..21c7ef9c83f93539a862376cf2c353b2e21238ff 100644 (file)
@@ -1 +1,2 @@
 DIST hpack-2.3.0.tar.gz 41610 SHA256 51bd9aa8151efd190d70fe87991b1e3b79be0f93f0e34088fba2a8d34877a0a9 SHA512 a3d13da105482bb258ee3a2314b2629215028777f84127f71359f08819c96af088a3952bb0a74435472035d10ee6e3943cdad689a28f04cbc12cddcc4af9a8a7 WHIRLPOOL 8f47b6c2a78f915b009c35ecefa517486c27eb45f0b99834718152e14f9e934c23d52981c87b0c39af28fb9cb58d94e5eda07db2e999c37900b76b7aefd64b08
+DIST hpack-3.0.0.tar.gz 5305971 SHA256 0f8f5f92cfa59f91804eabb237d4b18895f3e200e282c41cedf6cd11a4416daa SHA512 7b9cf5e643dff2a6454bfe419b797c8ed1a0fe6ec3b725d2696da5a820ab96fe87a64e600b1831c7024bd82616b155a0aa058301acb32172155b6538ba0a73c6 WHIRLPOOL 3252253a9f489d5bf4bc8ef243f576c99f5fa9a49d2767ca1e7f59ba15da1e00de3b083e6e64f69bb8c3c32bf27b177aaaad94b3cf1aba1c726d473d7b062403
index c668992919bb5f9ce79fcaa938dafe160e9a6b04..d4a79cf5156ac96f42f2039eacc971a7ab817167 100644 (file)
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy)
 inherit distutils-r1
 
 DESCRIPTION="Pure-Python HPACK header compression"
-HOMEPAGE="http://python-hyper.org/hpack https://pypi.python.org/pypi/hpack"
+HOMEPAGE="https://python-hyper.org/hpack/en/latest/ https://pypi.python.org/pypi/hpack"
 SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="MIT"
diff --git a/dev-python/hpack/hpack-3.0.0.ebuild b/dev-python/hpack/hpack-3.0.0.ebuild
new file mode 100644 (file)
index 0000000..67d5b02
--- /dev/null
@@ -0,0 +1,39 @@
+# 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} pypy)
+
+inherit distutils-r1
+
+DESCRIPTION="Pure-Python HPACK header compression"
+HOMEPAGE="https://python-hyper.org/hpack/en/latest/ https://pypi.python.org/pypi/hpack"
+SRC_URI="https://github.com/python-hyper/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+       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_test() {
+       PYTHONPATH="${S}/test:${BUILD_DIR}/lib" \
+               py.test -v hpack test/|| die
+       cd test
+}