commit:     3e4830a953e535e027edfb32fb54768000234b2b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 20 04:34:45 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Sep 20 04:35:01 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e4830a9

dev-python/treq: Bump to 24.9.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/treq/Manifest           |  1 +
 dev-python/treq/treq-24.9.1.ebuild | 48 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest
index 3a6265aa8f4b..b9179700f876 100644
--- a/dev-python/treq/Manifest
+++ b/dev-python/treq/Manifest
@@ -1 +1,2 @@
 DIST treq-23.11.0.tar.gz 74450 BLAKE2B 
0e10b070e1623b1aaaaf8ce53c98d29a44e9e5e76a84d6004e21cac74564cbb4b22c4015b4d999967ee519f6356016d3cb3fd8304df68967ec46dd2c1005d3ee
 SHA512 
bf62373f51a0552e040a628c86fe0f8d136ab5dfefaa2fa46d9ab173a58c20c0211f94370561e07fafb7da87140e88c10cf336ff7a61e5b3fc1a47fd1193cc27
+DIST treq-24.9.1.tar.gz 85614 BLAKE2B 
cce700ae1f18b7e97953c45cb835786655caf47a0e425944e58f94c76a33c5948920c38f89283f50b51624f365326045d6ebb163c86644069f5bf548e137b9c0
 SHA512 
b8ed6ed5262073559babe8d0413a1f5369215a41ac7459441172a9086c654cf1dc7e51a0497d4c714726ae02d2163760cddde7008e360f37ebb4586b82409bb8

diff --git a/dev-python/treq/treq-24.9.1.ebuild 
b/dev-python/treq/treq-24.9.1.ebuild
new file mode 100644
index 000000000000..2d0bf675d2cf
--- /dev/null
+++ b/dev-python/treq/treq-24.9.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="A requests-like API built on top of twisted.web's Agent"
+HOMEPAGE="
+       https://github.com/twisted/treq/
+       https://pypi.org/project/treq/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="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[ssl(-),${PYTHON_USEDEP}]
+       >=dev-python/typing-extensions-3.10.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/incremental[${PYTHON_USEDEP}]
+       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}"
+}

Reply via email to