1 |
commit: 323113cfe318ad10e9ca5e30056ac97a51ea3ada |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Wed Aug 26 20:24:41 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 26 20:24:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=323113cf |
7 |
|
8 |
dev-python/mypy_extensions-0.4.3-r1: Revbump, EAPI=7 add py39 and pypy3 |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
.../mypy_extensions-0.4.3-r1.ebuild | 34 ++++++++++++++++++++++ |
15 |
1 file changed, 34 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/mypy_extensions/mypy_extensions-0.4.3-r1.ebuild b/dev-python/mypy_extensions/mypy_extensions-0.4.3-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..60db648be0f |
20 |
--- /dev/null |
21 |
+++ b/dev-python/mypy_extensions/mypy_extensions-0.4.3-r1.ebuild |
22 |
@@ -0,0 +1,34 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+PYTHON_COMPAT=( python3_{6..9} pypy3 ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Optional static typing for Python" |
32 |
+HOMEPAGE="http://www.mypy-lang.org/" |
33 |
+SRC_URI="https://github.com/python/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+if [[ "${PV}" =~ [9]{4,} ]]; then |
36 |
+ inherit git-r3 |
37 |
+ EGIT_REPO_URI="https://github.com/python/${PN}" |
38 |
+ EGIT_COMMIT="master" |
39 |
+else |
40 |
+ KEYWORDS="~amd64 ~x86" |
41 |
+fi |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+ |
46 |
+IUSE="test" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+distutils_enable_tests unittest |
50 |
+distutils_enable_sphinx docs \ |
51 |
+ dev-python/sphinx \ |
52 |
+ dev-python/sphinx_rtd_theme |
53 |
+ |
54 |
+python_test() { |
55 |
+ "${PYTHON}" -m unittest discover tests -v || die "tests fail with ${EPYTHON}" |
56 |
+} |