mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-26 09:18:23 -07:00
dev-python/traitlets: Import from science overlay
Package-Manager: portage-2.2.20.1
This commit is contained in:
1
dev-python/traitlets/Manifest
Normal file
1
dev-python/traitlets/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST traitlets-4.0.0.tar.gz 63701 SHA256 0b140b4a94a4f1951887d9bce4650da211f79600fc9fdb422acc90c5bbe0233b SHA512 559730dbe9f5f0e75c867cd514c91a3e862a23a9e019d3883b4be66b6208980a583f39cceca4f20e409bd44335a367e7fd5654db0128bb7a735311e6b2c32f24 WHIRLPOOL 492a7a561649ea1a43ce5f45abf13e74d8ace7937e2cf0956b00fe1f650a541af8da0df5d8327bb071c4f03650a44c7ca548e8c61ccf95cea557516fa6d5b862
|
||||
14
dev-python/traitlets/metadata.xml
Normal file
14
dev-python/traitlets/metadata.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>sci</herd>
|
||||
<longdescription>
|
||||
A lightweight pure-Python derivative of Enthought Traits,
|
||||
used for configuring Python objects. This package powers
|
||||
the config system of IPython and Jupyter.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">traitlets</remote-id>
|
||||
<remote-id type="github">ipython/traitlets</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
54
dev-python/traitlets/traitlets-4.0.0.ebuild
Normal file
54
dev-python/traitlets/traitlets-4.0.0.ebuild
Normal file
@@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
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 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
dev-python/ipython_genutils[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
doc? (
|
||||
dev-python/ipython_genutils[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
)
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${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() {
|
||||
nosetests --with-coverage --cover-package traitlets traitlets || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
Reference in New Issue
Block a user