diff options
Diffstat (limited to 'dev-python/treq')
-rw-r--r-- | dev-python/treq/Manifest | 2 | ||||
-rw-r--r-- | dev-python/treq/treq-22.2.0.ebuild | 43 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest index 692e49216cb6..ca6f1344dde0 100644 --- a/dev-python/treq/Manifest +++ b/dev-python/treq/Manifest @@ -1,4 +1,6 @@ DIST treq-22.1.0.tar.gz 72634 BLAKE2B e59271bbd53124fa6c01cb9fba03d83ba8cdfc1b2be065c649e26dbcd0202473b59fc1762ce02d5d016d1ac5a6a848568b248c316d7ecde8e3f3521cb213d532 SHA512 6c9a49bc4c9e73365275bf841a5a31873c092e33c4978571caae3601d02e9b8d161dcf684c40ccd297d8a8c4dafe62eddb7872a86513598260fe38c98c7c44f5 +DIST treq-22.2.0.tar.gz 72922 BLAKE2B ab4637c801e5e777f81f6e6a6e12e36ef47e052a4103eb70bf4e10d3fb44b60f144f32734625b4babb375acc96e3cad1895634d3d2fc08ac3095769180e65328 SHA512 465a02481a51ac246ac85f561f2e7a59d97aeeda9f0953dd83678ff836802a187a6aedcce830a9e3095a9c72227bd06113610c3be0967f1362a645a31278bde0 EBUILD treq-22.1.0-r1.ebuild 1060 BLAKE2B 70b169a5f5fd4f3fc848a2c2bf092bdc6eb2eba8680559c2a2518105dedd91c1cf3d52f80b5bae595c6a77754cb70f6ec4a92b9431db5ec2091c6a2a8e29795b SHA512 1d4e7d7e9ef8e27bcc851f9593d5cf5a21d5596f35c02a642497894fa88d7d0997b30d21d20a616b3750a5c8feca209d00473c38777b960155df1d56aa79871c EBUILD treq-22.1.0.ebuild 1059 BLAKE2B dd778daca0cfb5fa8232e9b455d717881c598e3a1ee02cf8c0fe5f3865eedd391b7bf37fdf6db3380b9a27ba01a5fcbd2fab0f2f546bff5ae08830f52a9a23a7 SHA512 8b5e4cc99722ffce4e0d653c8a868fe0c1378bf2b3769dac1c886a3b572d1bfa1eed7a60ce3219967518717ed78c46dd033e49b152a82fbef7591db3277c8844 +EBUILD treq-22.2.0.ebuild 1067 BLAKE2B cdba14493694224d87e18f069a535afc1a29a26ea3de698f3c08897e08cba3de17e2056cbc638fbda2c84d6fb4676cb7c576237c7e0f93c3f9b0fbfd6634c65a SHA512 16453d7c55d8eb73269002e74ac9860726b415eab82c5907d65d3fdf692aeaf512d0f62fd5be1bfdbbe6d57cff54f2576e42216d53add7b8780e4b0593897381 MISC metadata.xml 781 BLAKE2B a50fa9d74c53d5c948cfd940ff1e454a2aa9c44bf29c8e39495007ddab02e212a979f757335fae531ceae43743342a02a4ae049b5b12425ba779293c6977eb07 SHA512 1d45744f461efe3cd03802e3886dee60a19eb508b681e3235817f478dd98ca164c822194f03b05891e0000e3d09af4790e8b10e07f3e303abf9ad308712ca9b6 diff --git a/dev-python/treq/treq-22.2.0.ebuild b/dev-python/treq/treq-22.2.0.ebuild new file mode 100644 index 000000000000..30871872fda1 --- /dev/null +++ b/dev-python/treq/treq-22.2.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +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 ~riscv ~x86" +IUSE="doc test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/attrs[${PYTHON_USEDEP}] + >=dev-python/hyperlink-21.0.0[${PYTHON_USEDEP}] + dev-python/incremental[${PYTHON_USEDEP}] + >=dev-python/requests-2.1.0[${PYTHON_USEDEP}] + >=dev-python/twisted-18.7.0[crypt,${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/httpbin[${PYTHON_USEDEP}] + )" + +distutils_enable_sphinx docs + +src_prepare() { + # fix relative path for docs generation + sed -e "s@('..')@('../src')@" -i docs/conf.py || die + distutils-r1_src_prepare +} + +python_test() { + "${EPYTHON}" -m twisted.trial treq || die "Tests failed with ${EPYTHON}" +} |