1 |
commit: 4ee7fe8463cfc40961934755ae9d9b2be09f533c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 4 11:10:13 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 4 12:00:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ee7fe84 |
7 |
|
8 |
dev-python/sphinx: Enable py3.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/sphinx/files/sphinx-4.0.2-py310.patch | 28 ++++++++++++++++++++++++ |
13 |
dev-python/sphinx/sphinx-4.0.2.ebuild | 3 ++- |
14 |
2 files changed, 30 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-python/sphinx/files/sphinx-4.0.2-py310.patch b/dev-python/sphinx/files/sphinx-4.0.2-py310.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..db0facafed5 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/sphinx/files/sphinx-4.0.2-py310.patch |
21 |
@@ -0,0 +1,28 @@ |
22 |
+From 531a5ae9ef855761407d44fb49064ae6227868f5 Mon Sep 17 00:00:00 2001 |
23 |
+From: Takeshi KOMIYA <i.tkomiya@×××××.com> |
24 |
+Date: Wed, 5 May 2021 22:11:41 +0900 |
25 |
+Subject: [PATCH] test: Adjust type annotataions in python 3.10.0b1 |
26 |
+ |
27 |
+--- |
28 |
+ tests/test_util_inspect.py | 5 +---- |
29 |
+ 1 file changed, 1 insertion(+), 4 deletions(-) |
30 |
+ |
31 |
+diff --git a/tests/test_util_inspect.py b/tests/test_util_inspect.py |
32 |
+index 7b86c6ade..8df06a865 100644 |
33 |
+--- a/tests/test_util_inspect.py |
34 |
++++ b/tests/test_util_inspect.py |
35 |
+@@ -183,10 +183,7 @@ def test_signature_annotations(): |
36 |
+ |
37 |
+ # Instance annotations |
38 |
+ sig = inspect.signature(f11) |
39 |
+- if sys.version_info < (3, 10): |
40 |
+- assert stringify_signature(sig) == '(x: CustomAnnotation, y: 123) -> None' |
41 |
+- else: |
42 |
+- assert stringify_signature(sig) == '(x: CustomAnnotation(), y: 123) -> None' |
43 |
++ assert stringify_signature(sig) == '(x: CustomAnnotation, y: 123) -> None' |
44 |
+ |
45 |
+ # tuple with more than two items |
46 |
+ sig = inspect.signature(f12) |
47 |
+-- |
48 |
+2.31.1 |
49 |
+ |
50 |
|
51 |
diff --git a/dev-python/sphinx/sphinx-4.0.2.ebuild b/dev-python/sphinx/sphinx-4.0.2.ebuild |
52 |
index 1c6f8a61729..7cc217f2e35 100644 |
53 |
--- a/dev-python/sphinx/sphinx-4.0.2.ebuild |
54 |
+++ b/dev-python/sphinx/sphinx-4.0.2.ebuild |
55 |
@@ -4,7 +4,7 @@ |
56 |
EAPI=7 |
57 |
|
58 |
DISTUTILS_USE_SETUPTOOLS=rdepend |
59 |
-PYTHON_COMPAT=( python3_{7..9} pypy3 ) |
60 |
+PYTHON_COMPAT=( python3_{7..10} pypy3 ) |
61 |
PYTHON_REQ_USE="threads(+)" |
62 |
|
63 |
inherit distutils-r1 |
64 |
@@ -60,6 +60,7 @@ BDEPEND=" |
65 |
|
66 |
PATCHES=( |
67 |
"${FILESDIR}/${PN}-3.2.1-doc-link.patch" |
68 |
+ "${FILESDIR}/${P}-py310.patch" |
69 |
) |
70 |
|
71 |
distutils_enable_tests pytest |