commit:     61c3bb52fd59cdc76c43225ba430af79461b40a2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 15 07:43:42 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 15 08:14:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61c3bb52

dev-python/webtest: Enable py3.13

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

 dev-python/webtest/webtest-3.0.0-r2.ebuild | 47 ++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

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 000000000000..1ff513b356f8
--- /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

Reply via email to