diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/uncertainties | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/uncertainties')
-rw-r--r-- | dev-python/uncertainties/Manifest | 3 | ||||
-rw-r--r-- | dev-python/uncertainties/metadata.xml | 22 | ||||
-rw-r--r-- | dev-python/uncertainties/uncertainties-3.0.1.ebuild | 42 |
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-python/uncertainties/Manifest b/dev-python/uncertainties/Manifest new file mode 100644 index 000000000000..2db7eb54b5bd --- /dev/null +++ b/dev-python/uncertainties/Manifest @@ -0,0 +1,3 @@ +DIST uncertainties-3.0.1.tar.gz 225752 BLAKE2B 6dc872d5617b8c4e9deda5a5a60492ae1eb0facd7f053f0799b3762831f9bad7da39726811feffa3630091e00dbedf89c296ed4e1b2b1f78399ed45663ea5339 SHA512 d4b2a905665c46224586f5f9702ad9e69580fc5afe8c6c045b04141fdc54e0c402cdee033ee0ee7055823b922bd33c732b3066453876509d45add15abf9d85f5 +EBUILD uncertainties-3.0.1.ebuild 980 BLAKE2B 35372be835bd8a662da4945264555532011ab1b7a28892297c76128160a49e9309f195e2a1f0fb8b9964868d4571326933cb792fda42ded243230772ff0469ec SHA512 2c1eb1dc0743895ea27f2fa6b9a95487e0ea2b7b3cf39c1c9af1f37a1aae0c4cd737a12b595bfbe438c27a12b42b437e63c6ec1a84a8c25fc006b9421085a490 +MISC metadata.xml 859 BLAKE2B 54ae46c343fada9aabb973c5297eccb0abe7299a2a1f0009df1d083698c91ce25339cf63d77857febee0798b27a84ba83dde95e19255f45f8cb0141c6a009954 SHA512 833af2fd16f097d61942c7f9323d8e38688eead6d5d10ae8e7f2547c950cd53ab6ce28f434d2c1bb2f15b71ec55bfc30b8bd53a94a0c5f02e824e3ecb08ecc89 diff --git a/dev-python/uncertainties/metadata.xml b/dev-python/uncertainties/metadata.xml new file mode 100644 index 000000000000..a24d72178d1b --- /dev/null +++ b/dev-python/uncertainties/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + uncertainties is a Python module, which allows calculations such as + . + (0.2 +/- 0.01) * 2 = 0.4 +/- 0.02 + . + to be performed transparently; much more complex mathematical expressions + involving numbers with uncertainties can also be evaluated transparently. + Correlations between expressions are correctly taken into account; x-x is + thus exactly zero, for instance. The uncertainties produced by this module + are what is predicted by error propagation theory. + </longdescription> + <upstream> + <remote-id type="pypi">uncertainties</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/uncertainties/uncertainties-3.0.1.ebuild b/dev-python/uncertainties/uncertainties-3.0.1.ebuild new file mode 100644 index 000000000000..c50978aff237 --- /dev/null +++ b/dev-python/uncertainties/uncertainties-3.0.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2017 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="Python module for calculations with uncertainties" +HOMEPAGE="https://pythonhosted.org/uncertainties/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64 ~amd64-linux ~x86-linux" +IUSE="doc test" + +RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +ppython_compile_all() { + if use doc; then + PYTHONPATH="${BUILD_DIR}"/lib esetup.py build_sphinx + fi +} + +python_compile_all() { + use doc && "${PYTHON}" setup.py build_sphinx +} + +python_test() { + esetup.py nosetests -sv || die +} + +python_install_all() { + use doc && local HTML_DOCS=( build/sphinx/html/. ) + distutils-r1_python_install_all +} |