diff options
Diffstat (limited to 'dev-python/treq')
-rw-r--r-- | dev-python/treq/Manifest | 9 | ||||
-rw-r--r-- | dev-python/treq/metadata.xml | 24 | ||||
-rw-r--r-- | dev-python/treq/treq-0.2.1.ebuild | 41 | ||||
-rw-r--r-- | dev-python/treq/treq-16.12.0.ebuild | 47 | ||||
-rw-r--r-- | dev-python/treq/treq-17.3.1.ebuild | 59 |
5 files changed, 180 insertions, 0 deletions
diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest new file mode 100644 index 000000000000..ca5dd27fb501 --- /dev/null +++ b/dev-python/treq/Manifest @@ -0,0 +1,9 @@ +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 +EBUILD treq-0.2.1.ebuild 1035 SHA256 bf5f16eebff19dc0c5360c73945e4a67fb99fe28615208f047255205da912b11 SHA512 cc3fba0a27c6823ed4552d8495af667a92eb9b10466689bc512066f564bd64334fb296009f2a9bb8b605145dbd97ac89d23d77be9febd0bc4373664657725955 WHIRLPOOL 44040ecd775fa4e9f4159a572be271421ce2f7b6e0690e64976dfa5d9c793414fa342edd8db1e116743f2e7ad2ad1d7bb43311a0625975309bc4e4e80be75e9f +EBUILD treq-16.12.0.ebuild 1237 SHA256 9f1ecd278e671c16a1fe60b260a132e49e26b7bbb03b11d283c28155b150ec41 SHA512 141a2c1f842dc350bdd03529a14975794b397c2cc5ddf7aa33870fb8d3f77c6b2f68273ff6f2c746ebcaa2d34a7d4656328522a8ac56fe310a9e5d3a8a98490a WHIRLPOOL 65d216eb092ee4c820b3c1b6a1a04adffee4973490db0c6a0566ff2ab0dd63298f485701e57962881ea251ff2e9aa935dfffb544b00d692d3a6dce9bde940c59 +EBUILD treq-17.3.1.ebuild 1538 SHA256 f1d01eaa6211995696b03e72e32f710157b0e32881db237c98208a34a2f65861 SHA512 ae623af527dce77ac380b4c74e29a43d308844196d63a8b040fca1d27f2a083ef3aa60010725026fa391d27d2e27f826eb2532dc99096cb67b0b18ee51899035 WHIRLPOOL 7df98a53c452164150441dc29e23712e729c8dae6a33aebdb91b057574c952e0b6b9e21a15023b108d004351d9caf0d61a8b5416d3bf72dcd8699f2b55115081 +MISC ChangeLog 2169 SHA256 5e4ed28a928e634959defe509aa1834fb97f7ea91b847538c7c1638fae49ab47 SHA512 fe54660b2b1145902b207fe08cfbbf5452533f175e7fdd240e853cec96b21eaa40112ba9c3438208c99ee9d36dfdc23166e7783723f30e74a9306366695c4dec WHIRLPOOL b81240bc6227482652893246993eff4fdbfe1607141a7130c8e8b1f367d2c5396b2ebc255d0ff4866a1084bb02c4d0c5069e212f024ff1cda2d4d711d62ccad3 +MISC ChangeLog-2015 820 SHA256 49c314d52f130f8fac524498b065e7577e79230b1b831b9d2d75e8038814adfc SHA512 cfdf44608ab4b77d652f722f563700a8be9bc7598bbdb519f8fc1bb9b14bf34442ff2c2150f4d426beb57ec3496a5cc014f8927d7c91791cb765ad9b98133e2d WHIRLPOOL a3b7579875ba1a8a9a93ccb1b159ad0ba30bdf9cda20341599f7c323f8952c127550b7f0dd1b8a3056d2f068698899c3580fa0d2cb3e05730319bbe754ddaa5a +MISC metadata.xml 794 SHA256 965b292c8e75f772619f6a8b52504a571e36e9eb29508b5288d5579e17555a60 SHA512 091cfb4023e79ca37bc11714468f913b807090ecb0e0e009fab348ac9864b4906ae57c32eeade3ce8732bd472176553221e86d9fcc92db45e75b34f33778c83d WHIRLPOOL be85827e0e537029671a4c48a0e45791cb7b668b596596143a7fc9af665fdcef7997fa47b996c2caa7d23e68a61d2d03ba3c375afd87a12fc229f8b4de1896ce diff --git a/dev-python/treq/metadata.xml b/dev-python/treq/metadata.xml new file mode 100644 index 000000000000..b66eed0121c2 --- /dev/null +++ b/dev-python/treq/metadata.xml @@ -0,0 +1,24 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <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">treq</remote-id> + <remote-id type="github">twisted/treq</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-0.2.1.ebuild b/dev-python/treq/treq-0.2.1.ebuild new file mode 100644 index 000000000000..d200c5e21af5 --- /dev/null +++ b/dev-python/treq/treq-0.2.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit distutils-r1 + +DESCRIPTION="Python requests like API built on top of Twisted's HTTP client." +HOMEPAGE="https://github.com/dreid/${PN}" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc test" + +COMMON_DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +RDEPEND="${COMMON_DEPEND} + >=dev-python/pyopenssl-0.11[${PYTHON_USEDEP}] + >=dev-python/twisted-core-12.1.0[${PYTHON_USEDEP}] + >=dev-python/twisted-web-12.1.0[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/service_identity[${PYTHON_USEDEP}]" + +DEPEND="${COMMON_DEPEND} + doc? ( dev-python/sphinx + ${RDEPEND} ) + test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +python_compile_all() { + use doc && emake -C "${S}/docs" html +} + +python_install_all() { + use doc && dohtml -r "${S}/docs/_build/html/"* +} + +python_test() { + trial treq || die "Tests fail with ${EPYTHON}" +} 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..bcac6de9fb0d --- /dev/null +++ b/dev-python/treq/treq-16.12.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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}" +} diff --git a/dev-python/treq/treq-17.3.1.ebuild b/dev-python/treq/treq-17.3.1.ebuild new file mode 100644 index 000000000000..f5efa5c167a2 --- /dev/null +++ b/dev-python/treq/treq-17.3.1.ebuild @@ -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 +} |