dev-python/treq: Version bump

Package-Manager: Portage-2.3.5, Repoman-2.3.2_p30
This commit is contained in:
Brian Dolbec
2017-03-28 17:01:30 -07:00
parent f8af193293
commit 66b12cc146
2 changed files with 60 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST treq-0.2.1.tar.gz 30954 SHA256 487b9a48f15c1bc482b9be694ad436d70ecdc7a9f0fd3aaf02a30b7f547d9b9d SHA512 d9236c395dca66d358fc9bb1b752e02a7d6335195235808452542de33145057c1c2e959658015b3c89c9a20c35b1a8edb752e151230e72edd313dde6cd6a4cac WHIRLPOOL 2d9b4d5bbf6c8a274d43be6c92f26b4158cd4844074f84d5cd1ef09f49e3ee41454b1b7874074ec3a8c8617a299ddf6d8df6a12d41cd660a188811ae92a44573
DIST treq-16.12.0.tar.gz 43685 SHA256 b008edc81157969ad2bf23bece083adedb0adf249368a3896bb5ac9a871b91a9 SHA512 9385ada8cdf88e608937c118c29506372d8d3a8e7dcdc54998461652f106e4ccca4d6fa0a3f14ff5d9312da7ea1e531a9e4b0772b694b8dbe03f456101d63cca WHIRLPOOL 99abeea5c611712b5acad07c93204d29461177c29091d4ab34e5bc47e2ad393c76fbedc2bff330761692212ebec28bff1b70ffbcea02e1b5e22d848af3166727
DIST treq-17.3.1.tar.gz 47380 SHA256 313af6dedecfdde2750968dc17653b6147cf2340b3479d70031cf741f5be0cf6 SHA512 e52cccbfa663314e968b33c58a5be5782063b2d6313a4ee5a03df912146c6ca25abca82915f30791f865afd2c08bb04c9993d9204d876c7ec2b308c6e51cb821 WHIRLPOOL 0f5f9c8910f81b1e704e55ce6f3ee933793ceb7c7b10ac0827e5fc4c0bd4791fdfee709fe2239b2d096dd7e1fb98315286839e648dc67b940cb1aabbb1b61e51

View File

@@ -0,0 +1,59 @@
# 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="A requests-like API built on top of twisted.web's Agent"
HOMEPAGE="https://github.com/twisted/treq https://pypi.python.org/pypi/treq"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
COMMON_DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/incremental[${PYTHON_USEDEP}]
"
RDEPEND="${COMMON_DEPEND}
dev-python/six[${PYTHON_USEDEP}]
>=dev-python/twisted-16.4.0[crypt,${PYTHON_USEDEP}]
>=dev-python/requests-2.1.0[${PYTHON_USEDEP}]
dev-python/attrs[${PYTHON_USEDEP}]
"
DEPEND="${COMMON_DEPEND}
doc? ( dev-python/sphinx
${RDEPEND} )
test? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pyflakes[${PYTHON_USEDEP}]
dev-python/pep8[${PYTHON_USEDEP}]
)"
python_compile_all() {
use doc && emake -C "${S}/docs" html
}
python_install_all() {
use doc && dohtml -r "${S}/docs/_build/html/"*
distutils-r1_python_install_all
}
test_instructions(){
ewarn "The 'test' USE flag and FEATURE only ensures that the correct"
ewarn "dependenciess are installed for this package."
ewarn "Please run eg:"
ewarn "$ python3.4 /usr/bin/trial treq"
ewarn "as a user for each of the python versions it is installed to"
ewarn "to correctly test this package."
}
python_test() {
# Tests fail when run via emerge
# they need proper network access
test_instructions
}