astropy / astropy/pyregion

register pyregion-2.2 on Anaconda

Open
#162 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
41
Forks
41
PR merge metrics
No merged PRs in 30d

Description

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

The incompatibility is fixed at pyregion-2.2.
The current version of pyregion in [PyPi](https://pypi.org/project/pyregion/) is 2.2, so it is fine.

However, those in [Conda::forge](https://anaconda.org/conda-forge/pyregion) and Conda/[astropy](https://anaconda.org/astropy/pyregion) 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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Check the conda-forge and astropy/Conda pyregion package entries, then compare their 2.1.1 versions with the PyPI 2.2 release. Update the relevant package registration so a new conda installation receives pyregion 2.2 and works with NumPy 1.23 or newer.

Written by the indexing model from the issue text.

Assessment

Tech stack
anaconda, python
Domain
release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.