summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2016-12-20 15:31:55 -0800
committerBrian Dolbec <dolsen@gentoo.org>2016-12-24 13:16:57 -0800
commitcc8fb03c58268f672edd560a99bfc57533a5e324 (patch)
treec70b477491c1b865bad6e961f4f3f82c861d943a /dev-python/treq
parentdev-python/incremental: New pkg, new dep of twisted, treq (diff)
downloadgentoo-cc8fb03c58268f672edd560a99bfc57533a5e324.tar.gz
gentoo-cc8fb03c58268f672edd560a99bfc57533a5e324.tar.bz2
gentoo-cc8fb03c58268f672edd560a99bfc57533a5e324.zip
dev-python/treq: Version bump, update metadata.xml
Add myself as maintainer, update all urls, (now part of twisted). Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-python/treq')
-rw-r--r--dev-python/treq/Manifest1
-rw-r--r--dev-python/treq/metadata.xml27
-rw-r--r--dev-python/treq/treq-16.12.0.ebuild48
3 files changed, 68 insertions, 8 deletions
diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest
index b8a8dc8871f1..0293e76a600a 100644
--- a/dev-python/treq/Manifest
+++ b/dev-python/treq/Manifest
@@ -1 +1,2 @@
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
diff --git a/dev-python/treq/metadata.xml b/dev-python/treq/metadata.xml
index 02edd31d056e..98f98cdfb726 100644
--- a/dev-python/treq/metadata.xml
+++ b/dev-python/treq/metadata.xml
@@ -1,12 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person">
- <email>ryao@gentoo.org</email>
- <name>Richard Yao</name>
- </maintainer>
- <upstream>
- <remote-id type="pypi">treq</remote-id>
- <remote-id type="github">dreid/treq</remote-id>
- </upstream>
+ <maintainer type="person">
+ <email>dolsen@gentoo.org</email>
+ <description>maintainer</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>ryao@gentoo.org</email>
+ <name>Richard Yao</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>hawkowl@twistedmatrix.com</email>
+ <name>Amber Brown</name>
+ </maintainer>
+ <remote-id type="pypi">Twisted</remote-id>
+ </upstream>
+ <longdescription>treq is an HTTP library inspired by requests but written
+ on top of Twisted's Agents. It provides a simple, higher level API for
+ making HTTP requests when using Twisted.
+ </longdescription>
</pkgmetadata>
diff --git a/dev-python/treq/treq-16.12.0.ebuild b/dev-python/treq/treq-16.12.0.ebuild
new file mode 100644
index 000000000000..bb0fcd3a6fbc
--- /dev/null
+++ b/dev-python/treq/treq-16.12.0.ebuild
@@ -0,0 +1,48 @@
+# 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} )
+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}]"
+
+RDEPEND="${COMMON_DEPEND}
+ dev-python/six[${PYTHON_USEDEP}]
+ >=dev-python/pyopenssl-0.15.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-16.0.0[crypt,${PYTHON_USEDEP}]
+ >=dev-python/requests-2.1.0[${PYTHON_USEDEP}]
+ >=dev-python/service_identity-14.0.0[${PYTHON_USEDEP}]
+ dev-python/incremental[${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
+}
+
+python_test() {
+ trial treq || die "Tests fail with ${EPYTHON}"
+}