1 |
commit: 460deb88a1d9df1b3bfd0ed9bc0a0d64119ceab9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 31 15:27:55 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 31 15:42:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=460deb88 |
7 |
|
8 |
dev-python/cmd2: Port to py39 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/cmd2/cmd2-0.10.1.ebuild | 2 +- |
13 |
dev-python/cmd2/cmd2-1.0.2.ebuild | 7 ++++++- |
14 |
2 files changed, 7 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/cmd2/cmd2-0.10.1.ebuild b/dev-python/cmd2/cmd2-0.10.1.ebuild |
17 |
index c6dd48a3be4..e4ce45c0ea6 100644 |
18 |
--- a/dev-python/cmd2/cmd2-0.10.1.ebuild |
19 |
+++ b/dev-python/cmd2/cmd2-0.10.1.ebuild |
20 |
@@ -2,7 +2,7 @@ |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
EAPI=7 |
24 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
25 |
+PYTHON_COMPAT=( python3_{6..9} ) |
26 |
|
27 |
inherit distutils-r1 virtualx |
28 |
|
29 |
|
30 |
diff --git a/dev-python/cmd2/cmd2-1.0.2.ebuild b/dev-python/cmd2/cmd2-1.0.2.ebuild |
31 |
index 52af0aec442..0a10ae6eda4 100644 |
32 |
--- a/dev-python/cmd2/cmd2-1.0.2.ebuild |
33 |
+++ b/dev-python/cmd2/cmd2-1.0.2.ebuild |
34 |
@@ -2,7 +2,7 @@ |
35 |
# Distributed under the terms of the GNU General Public License v2 |
36 |
|
37 |
EAPI=7 |
38 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
39 |
+PYTHON_COMPAT=( python3_{6..9} ) |
40 |
|
41 |
inherit distutils-r1 virtualx |
42 |
|
43 |
@@ -38,3 +38,8 @@ src_test() { |
44 |
local -x COLUMNS=80 |
45 |
virtx distutils-r1_src_test |
46 |
} |
47 |
+ |
48 |
+python_test() { |
49 |
+ distutils_install_for_testing |
50 |
+ pytest -vv || die "Tests failed with ${EPYTHON}" |
51 |
+} |