diff --git a/pyirf/utils.py b/pyirf/utils.py index a75eaeb98..d5ed730e5 100644 --- a/pyirf/utils.py +++ b/pyirf/utils.py @@ -1,6 +1,6 @@ import numpy as np import astropy.units as u -from astropy.coordinates.angle_utilities import angular_separation +from astropy.coordinates import angular_separation from .exceptions import MissingColumns, WrongColumnUnit diff --git a/pyproject.toml b/pyproject.toml index 95c0fe5d2..62076e3a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools >= 40.6.0", "setuptools_scm[toml]>=3.4"] +requires = ["setuptools>=60", "setuptools-scm[toml]>=8.0"] build-backend = "setuptools.build_meta" [tool.towncrier] diff --git a/setup.py b/setup.py index 0fb1a557a..e06b99820 100644 --- a/setup.py +++ b/setup.py @@ -46,9 +46,8 @@ use_scm_version={"write_to": os.path.join("pyirf", "_version.py")}, packages=find_packages(exclude=['pyirf._dev_version']), install_requires=[ - "astropy>=5.3", - "matplotlib", - "numpy>=1.18", + "astropy>=5.3,<7.0.0a0", + "numpy>=1.21", "scipy", "tqdm", ],