summaryrefslogtreecommitdiff
path: root/dev-python/fitsio
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-06-18 19:03:03 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-06-18 19:03:03 +0000
commit6fc9b61fff283f41a751b4da8807ea4c44b836ce (patch)
tree2d0e00795106a17f8b851599a21032805424d9a8 /dev-python/fitsio
parentd1160896c0ed89191ee51165db80ef127206aa20 (diff)
downloadbaldeagleos-repo-6fc9b61fff283f41a751b4da8807ea4c44b836ce.tar.gz
baldeagleos-repo-6fc9b61fff283f41a751b4da8807ea4c44b836ce.tar.xz
baldeagleos-repo-6fc9b61fff283f41a751b4da8807ea4c44b836ce.zip
Adding metadata
Diffstat (limited to 'dev-python/fitsio')
-rw-r--r--dev-python/fitsio/Manifest1
-rw-r--r--dev-python/fitsio/files/fitsio-1.2.6-numpy-2.3.patch49
-rw-r--r--dev-python/fitsio/fitsio-1.2.5.ebuild41
-rw-r--r--dev-python/fitsio/fitsio-1.2.6-r1.ebuild (renamed from dev-python/fitsio/fitsio-1.2.6.ebuild)5
4 files changed, 54 insertions, 42 deletions
diff --git a/dev-python/fitsio/Manifest b/dev-python/fitsio/Manifest
index 8a2173ee67fc..988e869511f6 100644
--- a/dev-python/fitsio/Manifest
+++ b/dev-python/fitsio/Manifest
@@ -1,2 +1 @@
-DIST fitsio-1.2.5.gh.tar.gz 4540023 BLAKE2B 9a10a4643524bc8e1219eea19776c067ab14c929825baf2ebd3b9b4565db975ea545397359e24eb452f573a8a068df7452b374c07b46ee88e30fb386e61509ac SHA512 e47e95561cc9b6ca7922b131c953d9f40608e4c755f86bd9b96e66f981b3427633631861e5e4e3eef546d207465021f404e3feae234db222244b6c8738c4a9fa
DIST fitsio-1.2.6.gh.tar.gz 4540865 BLAKE2B a5acb2cbc105ce055255196c840708414b4da46fa3274da8c617590d1ab96fc36da3c19a79bca6fd2525b0c1d10802881fbed70ad69a5aea2d969529f57ccf9f SHA512 e8ffed41633c261bdb4663745396d94a3e36e70feb9fe8bca32e0d46d4d126e94df2d723e4fbf82a4b910315b211ca3c9fba44fcba387649cb8f48c6a917463e
diff --git a/dev-python/fitsio/files/fitsio-1.2.6-numpy-2.3.patch b/dev-python/fitsio/files/fitsio-1.2.6-numpy-2.3.patch
new file mode 100644
index 000000000000..da2d7e7d175a
--- /dev/null
+++ b/dev-python/fitsio/files/fitsio-1.2.6-numpy-2.3.patch
@@ -0,0 +1,49 @@
+From b3b1af26b1c23a3e3e1b185b1e80bd7f55771fe7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Wed, 18 Jun 2025 10:57:02 +0200
+Subject: [PATCH] Replace deprecated `NPY_*` constants
+
+Replaced the deprecated `NPY_*` constants with `NPY_ARRAY_*`.
+The latter were introduced in NumPy 1.7, and the former were finally
+removed in 2.3.0.
+
+Fixes #429
+---
+ fitsio/fitsio_pywrap.c | 8 ++++----
+ setup.py | 4 ++--
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/fitsio/fitsio_pywrap.c b/fitsio/fitsio_pywrap.c
+index 8bba6be..957643d 100644
+--- a/fitsio/fitsio_pywrap.c
++++ b/fitsio/fitsio_pywrap.c
+@@ -2356,10 +2356,10 @@ int write_var_num_column(
+ int mindepth=1, maxdepth=0;
+ PyObject* context=NULL;
+ int requirements =
+- NPY_C_CONTIGUOUS
+- | NPY_ALIGNED
+- | NPY_NOTSWAPPED
+- | NPY_ELEMENTSTRIDES;
++ NPY_ARRAY_C_CONTIGUOUS
++ | NPY_ARRAY_ALIGNED
++ | NPY_ARRAY_NOTSWAPPED
++ | NPY_ARRAY_ELEMENTSTRIDES;
+
+ int res=0;
+
+diff --git a/setup.py b/setup.py
+index 7de67a7..ef549c5 100644
+--- a/setup.py
++++ b/setup.py
+@@ -327,8 +327,8 @@ def check_system_cfitsio_objects(self, obj_name):
+ url="https://github.com/esheldon/fitsio",
+ author="Erin Scott Sheldon",
+ author_email="erin.sheldon@gmail.com",
+- setup_requires=['numpy'],
+- install_requires=['numpy'],
++ setup_requires=['numpy>=1.7'],
++ install_requires=['numpy>=1.7'],
+ packages=find_packages(),
+ include_package_data=True,
+ ext_modules=[ext],
diff --git a/dev-python/fitsio/fitsio-1.2.5.ebuild b/dev-python/fitsio/fitsio-1.2.5.ebuild
deleted file mode 100644
index 0d0dbcc28c85..000000000000
--- a/dev-python/fitsio/fitsio-1.2.5.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9,10,11,12,13} )
-
-inherit distutils-r1
-
-DESCRIPTION="Python library to read from and write to FITS files"
-HOMEPAGE="
- https://github.com/esheldon/fitsio/
- https://pypi.org/project/fitsio/
-"
-SRC_URI="
- https://github.com/esheldon/fitsio/archive/${PV}.tar.gz
- -> ${P}.gh.tar.gz
-"
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-
-DEPEND="
- >=dev-python/numpy-1.11:=[${PYTHON_USEDEP}]
- >=sci-libs/cfitsio-4.4.0:0=
-"
-RDEPEND="
- ${DEPEND}
-"
-
-distutils_enable_tests pytest
-
-export FITSIO_USE_SYSTEM_FITSIO=1
-
-python_test() {
- cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
- epytest
-}
diff --git a/dev-python/fitsio/fitsio-1.2.6.ebuild b/dev-python/fitsio/fitsio-1.2.6-r1.ebuild
index ef2a0fd59f77..533576bfd154 100644
--- a/dev-python/fitsio/fitsio-1.2.6.ebuild
+++ b/dev-python/fitsio/fitsio-1.2.6-r1.ebuild
@@ -33,6 +33,11 @@ RDEPEND="
distutils_enable_tests pytest
+PATCHES=(
+ # https://github.com/esheldon/fitsio/pull/430
+ "${FILESDIR}/${P}-numpy-2.3.patch"
+)
+
export FITSIO_USE_SYSTEM_FITSIO=1
python_test() {