diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/regions |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/regions')
-rw-r--r-- | dev-python/regions/Manifest | 4 | ||||
-rw-r--r-- | dev-python/regions/metadata.xml | 14 | ||||
-rw-r--r-- | dev-python/regions/regions-0.2.ebuild | 58 |
3 files changed, 76 insertions, 0 deletions
diff --git a/dev-python/regions/Manifest b/dev-python/regions/Manifest new file mode 100644 index 000000000000..f9b38bb5f695 --- /dev/null +++ b/dev-python/regions/Manifest @@ -0,0 +1,4 @@ +DIST regions-0.2.tar.gz 535230 SHA256 980b8091d935484dde5907ff1631f624c5c0b99f5c1790c6c7879bb1f4d51009 SHA512 1970e55a834057ca7d5ea9e29769e71f4287d184f2576cd03ed810df8381517145fb157f2585dadab483312e2d66dca295f7aea10ca5a65367c3a95726331b19 WHIRLPOOL 06a47176dff8dbbdd32e2b8cd77e2b78f7089e828d1b5184c1e5401f6f13d0c66b81109fe564df29b2ae2039736ee963dec35c21234b66b1848a0f4e3ae193b7 +EBUILD regions-0.2.ebuild 1526 SHA256 83bbfdefa3a0434eeed612115db46520da756d5c66cfec9ba8e988e7bdc888b3 SHA512 e4aa525da0a54c6853d9de99d5a228ebf79cb0640c64a1c264e99444b2bcd77f8ae8b70ac15daaa21ad49f05ea551bc5f7e9a83c2cadd68dfe41cbbc28252687 WHIRLPOOL 15d18ec169382e027036cfdf6d89612462b5f0cd795fa84b90b5bec920c8e2fdad41944d663c8e2765e6207a63f452b4fcc1659d41827180e79cca0c72608e0e +MISC ChangeLog 311 SHA256 3764e3e9ccbffe5a5e7665f4504564d0d8a975055a503a4911ac39f8d36ab5e3 SHA512 ef08456b5fc2777a0ec9b304906252aacdb70d049bb0112d2056f162a598f2df534c43b9d62efc7cdd377e3715d950f5e02a734e02f2de41515b64a4044f22d0 WHIRLPOOL 68fd072d611eba94e98f94cb557d68fd8f212f38ed706acd01197d7721c137ca7a8873e139c8ff6e8e0b1d1591edfa9004fc02530d8ae00a0cbe5fcb38020c3a +MISC metadata.xml 538 SHA256 d4681ae0f7362913b0ee01ea4308621b3ac99174672f430067d2ea04c9467b76 SHA512 6a457b10fbc637a3130c8e94bbd441f8030596265864acf1003a314f464c082a49b72d87863ed996d1b80d84c69f88dce1987e48fc413afbc04e2cb949fad41d WHIRLPOOL f995e63f9107c34669853908b88bac9c44281582d06eff3ae9a5baf226573b0fd3fa275d371ec023200034fcb0312b2fe1b3c28e7c0672858c355d38da23f033 diff --git a/dev-python/regions/metadata.xml b/dev-python/regions/metadata.xml new file mode 100644 index 000000000000..63ff2600215a --- /dev/null +++ b/dev-python/regions/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>sci-astronomy@gentoo.org</email> + <name>Gentoo Astronomy Project</name> +</maintainer> +<longdescription lang="en"> + The goal is to merge the functionality from pyregion and photutils apertures and then after some time propose this package for inclusion in the Astropy core. +</longdescription> +<upstream> + <remote-id type="pypi">regions</remote-id> +</upstream> +</pkgmetadata> diff --git a/dev-python/regions/regions-0.2.ebuild b/dev-python/regions/regions-0.2.ebuild new file mode 100644 index 000000000000..fde1daf2ab69 --- /dev/null +++ b/dev-python/regions/regions-0.2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) +inherit distutils-r1 virtualx xdg-utils + +DESCRIPTION="Astropy affiliated package for region handling" +HOMEPAGE="http://astropy-regions.readthedocs.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="BSD" + +IUSE="doc test" +RDEPEND="dev-python/astropy[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/astropy-helpers[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + dev-python/wcsaxes[${PYTHON_USEDEP}] ) + test? ( + dev-python/pytest-mpl[${PYTHON_USEDEP}] + dev-python/pytest-arraydiff[${PYTHON_USEDEP}] + dev-python/wcsaxes[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] )" + +python_prepare_all() { + # use astropy-helpers from system + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + python_setup + VARTEXFONTS="${T}"/fonts \ + MPLCONFIGDIR="${BUILD_DIR}" \ + PYTHONPATH="${BUILD_DIR}"/lib \ + esetup.py build_sphinx --no-intersphinx + fi +} + +python_test() { + echo 'backend: Agg' > ${WORKDIR}/matplotlibrc || die + export MATPLOTLIBRC=${WORKDIR} + virtx esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} |