dev-python/klein: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2021-10-17 10:59:02 +02:00
parent 1512516025
commit e9292a3776
2 changed files with 0 additions and 58 deletions

View File

@@ -1,2 +1 @@
DIST klein-20.6.0.tar.gz 125676 BLAKE2B 2ef9e4293cc7a727488ce4e95e2918eb3c5012559ff52699ef7d53d022d7238b33fc59774572ca8487870e8d242dd80659bca15c65c82b0aa76f45f8d8822fd7 SHA512 128b180c51c4457d3ffcd088e127d671d8260c3d62a80129bafbf6e3a2e47945290cd5ec695a64a1795465199e14c8f367445f8d90649f6384fd8338a53bb48e
DIST klein-21.8.0.tar.gz 100578 BLAKE2B ea2535e93affebe822ff086eb5749481edf7811340a35b11319b7c23b23d3877f6208ac1ef6cc7a4bb9eedd33d087820304f2ee71695413d72308e83c47aa2ee SHA512 cce28865e172effb6044f73c1841875fa5eb55daf20dcea482d0764604ab826ca5063a4679165bb253953d54428a42c2082022fd273e2a1083aefa595a563ccd

View File

@@ -1,57 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
inherit distutils-r1
DESCRIPTION="micro-framework for developing production-ready web services with Python"
HOMEPAGE="https://pypi.org/project/klein https://github.com/twisted/klein"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="
test? (
dev-python/hypothesis[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/treq[${PYTHON_USEDEP}]
)
"
RDEPEND="
dev-python/attrs[${PYTHON_USEDEP}]
dev-python/hyperlink[${PYTHON_USEDEP}]
dev-python/incremental[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/tubes[${PYTHON_USEDEP}]
dev-python/twisted[${PYTHON_USEDEP}]
dev-python/werkzeug[${PYTHON_USEDEP}]
dev-python/zope-interface[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
python_prepare_all() {
# nuke irreleveant test dep
sed -e 's/"typing",//' \
-i setup.py || die
# known test fail: https://github.com/twisted/klein/issues/339
sed -e 's/big world/big+world/' \
-e 's/4321)]/4321.0)]/' \
-e 's/not a number/not+a+number/' \
-i src/klein/test/test_form.py || die
distutils-r1_python_prepare_all
}
python_test() {
distutils_install_for_testing
pytest -v ||
die "Tests failed with ${EPYTHON}"
}