summaryrefslogtreecommitdiff
path: root/dev-python/montage-wrapper
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-01-15 15:51:32 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-01-15 15:51:32 +0000
commit21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch)
treee1810a4b135afce04b34862ef0fab2bfaeb8aeca /dev-python/montage-wrapper
parent7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff)
gentoo resync : 15.01.2020
Diffstat (limited to 'dev-python/montage-wrapper')
-rw-r--r--dev-python/montage-wrapper/Manifest8
-rw-r--r--dev-python/montage-wrapper/files/montage-wrapper-0.9.8-fix_tests.patch40
-rw-r--r--dev-python/montage-wrapper/files/montage-wrapper-0.9.8-increase_rtol.patch17
-rw-r--r--dev-python/montage-wrapper/files/montage-wrapper-0.9.8-use_configparser.patch18
-rw-r--r--dev-python/montage-wrapper/metadata.xml17
-rw-r--r--dev-python/montage-wrapper/montage-wrapper-0.9.8.ebuild51
-rw-r--r--dev-python/montage-wrapper/montage-wrapper-0.9.9.ebuild43
7 files changed, 0 insertions, 194 deletions
diff --git a/dev-python/montage-wrapper/Manifest b/dev-python/montage-wrapper/Manifest
deleted file mode 100644
index cd773b1f9271..000000000000
--- a/dev-python/montage-wrapper/Manifest
+++ /dev/null
@@ -1,8 +0,0 @@
-AUX montage-wrapper-0.9.8-fix_tests.patch 2291 BLAKE2B 0b5f121acda42c76341b52c52e88fd551021730b89af2239e03a06aaa4c7756624068a5dd71e8e87a921c9661454f1cfc36f839a1ca49b6e1e85614aa4406cb5 SHA512 1466905009a5dadd1f6cf95ab4b97384d2332cac850f61f8766dc7a9b07454fa1c3840e9b5720325db515e36ee8c321610a7ae1c5c24c0272f2f5fe25eafe226
-AUX montage-wrapper-0.9.8-increase_rtol.patch 872 BLAKE2B 7ec522c84cfc987ffe1dba6d893849ab2ccc109e2d8f800c47361108b10ef5dd8b725aaa08522975ef5cea6e82fc6b7f2822dbb5d776ea0f582bd9eecc8ff3a9 SHA512 221f0549abef1a1a7a5d2a6edc47da96c54fecd0fe3d4a762153309523731194bb9254fa352ca88eaa13e0cabeae2913ca5313b2dc4feaba705a9af6df92ff12
-AUX montage-wrapper-0.9.8-use_configparser.patch 533 BLAKE2B c39cd970eae5063c60727d0f35661f5b877ae72ed527d6c28c657f886248c6d4c3e1af4ef87eb73f6a4915746d8a69eedf249e7aec2216235a33af40a173c9b3 SHA512 ed81511da9665429ffbcf2424db7aefa63f0f0a93932380c3685d90918b30a45970f658a8ef69d860c23f216da473884c816b56ffa49d763a620fabf2997c042
-DIST montage-wrapper-0.9.8.tar.gz 208240 BLAKE2B 697eb310207cdf760f1d2ae23a840717817e85ff118886d475c73787aed4a4b644f5ab70d551686a4a746af001321846af76b9c7911ddd24943d30bd5afa128e SHA512 a9aeb48f86d055448fdfed3a5c3762b554627db10f1374cbd3f7af6002721ae04e9f47828c2084147be40f79c1c4ce6e56568bf61a6cdd78a31ce91de6365ec1
-DIST montage-wrapper-0.9.9.tar.gz 187490 BLAKE2B 1c7f06e1c168a96b574ce7a65c99aad9482a523b0c6288e8686410fdd4c9102a27cf098ab5e56895888e17147f20d8c5eb0c8785527543757b6a4166a409e4e0 SHA512 a113a9f1ca03ca158ed6d8a4520c6710804a5ac10bae3dd0c0231390f771479c43f0cdd08e302c59ac1d608c4865d4b0d7a3a233ad068d40d3f1c0efbc343533
-EBUILD montage-wrapper-0.9.8.ebuild 1166 BLAKE2B 76d4a78451f9135c51ee8e85dc617ece3e11391fe740b16d971f0987d744fd922b1d323a63ca6bd9dd5bc2439adfc3bb3503197e1166b4177846a5fce0f87077 SHA512 b9db89fbf4cea6fddedea009c54dafb2ca4a82164a3bbbd41030548967ee868d3c10cd3f68b859d0989bbec7e060a1a967e9493cb9db2a30013d2e2d9c32a386
-EBUILD montage-wrapper-0.9.9.ebuild 1009 BLAKE2B d7c0b5686d2b3b9c7d2589783c60b81da0daa824149c774dbe613b11975427921f22cb9feedd1b64f6165e13fb7cced912d4b02d758f1c4113f29435f23a747f SHA512 660529cbbab37f6350676c48e48e4d3ac3bee14cdea41fc349e837571a1d5530e38ed237ad1fadc284ec10d79cfdfd09706dd7bb6be6c51dc9453204a790fae8
-MISC metadata.xml 640 BLAKE2B 45c551a8657052c12d943a5a6ba3a14755574f7e7b1157f5a237a67e5575f07eb4354d3b310b949d7851a4da43d2fd76d724c14bb5d7a7b2a924e84a1234541c SHA512 ebc6b77919fd327e395610b3479a1bb84b2457cdd08ba850a0e9098b95284705fea84092eeb2322e51686dd8214cd281b681cbc8d28bc0d99068f73ca685cb83
diff --git a/dev-python/montage-wrapper/files/montage-wrapper-0.9.8-fix_tests.patch b/dev-python/montage-wrapper/files/montage-wrapper-0.9.8-fix_tests.patch
deleted file mode 100644
index 8d611b72f81a..000000000000
--- a/dev-python/montage-wrapper/files/montage-wrapper-0.9.8-fix_tests.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-Author: Ole Streicher <olebole@debian.org>
-Description: Make sure that opened FITS files are closed after the test
---- a/montage_wrapper/tests/test_wrappers.py
-+++ b/montage_wrapper/tests/test_wrappers.py
-@@ -46,21 +46,21 @@
-
- def test_mosaic(self):
- mosaic(os.path.join(self.tmpdir, 'raw'),os.path.join(self.tmpdir, 'mosaic'), hdu=0)
-- hdu = fits.open(os.path.join(self.tmpdir, 'mosaic', 'mosaic.fits'))[0]
-- assert hdu.data.shape == (288, 282)
-- valid = hdu.data[~np.isnan(hdu.data)]
-- assert len(valid) == 65029
-- assert_allclose(np.std(valid), 0.12658458001333581, 1e-5)
-- assert_allclose(np.mean(valid), 0.4995945318627074, 1e-5)
-- assert_allclose(np.median(valid), 0.5003376603126526, 1e-5)
-+ with fits.open(os.path.join(self.tmpdir, 'mosaic', 'mosaic.fits')) as hdu:
-+ assert hdu[0].data.shape == (288, 282)
-+ valid = hdu[0].data[~np.isnan(hdu[0].data)]
-+ assert len(valid) == 65029
-+ assert_allclose(np.std(valid), 0.12658458001333581, 1e-5)
-+ assert_allclose(np.mean(valid), 0.4995945318627074, 1e-5)
-+ assert_allclose(np.median(valid), 0.5003376603126526, 1e-5)
-
- @pytest.mark.xfail() # results are not consistent on different machines
- def test_mosaic_background_match(self):
- mosaic(os.path.join(self.tmpdir, 'raw'),os.path.join(self.tmpdir, 'mosaic_bkgmatch'), background_match=True)
-- hdu = fits.open(os.path.join(self.tmpdir, 'mosaic_bkgmatch', 'mosaic.fits'))[0]
-- assert hdu.data.shape == (288, 282)
-- valid = hdu.data[~np.isnan(hdu.data)]
-- assert len(valid) == 65029
-- assert_allclose(np.std(valid), 0.12661606622654725)
-- assert_allclose(np.mean(valid), 0.4994805202294361)
-- assert_allclose(np.median(valid), 0.5002447366714478)
-+ with fits.open(os.path.join(self.tmpdir, 'mosaic_bkgmatch', 'mosaic.fits')) as hdu:
-+ assert hdu[0].data.shape == (288, 282)
-+ valid = hdu[0].data[~np.isnan(hdu[0].data)]
-+ assert len(valid) == 65029
-+ assert_allclose(np.std(valid), 0.12661606622654725)
-+ assert_allclose(np.mean(valid), 0.4994805202294361)
-+ assert_allclose(np.median(valid), 0.5002447366714478)
diff --git a/dev-python/montage-wrapper/files/montage-wrapper-0.9.8-increase_rtol.patch b/dev-python/montage-wrapper/files/montage-wrapper-0.9.8-increase_rtol.patch
deleted file mode 100644
index 285b525a4df5..000000000000
--- a/dev-python/montage-wrapper/files/montage-wrapper-0.9.8-increase_rtol.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Author: Ole Streicher <olebole@debian.org>
-Description: Increase rtol of asserts to let the tests succeed with montage-4.0
---- a/montage_wrapper/tests/test_wrappers.py
-+++ b/montage_wrapper/tests/test_wrappers.py
-@@ -50,9 +50,9 @@
- assert hdu.data.shape == (288, 282)
- valid = hdu.data[~np.isnan(hdu.data)]
- assert len(valid) == 65029
-- assert_allclose(np.std(valid), 0.12658458001333581)
-- assert_allclose(np.mean(valid), 0.4995945318627074)
-- assert_allclose(np.median(valid), 0.5003376603126526)
-+ assert_allclose(np.std(valid), 0.12658458001333581, 1e-5)
-+ assert_allclose(np.mean(valid), 0.4995945318627074, 1e-5)
-+ assert_allclose(np.median(valid), 0.5003376603126526, 1e-5)
-
- @pytest.mark.xfail() # results are not consistent on different machines
- def test_mosaic_background_match(self):
diff --git a/dev-python/montage-wrapper/files/montage-wrapper-0.9.8-use_configparser.patch b/dev-python/montage-wrapper/files/montage-wrapper-0.9.8-use_configparser.patch
deleted file mode 100644
index 082c3678e125..000000000000
--- a/dev-python/montage-wrapper/files/montage-wrapper-0.9.8-use_configparser.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-Author: Vincent Prat <vinceprat@free.fr>
-Description: Use ConfigParser module instead of the one embedded in distutils.config
---- a/setup.py
-+++ b/setup.py
-@@ -21,8 +21,11 @@
- from astropy_helpers.version_helpers import generate_version_py
-
- # Get some values from the setup.cfg
--from distutils import config
--conf = config.ConfigParser()
-+try:
-+ from configparser import ConfigParser
-+except:
-+ from ConfigParser import ConfigParser
-+conf = ConfigParser()
- conf.read(['setup.cfg'])
- metadata = dict(conf.items('metadata'))
-
diff --git a/dev-python/montage-wrapper/metadata.xml b/dev-python/montage-wrapper/metadata.xml
deleted file mode 100644
index aa3e481c13e8..000000000000
--- a/dev-python/montage-wrapper/metadata.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?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>
- This Astropy-affiliated package provides a python wrapper to the
- Montage Astronomical Image Mosaic Engine, including both functions to
- access individual Montage commands, and high-level functions to
- facilitate mosaicking and re-projecting.
-</longdescription>
- <upstream>
- <remote-id type="pypi">montage-wrapper</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/dev-python/montage-wrapper/montage-wrapper-0.9.8.ebuild b/dev-python/montage-wrapper/montage-wrapper-0.9.8.ebuild
deleted file mode 100644
index 15ec5160c747..000000000000
--- a/dev-python/montage-wrapper/montage-wrapper-0.9.8.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python{2_7,3_5} )
-
-inherit distutils-r1
-
-DESCRIPTION="Python wrapper for the Montage mosaicking toolkit"
-HOMEPAGE="http://www.astropy.org/montage-wrapper/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- dev-python/astropy[${PYTHON_USEDEP}]
- sci-astronomy/montage"
-DEPEND="
- dev-python/astropy[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
- test? ( sci-astronomy/montage )"
-
-PATCHES=(
- "${FILESDIR}/${P}-increase_rtol.patch"
- "${FILESDIR}/${P}-fix_tests.patch"
- "${FILESDIR}/${P}-use_configparser.patch"
-)
-
-python_prepare_all() {
- # use system astropy-helpers instead of bundled one
- sed -i -e '/auto_use/s/True/False/' setup.cfg || die
- distutils-r1_python_prepare_all
-}
-
-python_compile_all() {
- use doc && PYTHONPATH=".." emake -C docs html
-}
-
-python_test() {
- ${EPYTHON} setup.py test
-}
-
-python_install_all() {
- use doc && HTML_DOCS=( docs/_build/html/. )
- distutils-r1_python_install_all
-}
diff --git a/dev-python/montage-wrapper/montage-wrapper-0.9.9.ebuild b/dev-python/montage-wrapper/montage-wrapper-0.9.9.ebuild
deleted file mode 100644
index cd6d6d1e3979..000000000000
--- a/dev-python/montage-wrapper/montage-wrapper-0.9.9.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python{2_7,3_5,3_6} )
-
-inherit distutils-r1
-
-DESCRIPTION="Python wrapper for the Montage mosaicking toolkit"
-HOMEPAGE="http://www.astropy.org/montage-wrapper/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- dev-python/astropy[${PYTHON_USEDEP}]
- sci-astronomy/montage"
-DEPEND="
- dev-python/astropy[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
- test? ( sci-astronomy/montage )"
-
-python_prepare_all() {
- # use system astropy-helpers instead of bundled one
- sed -i -e '/auto_use/s/True/False/' setup.cfg || die
- distutils-r1_python_prepare_all
-}
-
-python_compile_all() {
- if use doc; then
- PYTHONPATH=".." emake -C docs html
- HTML_DOCS=( docs/_build/html/. )
- fi
-}
-
-python_test() {
- esetup.py test || die "tests failed with ${EPYTHON}"
-}