diff options
Diffstat (limited to 'dev-python/parso/parso-0.5.1.ebuild')
-rw-r--r-- | dev-python/parso/parso-0.5.1.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/parso/parso-0.5.1.ebuild b/dev-python/parso/parso-0.5.1.ebuild new file mode 100644 index 000000000000..9c33ffe3718c --- /dev/null +++ b/dev-python/parso/parso-0.5.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit distutils-r1 + +DESCRIPTION="a python parser that supports error recovery and round-trip parsing" +HOMEPAGE="https://github.com/davidhalter/parso https://pypi.org/project/parso/" +SRC_URI="https://github.com/davidhalter/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="doc test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +python_test() { + py.test -vv test || die "tests failed with ${EPYTHON}" +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_install_all() { + use doc && HTML_DOCS=( "${S}"/docs/_build/html/. ) + distutils-r1_python_install_all +} |