From 477c5477112b780ada0fc3bb37d8a6a0ffb48977 Mon Sep 17 00:00:00 2001 From: Mikle Kolyada Date: Sat, 28 Dec 2019 19:53:28 +0300 Subject: [PATCH] dev-python/montage-wrapper: remove last-rited pkg Signed-off-by: Mikle Kolyada --- dev-python/montage-wrapper/Manifest | 2 - .../montage-wrapper-0.9.8-fix_tests.patch | 40 --------------- .../montage-wrapper-0.9.8-increase_rtol.patch | 17 ------- ...ntage-wrapper-0.9.8-use_configparser.patch | 18 ------- dev-python/montage-wrapper/metadata.xml | 17 ------- .../montage-wrapper-0.9.8.ebuild | 51 ------------------- .../montage-wrapper-0.9.9.ebuild | 43 ---------------- 7 files changed, 188 deletions(-) delete mode 100644 dev-python/montage-wrapper/Manifest delete mode 100644 dev-python/montage-wrapper/files/montage-wrapper-0.9.8-fix_tests.patch delete mode 100644 dev-python/montage-wrapper/files/montage-wrapper-0.9.8-increase_rtol.patch delete mode 100644 dev-python/montage-wrapper/files/montage-wrapper-0.9.8-use_configparser.patch delete mode 100644 dev-python/montage-wrapper/metadata.xml delete mode 100644 dev-python/montage-wrapper/montage-wrapper-0.9.8.ebuild delete mode 100644 dev-python/montage-wrapper/montage-wrapper-0.9.9.ebuild diff --git a/dev-python/montage-wrapper/Manifest b/dev-python/montage-wrapper/Manifest deleted file mode 100644 index 374877e07335..000000000000 --- a/dev-python/montage-wrapper/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -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 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 -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 -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 -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 @@ - - - - - sci-astronomy@gentoo.org - Gentoo Astronomy Project - - - 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. - - - montage-wrapper - - 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 20c9351818be..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=( python3_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 0bbad5312f58..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=( python3_{5,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}" -} -- 2.26.2