astropy / pyregion

ds9 region parser for python
https://pyregion.readthedocs.io
MIT License
39 stars 38 forks source link

register pyregion-2.2 on Anaconda #162

Open masasakano opened 3 months ago

masasakano commented 3 months ago

pyregion-2.1 does not work with recent few versions of numpy; specifically it fails with an exception (always or sometimes?) from numpy-1.23 onwards (the current version is numpy-1.26 as of March 2024) because pyregion-2.1 uses the long-deprecated and now removed numpy.asscalar. See numpy's release note https://numpy.org/doc/stable/release/1.23.0-notes.html

The incompatibility is fixed at pyregion-2.2. The current version of pyregion in PyPi is 2.2, so it is fine.

However, those in Conda::forge and Conda/astropy are both pyregion-2.1.1. Thus, they do not work with new installation via conda, as recent numPy would be installed in default.

Anaconda/conda is a popular Python-package-management framework for scientists. Could you register a newer version of pyregion on Conda servers, please?