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/aplpy |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/aplpy')
-rw-r--r-- | dev-python/aplpy/Manifest | 9 | ||||
-rw-r--r-- | dev-python/aplpy/aplpy-1.0.ebuild | 52 | ||||
-rw-r--r-- | dev-python/aplpy/aplpy-1.1.1.ebuild | 58 | ||||
-rw-r--r-- | dev-python/aplpy/files/aplpy-1.0-fix-dependencies.patch | 14 | ||||
-rw-r--r-- | dev-python/aplpy/files/aplpy-1.0-mark-known-failures.patch | 121 | ||||
-rw-r--r-- | dev-python/aplpy/metadata.xml | 18 |
6 files changed, 272 insertions, 0 deletions
diff --git a/dev-python/aplpy/Manifest b/dev-python/aplpy/Manifest new file mode 100644 index 000000000000..0ca5e0e1340d --- /dev/null +++ b/dev-python/aplpy/Manifest @@ -0,0 +1,9 @@ +AUX aplpy-1.0-fix-dependencies.patch 456 SHA256 4bf7e8b4d7e6a0ec43d0b898c7803bfc53914ca32c5c5cf2b55afe35b1b4c0c4 SHA512 b0b0ac53fe6702947d21fbe1cbe60c6dfe5047fd74e54cb5ff02e2adfc8f6c53a3da14681cc6aa5f441a90aa3478555b558be6a1be96111d380c0b8da55c5185 WHIRLPOOL c4ca48f64508fce3f71ac069a7eb3d64431d8ea6d58f9f31e19b6a3c7b94acb38e5798323748844ddb0c96ffc3b01a300eca82db76b0635ef28e751b3896946e +AUX aplpy-1.0-mark-known-failures.patch 3738 SHA256 3622f6a89f8c618d2206f4de3834d5f75bdbbecbce82f00d27af608be70b0adf SHA512 e076921616ecb528844b79f330b1901958ed12e4985063ee2829ff361b93cc457b23caa9107c79c58028a53e97b085033b8666681d2ece7ef24b9bdd9d955ce8 WHIRLPOOL 64c45ad395ca1db68cab86b501855aa696ac0f8065122c990bfc8ea6f8336e7c93168a9dd4b6dcb346b9e17f3c8b752bc54a113f3929bb5c20090bc594fbf96f +DIST APLpy-1.0.tar.gz 1169280 SHA256 09a8a24b46b93a1eacdbc0e6fd480fa38e4dd890a24963136d76185924602ff0 SHA512 658b626c2a94c73cc8ba45fde86409659555ed3ec065d07313f08b67c0bcdc596c8dc94562c924de2f3f32d6884051e6756e22384d9594c4538578b482fa7590 WHIRLPOOL 0c884cecbbc9a7cd4ca4ba48cee4e03f039fa2edf4aa5aa4ac945b58c889084acb762f9cff2014911b383b0b14ebd2e51d2ce28b01b87eb0053ba06c3cc6c5c3 +DIST APLpy-1.1.1.tar.gz 938943 SHA256 1c3bc9972da5f738435449e5e8483824129f2a18e7426f0a8c2c06a1ef3b4b4b SHA512 accc355fb56145db33a931b77b9d5b56e5e0f5a486a3a8d776b0645991883df4b78fae58cfe87c1575dad7f02baa5c68c95427c1de18c2435abd13c4a85eee93 WHIRLPOOL 38539eb997fb804717553988eddbebbe15b5fc74d61f8a87153ed27560b0e4bc0671053f0c0fa829ded6c81ea651c798f09bcadc223c8d7c5c09aa7de943717d +EBUILD aplpy-1.0.ebuild 1212 SHA256 8f21ed1b10b343fad84fa4fd6d6ad2ae34dbddbc1091eda145cf5c4274ebc76e SHA512 e91e5a43b697fff15c14e7b3e29f5b3cf59bc054199a52cb8cc04082eb1022b0a94f5ebe652e55daf772d7c1dcb524ab8df7f310b39ef16d5bff661da2f28931 WHIRLPOOL 20c48bf173228deaa751694203aab03a5fa2c571b36de53f4bf55897d6f5463be94368e204a4dc9a74f44c7c5870a682e1919d3cc5264ad8c19888f7f89338fc +EBUILD aplpy-1.1.1.ebuild 1456 SHA256 8d44960e2e42013dd6b6e9551f53ecfa6ec9e6b9543a48bebdad78bcb880d184 SHA512 3aab3a4a1f4f5f63bfc022640c446d07634de82b0d49cd7f9cd49a2a119513e561168d729113e05e06bee681e20d5d124d44a4f18b97668dec4fb265684cd9fc WHIRLPOOL 78453dce48c0f7b9b580837d07ace6c737ea25bc61958a4b439827130c122bad0ec4b3dd6191af2fb7d7170b32a42c018d8656537444f655f321002ae5bc83f0 +MISC ChangeLog 3690 SHA256 e0206df99b528ab5abf590fbd7a303bf4d2573daa63472af65d663a7d5239b2e SHA512 06f39438b3191b2da00b3ba95d36b0e874e18b4a9e5c01635162e79f73085a3f4df806055819d7a8336235356799ec2d8814d29bd39517c4e66897df4af206a3 WHIRLPOOL 45c4d806da7070dce3e60107b4a0387fd8818d20e3b343c635c0431b269dbd60dce9cc179c16b3542c410c54da630f21da8a2594dee474f3c4fa7dcb723343c6 +MISC ChangeLog-2015 3066 SHA256 52dbd7494eaaeef31cd279333a4ed05870e51e4a09c902f27a001afccde07346 SHA512 050b08915d2b9b8e9aec5cf381eadc83fbbf155a27d6839c07829df8f71086be355c18d5c9113563473a7dfcd98f2e53c2e46c352812dea6dff864a9c58ed69a WHIRLPOOL ab7275596acc4181ed73a061a75c34c8397f0b86f8866488e3b8e83fe381611f8fab504586c26520b1d0ed9fe97da955466a24b630786294fa098fc19f2a4a1e +MISC metadata.xml 698 SHA256 872cac563bd9ac2aa5a444193308b092cb4d508be1af75579cae5cd2dfb0f625 SHA512 33e925cde2dd0ff56a158426d35d5f498fddcb352042c4acd868b577ca00893fa2bf2f9ff33b8931578af4841ba08abfea159003bc33be4c579bf51ac8cad1df WHIRLPOOL 8403170a6265b8a26b9239b146a0798a0d0ed4e4e35b4ebe52064aadae793290677ad01f1b45a27711537a3dd55517520b35d5d09a16d984482c48d59fcf74af diff --git a/dev-python/aplpy/aplpy-1.0.ebuild b/dev-python/aplpy/aplpy-1.0.ebuild new file mode 100644 index 000000000000..8f9f5bd54fe3 --- /dev/null +++ b/dev-python/aplpy/aplpy-1.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 virtualx xdg-utils + +MYPN=APLpy +MYP=${MYPN}-${PV} + +DESCRIPTION="Astronomical Plotting Library in Python" +HOMEPAGE="https://aplpy.github.com/" +SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + dev-python/astropy[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/pyavm[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/astropy-helpers[${PYTHON_USEDEP}]" + +S="${WORKDIR}/${MYP}" + +PATCHES=( + "${FILESDIR}/${PN}-1.0-mark-known-failures.patch" + "${FILESDIR}/${PN}-1.0-fix-dependencies.patch" +) + +python_prepare_all() { + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile --use-system-libraries +} + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}" || die + virtx "${EPYTHON}" -c "import aplpy, sys;r = aplpy.test();sys.exit(r)" +} diff --git a/dev-python/aplpy/aplpy-1.1.1.ebuild b/dev-python/aplpy/aplpy-1.1.1.ebuild new file mode 100644 index 000000000000..295c6eeef5e9 --- /dev/null +++ b/dev-python/aplpy/aplpy-1.1.1.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 + +MYPN=APLpy +MYP=${MYPN}-${PV} + +DESCRIPTION="Astronomical Plotting Library in Python" +HOMEPAGE="https://aplpy.github.com/" +SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + dev-python/astropy[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/astropy-helpers[${PYTHON_USEDEP}] + test? ( dev-python/pytest-mpl[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MYP}" + +PATCHES=( + "${FILESDIR}/${PN}-1.0-fix-dependencies.patch" +) + +python_prepare_all() { + sed -i -e '/auto_use/s/True/False/' setup.cfg || die + xdg_environment_reset + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile --use-system-libraries +} + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}" || die + echo "backend: Agg" > matplotlibrc + virtx "${EPYTHON}" -c "import aplpy, sys;r = aplpy.test();sys.exit(r)" +} + +pkg_postinst() { + optfeature "Interact with Montage" dev-python/montage-wrapper + optfeature "Read DS9 regions files" dev-python/pyregion + optfeature "Extend image i/o formats" dev-python/pillow + optfeature "Astronomy Visualization Metadata tagging" dev-python/pyavm +} diff --git a/dev-python/aplpy/files/aplpy-1.0-fix-dependencies.patch b/dev-python/aplpy/files/aplpy-1.0-fix-dependencies.patch new file mode 100644 index 000000000000..b5708c8971bc --- /dev/null +++ b/dev-python/aplpy/files/aplpy-1.0-fix-dependencies.patch @@ -0,0 +1,14 @@ +Author: Ole Streicher <olebole@debian.org> +Description: Change requires to install_requires +--- a/setup.py ++++ b/setup.py +@@ -94,8 +94,7 @@ + version=VERSION, + description=DESCRIPTION, + scripts=scripts, +- requires=['astropy', 'numpy', 'matplotlib'], +- install_requires=['astropy'], ++ install_requires=['astropy', 'numpy', 'matplotlib'], + provides=[PACKAGENAME], + author=AUTHOR, + author_email=AUTHOR_EMAIL, diff --git a/dev-python/aplpy/files/aplpy-1.0-mark-known-failures.patch b/dev-python/aplpy/files/aplpy-1.0-mark-known-failures.patch new file mode 100644 index 000000000000..cf1aa92190d4 --- /dev/null +++ b/dev-python/aplpy/files/aplpy-1.0-mark-known-failures.patch @@ -0,0 +1,121 @@ +Author: Ole Streicher <olebole@debian.org> +Description: Mark tests that are known to fail with matplotlib-1.5 +--- a/aplpy/tests/test_images.py ++++ b/aplpy/tests/test_images.py +@@ -61,6 +61,8 @@ + + class TestBasic(BaseImageTests): + ++# see https://github.com/aplpy/aplpy/issues/278 ++ @pytest.mark.xfail() + # Test for showing grayscale + def test_basic_image(self, generate): + f = FITSFigure(self.filename_2) +@@ -68,6 +70,8 @@ + self.generate_or_test(generate, f, 'basic_image.png') + f.close() + ++# see https://github.com/aplpy/aplpy/issues/278 ++ @pytest.mark.xfail() + def test_ticks_labels_options(self, generate): + f = FITSFigure(self.filename_2) + f.ticks.set_color('black') +@@ -84,6 +88,8 @@ + self.generate_or_test(generate, f, 'tick_labels_options.png') + f.close() + ++# see https://github.com/aplpy/aplpy/issues/278 ++ @pytest.mark.xfail() + # Test for showing colorscale + def test_show_colorbar_scalebar_beam(self, generate): + f = FITSFigure(self.filename_1) +@@ -96,6 +102,8 @@ + self.generate_or_test(generate, f, 'colorbar_scalebar_beam.png') + f.close() + ++# see https://github.com/aplpy/aplpy/issues/278 ++ @pytest.mark.xfail() + # Test for overlaying shapes + def test_overlay_shapes(self, generate): + f = FITSFigure(self.filename_1) +@@ -112,6 +120,8 @@ + self.generate_or_test(generate, f, 'overlay_shapes.png') + f.close() + ++# see https://github.com/aplpy/aplpy/issues/278 ++ @pytest.mark.xfail() + # Test for grid + def test_grid(self, generate): + f = FITSFigure(self.filename_1) +@@ -125,6 +135,8 @@ + self.generate_or_test(generate, f, 'grid.png') + f.close() + ++# see https://github.com/aplpy/aplpy/issues/278 ++ @pytest.mark.xfail() + # Test recenter + def test_recenter(self, generate): + f = FITSFigure(self.filename_2) +@@ -135,6 +147,8 @@ + self.generate_or_test(generate, f, 'recenter.png') + f.close() + ++# see https://github.com/aplpy/aplpy/issues/278 ++ @pytest.mark.xfail() + # Test overlaying contours + def test_contours(self, generate): + data = np.arange(256).reshape((16, 16)) +@@ -144,6 +158,8 @@ + self.generate_or_test(generate, f, 'contours.png') + f.close() + ++# see https://github.com/aplpy/aplpy/issues/278 ++ @pytest.mark.xfail() + # Test cube slice + def test_cube_slice(self, generate): + f = FITSFigure(self.filename_3, dimensions=[2, 0], slices=[10]) +--- a/aplpy/tests/test_rgb.py ++++ b/aplpy/tests/test_rgb.py +@@ -6,6 +6,7 @@ + + import numpy as np + from astropy.io import fits ++from astropy.tests.helper import pytest + + from .. import FITSFigure + from ..rgb import make_rgb_image +@@ -17,6 +18,8 @@ + + class TestRGB(BaseImageTests): + ++# see https://github.com/aplpy/aplpy/issues/278 ++ @pytest.mark.xfail() + def test_rgb(self, generate, tmpdir): + + # Regression test to check that RGB recenter works properly +--- a/aplpy/tests/test_vectors.py ++++ b/aplpy/tests/test_vectors.py +@@ -1,4 +1,5 @@ + import numpy as np ++from astropy.tests.helper import pytest + + from ..core import FITSFigure + +@@ -15,6 +16,8 @@ + + class TestVectors(BaseImageTests): + ++# see https://github.com/aplpy/aplpy/issues/278 ++ @pytest.mark.xfail() + def test_default(self, generate): + f = FITSFigure(IMAGE, figsize=(4,4)) + f.show_grayscale() +@@ -22,6 +25,8 @@ + self.generate_or_test(generate, f, 'vectors_default.png', tolerance=2.5) + f.close() + ++# see https://github.com/aplpy/aplpy/issues/278 ++ @pytest.mark.xfail() + def test_step_scale(self, generate): + f = FITSFigure(IMAGE, figsize=(4,4)) + f.show_grayscale() diff --git a/dev-python/aplpy/metadata.xml b/dev-python/aplpy/metadata.xml new file mode 100644 index 000000000000..8fa6a8c707bb --- /dev/null +++ b/dev-python/aplpy/metadata.xml @@ -0,0 +1,18 @@ +<?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"> + APLpy (the Astronomical Plotting Library in Python) is a Python + module aimed at producing publication-quality plots of astronomical + imaging data in FITS format. The module uses Matplotlib. It is + capable of creating output files in several graphical formats, + including EPS, PDF, PS, PNG, and SVG. +</longdescription> + <upstream> + <remote-id type="pypi">APLpy</remote-id> + </upstream> +</pkgmetadata> |