commit:     323113cfe318ad10e9ca5e30056ac97a51ea3ada
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Wed Aug 26 20:24:41 2020 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Wed Aug 26 20:24:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=323113cf

dev-python/mypy_extensions-0.4.3-r1: Revbump, EAPI=7 add py39 and pypy3

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 .../mypy_extensions-0.4.3-r1.ebuild                | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)

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
new file mode 100644
index 00000000000..60db648be0f
--- /dev/null
+++ b/dev-python/mypy_extensions/mypy_extensions-0.4.3-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6..9} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Optional static typing for Python"
+HOMEPAGE="http://www.mypy-lang.org/";
+SRC_URI="https://github.com/python/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+if [[ "${PV}" =~ [9]{4,} ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/python/${PN}";
+       EGIT_COMMIT="master"
+else
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+distutils_enable_tests unittest
+distutils_enable_sphinx docs \
+       dev-python/sphinx \
+       dev-python/sphinx_rtd_theme
+
+python_test() {
+       "${PYTHON}" -m unittest discover tests -v || die "tests fail with 
${EPYTHON}"
+}

Reply via email to