diff options
author | Marius Brehler <marbre@linux.sungazer.de> | 2016-10-14 10:27:29 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-10-14 20:20:49 +0200 |
commit | f0f1974430d9dce47a6926a31523d09afff81911 (patch) | |
tree | 5a69ee1029161344b309b0273e491c0e405f71c2 /dev-python/traitlets/traitlets-4.3.1.ebuild | |
parent | sci-calculators/calcoo: Remove old ebuild (diff) | |
download | gentoo-f0f1974430d9dce47a6926a31523d09afff81911.tar.gz gentoo-f0f1974430d9dce47a6926a31523d09afff81911.tar.bz2 gentoo-f0f1974430d9dce47a6926a31523d09afff81911.zip |
dev-python/traitlets: Version bump to 4.3.1
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/2554
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-python/traitlets/traitlets-4.3.1.ebuild')
-rw-r--r-- | dev-python/traitlets/traitlets-4.3.1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/traitlets/traitlets-4.3.1.ebuild b/dev-python/traitlets/traitlets-4.3.1.ebuild new file mode 100644 index 000000000000..2e0b30964a2d --- /dev/null +++ b/dev-python/traitlets/traitlets-4.3.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) + +inherit distutils-r1 + +DESCRIPTION="A configuration system for Python applications" +HOMEPAGE="https://github.com/ipython/traitlets" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="doc test" + +RDEPEND=" + dev-python/decorator[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7 python3_3) + dev-python/ipython_genutils[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + " +DEPEND=" + doc? ( + dev-python/ipython_genutils[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + ) + test? ( + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) + dev-python/pytest-cov[${PYTHON_USEDEP}] + ) + " + +python_prepare_all() { + # Prevent un-needed download during build + if use doc; then + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die + fi + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + py.test --cov traitlets -v traitlets || die +} + +python_install_all() { + use doc && HTML_DOCS=( docs/build/html/. ) + distutils-r1_python_install_all +} |