1 |
commit: 50a68a4760d3e65dfd19ad366e4b4fc6ca239701 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 19 17:29:33 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 19 17:42:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50a68a47 |
7 |
|
8 |
dev-python/scikit-build: Enable py3.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../files/scikit-build-0.11.1-py310.patch | 28 ++++++++++++++++++++++ |
13 |
dev-python/scikit-build/scikit-build-0.11.1.ebuild | 9 ++++--- |
14 |
2 files changed, 34 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/scikit-build/files/scikit-build-0.11.1-py310.patch b/dev-python/scikit-build/files/scikit-build-0.11.1-py310.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..fa00556f9ad |
19 |
--- /dev/null |
20 |
+++ b/dev-python/scikit-build/files/scikit-build-0.11.1-py310.patch |
21 |
@@ -0,0 +1,28 @@ |
22 |
+From c1677527af3f7afd48ebbe1b2338ac822f64c524 Mon Sep 17 00:00:00 2001 |
23 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
24 |
+Date: Sat, 19 Jun 2021 19:27:09 +0200 |
25 |
+Subject: [PATCH] fix: fix regex in test_get_python_version for Python 3.10 |
26 |
+ |
27 |
+Fix the regular expression in test_get_python_version to permit |
28 |
+the minor version to contain more than one digit. This fixes the test |
29 |
+on Python 3.10. |
30 |
+--- |
31 |
+ tests/test_cmaker.py | 2 +- |
32 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
33 |
+ |
34 |
+diff --git a/tests/test_cmaker.py b/tests/test_cmaker.py |
35 |
+index d63059c..52d0028 100644 |
36 |
+--- a/tests/test_cmaker.py |
37 |
++++ b/tests/test_cmaker.py |
38 |
+@@ -21,7 +21,7 @@ from . import _tmpdir, get_cmakecache_variables |
39 |
+ |
40 |
+ |
41 |
+ def test_get_python_version(): |
42 |
+- assert re.match(r'^[23](\.?)[0-9]$', CMaker.get_python_version()) |
43 |
++ assert re.match(r'^[23](\.?)\d+$', CMaker.get_python_version()) |
44 |
+ |
45 |
+ |
46 |
+ def test_get_python_include_dir(): |
47 |
+-- |
48 |
+2.32.0 |
49 |
+ |
50 |
|
51 |
diff --git a/dev-python/scikit-build/scikit-build-0.11.1.ebuild b/dev-python/scikit-build/scikit-build-0.11.1.ebuild |
52 |
index b65c6bdf689..bbebf508eb9 100644 |
53 |
--- a/dev-python/scikit-build/scikit-build-0.11.1.ebuild |
54 |
+++ b/dev-python/scikit-build/scikit-build-0.11.1.ebuild |
55 |
@@ -1,9 +1,9 @@ |
56 |
-# Copyright 1999-2020 Gentoo Authors |
57 |
+# Copyright 1999-2021 Gentoo Authors |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
|
60 |
EAPI=7 |
61 |
|
62 |
-PYTHON_COMPAT=( python3_{7..9} ) |
63 |
+PYTHON_COMPAT=( python3_{8..10} ) |
64 |
|
65 |
inherit distutils-r1 |
66 |
|
67 |
@@ -32,7 +32,10 @@ DEPEND=" |
68 |
dev-python/virtualenv[${PYTHON_USEDEP}] |
69 |
)" |
70 |
|
71 |
-PATCHES=( "${FILESDIR}/${PN}-0.10.0-docs.patch" ) |
72 |
+PATCHES=( |
73 |
+ "${FILESDIR}/${PN}-0.10.0-docs.patch" |
74 |
+ "${FILESDIR}"/${P}-py310.patch |
75 |
+) |
76 |
|
77 |
distutils_enable_sphinx docs \ |
78 |
dev-python/sphinx_rtd_theme \ |