From 61c3bb52fd59cdc76c43225ba430af79461b40a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 15 Jun 2024 09:43:42 +0200 Subject: [PATCH] dev-python/webtest: Enable py3.13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/webtest/webtest-3.0.0-r2.ebuild | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 dev-python/webtest/webtest-3.0.0-r2.ebuild diff --git a/dev-python/webtest/webtest-3.0.0-r2.ebuild b/dev-python/webtest/webtest-3.0.0-r2.ebuild new file mode 100644 index 0000000000000..1ff513b356f80 --- /dev/null +++ b/dev-python/webtest/webtest-3.0.0-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN="WebTest" +PYTHON_COMPAT=( python3_{10..13} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Helper to test WSGI applications" +HOMEPAGE=" + https://docs.pylonsproject.org/projects/webtest/en/latest/ + https://github.com/Pylons/webtest/ + https://pypi.org/project/WebTest/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/paste[${PYTHON_USEDEP}] + dev-python/pastedeploy[${PYTHON_USEDEP}] + >=dev-python/webob-1.2[${PYTHON_USEDEP}] + >=dev-python/waitress-0.8.5[${PYTHON_USEDEP}] + dev-python/beautifulsoup4[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pyquery[${PYTHON_USEDEP}] + dev-python/wsgiproxy2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/legacy-cgi[${PYTHON_USEDEP}] + ' 3.13) + ) +" + +PATCHES=( + "${FILESDIR}/webtest-2.0.33-no-pylons-theme.patch" + "${FILESDIR}/webtest-3.0.0-python3.12-unittest.patch" +) + +distutils_enable_sphinx docs +distutils_enable_tests pytest