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/fitsio | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/fitsio')
-rw-r--r-- | dev-python/fitsio/Manifest | 4 | ||||
-rw-r--r-- | dev-python/fitsio/files/fitsio-0.9.11-test-failures.patch | 38 | ||||
-rw-r--r-- | dev-python/fitsio/fitsio-0.9.11.ebuild | 40 | ||||
-rw-r--r-- | dev-python/fitsio/metadata.xml | 21 |
4 files changed, 103 insertions, 0 deletions
diff --git a/dev-python/fitsio/Manifest b/dev-python/fitsio/Manifest new file mode 100644 index 000000000000..a4d9d4e4876a --- /dev/null +++ b/dev-python/fitsio/Manifest @@ -0,0 +1,4 @@ +AUX fitsio-0.9.11-test-failures.patch 1560 BLAKE2B 3299a43eda8df89467474c51dec85af9edb8af52c93958e49834317439d440a0993ef6311002a4cddc4cde6aed42ed355dbafcf4f6ecbe98b81d60b9763c1c03 SHA512 224ae91e65d4b5f24cd64f3ab389940bfa58801822ad090966c4c570d5c9fb568588b3efa1dab73c2ebbbd0b5f802c2364fda31097811da78c09903814613c6b +DIST fitsio-0.9.11.tar.gz 6020222 BLAKE2B a71a0a6a026999b06dce54beb48fab2f510951099788b51456a6e07057daa7c911d5a2841d5f15a397705459daf081ff91bff1014782c93cb1dd76faf0ef2e1d SHA512 751b9612fe051f128d8f5dea61e2d119409293051a130ee3e18836181637e8c8daea757a715012fd024678d00e234e8b6c0cc0c9229c2bd9a406db312e4607d7 +EBUILD fitsio-0.9.11.ebuild 944 BLAKE2B a297294453f75c5f39be1eae8d30ac23090e1ddfd4339ce382f734f64574257923515d1f11d2247533a87e2c6d98d57594114c0211270feeadb5fb01400eeb80 SHA512 bb5e7bc6d307595cd5ee9258bea43cec4213917d5efcd2e65096da7dc04fd95674a6fefed304e865e06436c2512c9ee2cd8c912228ae8718582a75a3f0c286ab +MISC metadata.xml 930 BLAKE2B 495700f368bc6c69ed91745ec7d2847c5cca1690c454bc3b69acbf34eefbacb5b398bf7b56292dc25f2c642a91acc0e2ca054a2a578827aef3c4f95a07a75bf9 SHA512 ef4d3c9838e4e151b16febdacb9fb3b3538763dfb0c08b43ad73a9d9ecbdb275d91152b64b400aec8e3d337f08f3aa46cc166251e34142a68514135d6ae314d4 diff --git a/dev-python/fitsio/files/fitsio-0.9.11-test-failures.patch b/dev-python/fitsio/files/fitsio-0.9.11-test-failures.patch new file mode 100644 index 000000000000..243913dc659e --- /dev/null +++ b/dev-python/fitsio/files/fitsio-0.9.11-test-failures.patch @@ -0,0 +1,38 @@ +From: Ole Streicher <olebole@debian.org> +Date: Fri, 15 Jul 2016 08:46:15 +0200 +Subject: Mark failures that are known to fail with the original cfitsio + +--- + fitsio/test.py | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/fitsio/test.py b/fitsio/test.py +index bafde15..49a4b3b 100644 +--- a/fitsio/test.py ++++ b/fitsio/test.py +@@ -545,7 +545,7 @@ class TestReadWrite(unittest.TestCase): + try: + with fitsio.FITS(fname,'rw',clobber=True) as fits: + # note i8 not supported for compressed! +- dtypes = ['u1','i1','u2','i2','u4','i4','f4','f8'] ++ dtypes = ['u1','i1', 'i2','u4','i4','f4','f8'] + + for dtype in dtypes: + data = numpy.arange(5*20,dtype=dtype).reshape(5,20) +@@ -569,7 +569,7 @@ class TestReadWrite(unittest.TestCase): + try: + with fitsio.FITS(fname,'rw',clobber=True) as fits: + # note i8 not supported for compressed! +- dtypes = ['u1','i1','u2','i2','u4','i4','f4','f8'] ++ dtypes = ['u1','i1', 'i2','u4','i4','f4','f8'] + + for dtype in dtypes: + data = numpy.arange(5*20,dtype=dtype).reshape(5,20) +@@ -1365,6 +1365,7 @@ class TestReadWrite(unittest.TestCase): + if os.path.exists(fname): + os.remove(fname) + ++ @unittest.skip("bzip2 is not supported with debian cfitsio package") + def testBz2Read(self): + ''' + Write a normal .fits file, run bzip2 on it, then read the bz2 diff --git a/dev-python/fitsio/fitsio-0.9.11.ebuild b/dev-python/fitsio/fitsio-0.9.11.ebuild new file mode 100644 index 000000000000..cf3d78bf88dd --- /dev/null +++ b/dev-python/fitsio/fitsio-0.9.11.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Python library to read from and write to FITS files" +HOMEPAGE="https://github.com/esheldon/fitsio" +SRC_URI="https://github.com/esheldon/fitsio/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + >=dev-python/numpy-1.11[${PYTHON_USEDEP}] + sci-libs/cfitsio:0= +" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] +" + +PATCHES=( "${FILESDIR}"/${P}-test-failures.patch ) + +python_prepare_all() { + sed -e '/self.use_system_fitsio/s/False/True/' \ + -i setup.py || die + distutils-r1_python_prepare_all +} + +python_test() { + distutils_install_for_testing + pushd "${TEST_DIR}"/ || die + ${PYTHON} -c "import fitsio; exit(fitsio.test.test())" || die + popd > /dev/null || die +} diff --git a/dev-python/fitsio/metadata.xml b/dev-python/fitsio/metadata.xml new file mode 100644 index 000000000000..b7f5bc4ce9ac --- /dev/null +++ b/dev-python/fitsio/metadata.xml @@ -0,0 +1,21 @@ +<?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"> + Fitsio provides an easy to use object-oriented API including + providing a Numpy interface to FITS files read from CFITSIO. It + allows direct access to the columns of a FITS binary table which can + be useful for reading large fits files. Compared to astropy.io.fits, + this package is closer to the underlying cfitsio library. + Fitsio also exposes a microlanguage (implemented in CFITSIO) for + making efficient SQL-like queries of tables (single tables only + though–no joins or anything like that). + </longdescription> + <upstream> + <remote-id type="github">esheldon/fitsio</remote-id> + </upstream> +</pkgmetadata> |