diff options
author | Tim Harder <radhermit@gentoo.org> | 2017-10-19 14:21:15 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2018-02-05 20:51:58 -0500 |
commit | 1c6ccb564a48f18b9b1ca0c61ab895814f195fe9 (patch) | |
tree | bbe159fad4e07e91516899923fcd02bba35fd139 /dev-python/parso/parso-0.1.1.ebuild | |
parent | dev-python/fusepy: update HOMEPAGE and upstream info (diff) | |
download | gentoo-1c6ccb564a48f18b9b1ca0c61ab895814f195fe9.tar.gz gentoo-1c6ccb564a48f18b9b1ca0c61ab895814f195fe9.tar.bz2 gentoo-1c6ccb564a48f18b9b1ca0c61ab895814f195fe9.zip |
dev-python/parso: initial import, required by latest version of jedi
Diffstat (limited to 'dev-python/parso/parso-0.1.1.ebuild')
-rw-r--r-- | dev-python/parso/parso-0.1.1.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/parso/parso-0.1.1.ebuild b/dev-python/parso/parso-0.1.1.ebuild new file mode 100644 index 000000000000..99e6a66edd99 --- /dev/null +++ b/dev-python/parso/parso-0.1.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="a python parser that supports error recovery and round-trip parsing" +HOMEPAGE="https://github.com/davidhalter/parso https://pypi.python.org/pypi/parso" +SRC_URI="https://github.com/davidhalter/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc test" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx ) + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +python_test() { + py.test -v 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 +} |