diff options
Diffstat (limited to 'dev-python/treq')
-rw-r--r-- | dev-python/treq/Manifest | 9 | ||||
-rw-r--r-- | dev-python/treq/metadata.xml | 19 | ||||
-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 | ||||
-rw-r--r-- | dev-python/treq/treq-17.8.0.ebuild | 61 |
6 files changed, 236 insertions, 0 deletions
diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest new file mode 100644 index 000000000000..0f926bf16d83 --- /dev/null +++ b/dev-python/treq/Manifest @@ -0,0 +1,9 @@ +DIST treq-0.2.1.tar.gz 30954 BLAKE2B e7f97fea21c18821db2eba6c26f717cbd83297822e3e607c0a451bd5fc9be1d96200c9780857ac2aa2ce297a5bec681c54c4d3dc18ae3d8f391454e19e744e7e SHA512 d9236c395dca66d358fc9bb1b752e02a7d6335195235808452542de33145057c1c2e959658015b3c89c9a20c35b1a8edb752e151230e72edd313dde6cd6a4cac +DIST treq-16.12.0.tar.gz 43685 BLAKE2B 3d05c41eb0a471e912959546f7e7abf0d8986dcb28b0c36cf1cccfeefd600c3a7141f93650a1b6947665c2ee24cda02ecc8e4ed927b1fb3c36309e23edaea33a SHA512 9385ada8cdf88e608937c118c29506372d8d3a8e7dcdc54998461652f106e4ccca4d6fa0a3f14ff5d9312da7ea1e531a9e4b0772b694b8dbe03f456101d63cca +DIST treq-17.3.1.tar.gz 47380 BLAKE2B 61b51c46252629358c0ffaef7f4e7e2010e2d58c307461caf42982f8b6ad2714af57c37065bdd87a94d2b9e2fde150473b45116f2d8d270f783f20e1a8291020 SHA512 e52cccbfa663314e968b33c58a5be5782063b2d6313a4ee5a03df912146c6ca25abca82915f30791f865afd2c08bb04c9993d9204d876c7ec2b308c6e51cb821 +DIST treq-17.8.0.tar.gz 56439 BLAKE2B 3e39c84453793baf3107c38b656c8968e593845fc0d41035b558326ff947a9e17903ce33dee3157d2cb2f79ab3aa884ddebcd52e743cd6e1ad08a0de324cd6bc SHA512 62933a512fcc8b0e77333eb9268846ad17f4b44cf6ea317ada2565054100be3caf03bda0a1becd775ec85528fc2f5ddec33d23d3579cf484a3c6ba7c71c50a7f +EBUILD treq-0.2.1.ebuild 1035 BLAKE2B d7500eb9eceed48f7371482920a71246eab25bbf788be4f25fec1535b8ce88746b7b4edcfa742638206f3e24897bb1805993c4a897a90c7efa240f8475c75461 SHA512 cc3fba0a27c6823ed4552d8495af667a92eb9b10466689bc512066f564bd64334fb296009f2a9bb8b605145dbd97ac89d23d77be9febd0bc4373664657725955 +EBUILD treq-16.12.0.ebuild 1234 BLAKE2B ed1fea02471f90e1a01c2cfe93de1cc3cc654d43b3aacc3b93c9c9a985aa8aa6a984d6a995cc052e84d38d7fba0559af18d331dc11f256c699daa52386bdf252 SHA512 90b4f75a4fbf987d4bfcfa1cca804c7e5f7f7600ec9374fd0c2bd7a996f9e975738849d702b3e82f7e54ac2c42bae195b55b436fee078721ff30e358e42163d0 +EBUILD treq-17.3.1.ebuild 1535 BLAKE2B e016d92adafde94a04caa06ccafcf825969a36b5d30a601a080e5fa2b82e4a432ff74e3dfeb5b45428745d1f201f1af5736807e8a7e77557a25391e0d5960efc SHA512 6ab70cc3e4ed23ee7d0e705e15fd37f679176669892afcec863843c325aab2f1d1371b4fd7e2e543723b28266c142b034b50f3824403766fa3224d9cee4adb7a +EBUILD treq-17.8.0.ebuild 1646 BLAKE2B bb2b6f4c1e5a72218a7e76572f4ad13be6b701ca01c7473a85194809be2498c0a991972629f2ea9e645e01aefa42da2fed7759dd72deac34d06f703a54d6f823 SHA512 fc5f5c141bc10f18f2d397f82631792289ceaf97e7adcf9dcf015906ccdb8485db9b69aba1b911c6383c909a7a63931543c46a8d0e08956ad20a363a0c771f12 +MISC metadata.xml 651 BLAKE2B 4f61decc98382728f07f30be0ed88039223933a85bf5b838c40c9c47cc1828fd7ae742901b149f5bac870ca89e2485e126ccb195934f35848b0be19c3f5e0894 SHA512 ef37d01969116cb7c54e92840aba9ea8b1e70d49fc0ea512853ad3db2324289c331123f7a1b3026bf32daa2c8cad7c84e80eca189d3c2721329740017b6bba38 diff --git a/dev-python/treq/metadata.xml b/dev-python/treq/metadata.xml new file mode 100644 index 000000000000..7f773543abab --- /dev/null +++ b/dev-python/treq/metadata.xml @@ -0,0 +1,19 @@ +<?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> + </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..53062a932441 --- /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.org/project/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..699114716957 --- /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.org/project/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 +} diff --git a/dev-python/treq/treq-17.8.0.ebuild b/dev-python/treq/treq-17.8.0.ebuild new file mode 100644 index 000000000000..3a707df96e41 --- /dev/null +++ b/dev-python/treq/treq-17.8.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 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.org/project/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} + $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7) + 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}] + dev-python/httpbin[${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 +} |