1 |
commit: 7fa4b885130b54db9458984e9003aa29f2d01b46 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 17 07:08:01 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 17 07:21:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fa4b885 |
7 |
|
8 |
dev-python/paste: Enable py3.11 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/paste/paste-3.5.0-r2.ebuild | 27 ++++++++++++++++++++------- |
13 |
1 file changed, 20 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/paste/paste-3.5.0-r2.ebuild b/dev-python/paste/paste-3.5.0-r2.ebuild |
16 |
index 98ae3580d026..a89c1a5d2dda 100644 |
17 |
--- a/dev-python/paste/paste-3.5.0-r2.ebuild |
18 |
+++ b/dev-python/paste/paste-3.5.0-r2.ebuild |
19 |
@@ -4,13 +4,17 @@ |
20 |
EAPI=8 |
21 |
|
22 |
DISTUTILS_USE_PEP517=setuptools |
23 |
-PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
24 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
25 |
|
26 |
inherit distutils-r1 |
27 |
|
28 |
MY_P="Paste-${PV}" |
29 |
DESCRIPTION="Tools for using a Web Server Gateway Interface stack" |
30 |
-HOMEPAGE="https://pypi.org/project/Paste/" |
31 |
+HOMEPAGE=" |
32 |
+ https://pythonpaste.readthedocs.io/en/latest/ |
33 |
+ https://github.com/cdent/paste/ |
34 |
+ https://pypi.org/project/Paste/ |
35 |
+" |
36 |
SRC_URI="mirror://pypi/${MY_P::1}/${PN^}/${MY_P}.tar.gz" |
37 |
S=${WORKDIR}/${MY_P} |
38 |
|
39 |
@@ -26,12 +30,21 @@ RDEPEND=" |
40 |
distutils_enable_tests pytest |
41 |
distutils_enable_sphinx docs |
42 |
|
43 |
-EPYTEST_DESELECT=( |
44 |
- # Internet |
45 |
- tests/test_proxy.py |
46 |
-) |
47 |
- |
48 |
python_compile() { |
49 |
distutils-r1_python_compile |
50 |
find "${BUILD_DIR}" -name '*.pth' -delete || die |
51 |
} |
52 |
+ |
53 |
+python_test() { |
54 |
+ local EPYTEST_DESELECT=( |
55 |
+ # Internet |
56 |
+ tests/test_proxy.py |
57 |
+ ) |
58 |
+ |
59 |
+ [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=( |
60 |
+ # fails due to cgi deprecation warning |
61 |
+ tests/test_cgiapp.py::test_form |
62 |
+ ) |
63 |
+ |
64 |
+ epytest |
65 |
+} |