summaryrefslogtreecommitdiff
path: root/dev-python/treq
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/treq')
-rw-r--r--dev-python/treq/Manifest5
-rw-r--r--dev-python/treq/treq-22.1.0-r1.ebuild43
-rw-r--r--dev-python/treq/treq-22.1.0.ebuild (renamed from dev-python/treq/treq-21.5.0.ebuild)2
3 files changed, 47 insertions, 3 deletions
diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest
index a95c41809465..692e49216cb6 100644
--- a/dev-python/treq/Manifest
+++ b/dev-python/treq/Manifest
@@ -1,3 +1,4 @@
-DIST treq-21.5.0.tar.gz 71323 BLAKE2B 1e1f0f4c885c1d197fdf9c1a88c9ee486c3fcc4d126498f4ce10e59d62e2445e4935e3f4cabed5de2f2663c3049ab6b49e47a0bad29380a4bb901e30d6723f49 SHA512 81ccfaa90513f0ef53c60f69ff7c60e066c6f0669ab82cf361e0720e5fd3098eb88e9b205f5bb590f1e0cde6083e5e2dfbacb6086986f0dd91fc2b3038da3093
-EBUILD treq-21.5.0.ebuild 1059 BLAKE2B b27a7f9e6f5f8f07e60673b9604d21462b8e7121fd24787dde811e05e46d7dea0406a41d9ba8f1ef74666487fe696af263077d3521203d8ce0d23c4ac3e95bb6 SHA512 1ec6b023e1709f350a5b61a036a7ab60f7d09b65f58fe4ab2c76c9941e636da83c497f82ee93eb12f6520c8976bb33adef126222b4f53d55a342f21a9c1656fa
+DIST treq-22.1.0.tar.gz 72634 BLAKE2B e59271bbd53124fa6c01cb9fba03d83ba8cdfc1b2be065c649e26dbcd0202473b59fc1762ce02d5d016d1ac5a6a848568b248c316d7ecde8e3f3521cb213d532 SHA512 6c9a49bc4c9e73365275bf841a5a31873c092e33c4978571caae3601d02e9b8d161dcf684c40ccd297d8a8c4dafe62eddb7872a86513598260fe38c98c7c44f5
+EBUILD treq-22.1.0-r1.ebuild 1060 BLAKE2B 70b169a5f5fd4f3fc848a2c2bf092bdc6eb2eba8680559c2a2518105dedd91c1cf3d52f80b5bae595c6a77754cb70f6ec4a92b9431db5ec2091c6a2a8e29795b SHA512 1d4e7d7e9ef8e27bcc851f9593d5cf5a21d5596f35c02a642497894fa88d7d0997b30d21d20a616b3750a5c8feca209d00473c38777b960155df1d56aa79871c
+EBUILD treq-22.1.0.ebuild 1059 BLAKE2B dd778daca0cfb5fa8232e9b455d717881c598e3a1ee02cf8c0fe5f3865eedd391b7bf37fdf6db3380b9a27ba01a5fcbd2fab0f2f546bff5ae08830f52a9a23a7 SHA512 8b5e4cc99722ffce4e0d653c8a868fe0c1378bf2b3769dac1c886a3b572d1bfa1eed7a60ce3219967518717ed78c46dd033e49b152a82fbef7591db3277c8844
MISC metadata.xml 781 BLAKE2B a50fa9d74c53d5c948cfd940ff1e454a2aa9c44bf29c8e39495007ddab02e212a979f757335fae531ceae43743342a02a4ae049b5b12425ba779293c6977eb07 SHA512 1d45744f461efe3cd03802e3886dee60a19eb508b681e3235817f478dd98ca164c822194f03b05891e0000e3d09af4790e8b10e07f3e303abf9ad308712ca9b6
diff --git a/dev-python/treq/treq-22.1.0-r1.ebuild b/dev-python/treq/treq-22.1.0-r1.ebuild
new file mode 100644
index 000000000000..e5e1a9824053
--- /dev/null
+++ b/dev-python/treq/treq-22.1.0-r1.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 ~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}"
+}
diff --git a/dev-python/treq/treq-21.5.0.ebuild b/dev-python/treq/treq-22.1.0.ebuild
index 4a466dd998f2..1ca0af3cfc5a 100644
--- a/dev-python/treq/treq-21.5.0.ebuild
+++ b/dev-python/treq/treq-22.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7