mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-python/treq: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
parent
460dba30ea
commit
c226f4ceb8
@ -1,2 +1 @@
|
||||
DIST treq-24.9.1.tar.gz 85614 BLAKE2B cce700ae1f18b7e97953c45cb835786655caf47a0e425944e58f94c76a33c5948920c38f89283f50b51624f365326045d6ebb163c86644069f5bf548e137b9c0 SHA512 b8ed6ed5262073559babe8d0413a1f5369215a41ac7459441172a9086c654cf1dc7e51a0497d4c714726ae02d2163760cddde7008e360f37ebb4586b82409bb8
|
||||
DIST treq-25.5.0.tar.gz 83588 BLAKE2B 671e3e1f79f76abd1bda8b7826500bfc18c2d0bb192c668667f138fc123b178dcaee33e99e29f0ef437cbcaf12b511d54641b6300e6f068e85850a178dcf6617 SHA512 59fb457c2b4bc60ffa6fc0649c55fedcf4c64fdc43d7ea5c74241ab8e7a8afc23f878138dea249890e64ac0ba33959e8de443decb6ac388a976d8d4dabf64086
|
||||
|
||||
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
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/multipart[${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() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# fix relative path for docs generation
|
||||
sed -e 's@("..")@("../src")@' -i docs/conf.py || die
|
||||
|
||||
# unbundle multipart
|
||||
rm src/treq/_multipart.py || die
|
||||
find -name '*.py' -exec \
|
||||
sed -i -e 's:from [.]\+_multipart:from multipart:' {} + || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" -m twisted.trial treq || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user