diff options
Diffstat (limited to 'dev-python/treq')
-rw-r--r-- | dev-python/treq/Manifest | 4 | ||||
-rw-r--r-- | dev-python/treq/metadata.xml | 5 | ||||
-rw-r--r-- | dev-python/treq/treq-20.4.1.ebuild | 63 |
3 files changed, 70 insertions, 2 deletions
diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest index 1daa286e4bef..92f04c449460 100644 --- a/dev-python/treq/Manifest +++ b/dev-python/treq/Manifest @@ -1,3 +1,5 @@ DIST treq-17.8.0.tar.gz 56439 BLAKE2B 3e39c84453793baf3107c38b656c8968e593845fc0d41035b558326ff947a9e17903ce33dee3157d2cb2f79ab3aa884ddebcd52e743cd6e1ad08a0de324cd6bc SHA512 62933a512fcc8b0e77333eb9268846ad17f4b44cf6ea317ada2565054100be3caf03bda0a1becd775ec85528fc2f5ddec33d23d3579cf484a3c6ba7c71c50a7f +DIST treq-20.4.1.tar.gz 59116 BLAKE2B 1370748d8bde407a8802d54786b45fbbc65525efba14cd5a33d741573b9fca7b36629deea65672669c4da45347bb40d975a063430ffd18f50d5ef896ce6dae66 SHA512 ca24ca7ad6bcf3fe6cba490d05eea4d71727a84bb2caf0a019edc01f91f7c25d87dc8208fc7cc816d18ef42db4dc66884475f0baa6b2cf39714e4422d0d67d3b EBUILD treq-17.8.0.ebuild 1589 BLAKE2B bc2c3e2d713dd9d6b1e0d7067af164b10e4c1e0c13492003b1cce5d2106dbe0ee9a2292a2ac6144cd6e384d5fa08d328cb49dd0e1e2f44e7f199a67cdb7bf5e0 SHA512 6ee0ba3e5a6f1415710c2302b2341adf72e7d9360d396c1ead699e1a7986fc11c1587231f6215899ac9eef201966d58f30dbba5970bb9a041b9d784a4443cc13 -MISC metadata.xml 601 BLAKE2B 1abd105a142f5eba9c335cc1ed8fb97aacd796ad9e42e8c8c04438a9b6830ef3e9675b3bfddb6677f6e9b51c61038954ab1ac29cfdb81f8c05259d95bbdc7ba7 SHA512 e4092ac535738c5c82e5dab29a0a3faa017853011013bc4f35b9d9425c2c92c1f092fdcf7236644ac955b5b9509fafd1adfaf04fb64439bef2b3d155f3b770c8 +EBUILD treq-20.4.1.ebuild 1553 BLAKE2B 17c437ce8dcb71c013e710abafb805b36151b1d729369871ae94716b0cc1c3e187a9d991e0be90e6db087899e45e02bb1ea9f0c0811da0d6c4d459d6324a0ca5 SHA512 dc515b505296adfa0ae4bd0064eda47fbd0cf2310866ddc9ea5b6ab72aef30bbd666b367b28a6e385fc90d552459920d5bf6b29e49bbfca0a89b7b8b19c777ed +MISC metadata.xml 679 BLAKE2B 1218e13a10ef3e4b63b892d3ba444116d8ae3bdc625c9b95ef73f9c4d59dc7bad527e919568306e7744b79a9bb00dea90ee0b83146bc4314d224e2dc7657cb7d SHA512 b3d2aadc2c43d03d80d50fd67830e62ba7543dc7ea7e0f834b32a7738031a49a8ab57069b8d5c7a9b0f88405bae8d59333e50ecab87286f8be5504141081914e diff --git a/dev-python/treq/metadata.xml b/dev-python/treq/metadata.xml index aa757fcc3d30..d90ac85b2d47 100644 --- a/dev-python/treq/metadata.xml +++ b/dev-python/treq/metadata.xml @@ -1,7 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="person"> + <email>dolsen@gentoo.org</email> + <name>Brian Dolbec</name> + </maintainer> <upstream> <maintainer> <email>hawkowl@twistedmatrix.com</email> diff --git a/dev-python/treq/treq-20.4.1.ebuild b/dev-python/treq/treq-20.4.1.ebuild new file mode 100644 index 000000000000..4f713ce23aba --- /dev/null +++ b/dev-python/treq/treq-20.4.1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS="rdepend" + +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 ~arm64 ~x86" +IUSE="doc test" +RESTRICT="!test? ( test )" + +COMMON_DEPEND=" + dev-python/incremental[${PYTHON_USEDEP}] + dev-python/hyperlink[${PYTHON_USEDEP}] +" + +RDEPEND="${COMMON_DEPEND} + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/twisted-18.7.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/httpbin[${PYTHON_USEDEP}] + )" + +python_compile_all() { + use doc && emake -C "${S}/docs" html +} + +python_install_all() { + use doc && HTML_DOCS=( 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.7 /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 +} |