diff --git a/.github/workflows/distribution.yml b/.github/workflows/distribution.yml index 122f01ae03d..183c2451604 100644 --- a/.github/workflows/distribution.yml +++ b/.github/workflows/distribution.yml @@ -22,7 +22,7 @@ jobs: with: python-version: 3.8 - name: Install cibuildwheel - run: python -m pip install cibuildwheel + run: python -m pip install cibuildwheel==2.3.1 - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse env: diff --git a/pyproject.toml b/pyproject.toml index af1b3aa113d..0810805586a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,12 @@ [build-system] requires = ["setuptools", "wheel", - "cython>=3.0.0", + "cython>=0.29.21", "numpy==1.16.0; python_version <= '3.7'", "numpy==1.17.3; python_version == '3.8'", "numpy==1.19.3; python_version == '3.9'", "numpy==1.21.4; python_version =='3.10'", - "numpy==1.23.4; python_version=='3.11'", - "numpy; python_version >= '3.12'", + "numpy; python_version >= '3.11'", ] # To ensure the best compatibility, try to match the numpy reqs diff --git a/requirements.txt b/requirements.txt index 3b5eb6d57a0..377238db4a3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ Mako>=1.0.1 scipy>=0.16.0 matplotlib>=2.0.0 # Remove the upper bound ASAP, this is a temporary fix!!!!!! -numpy>=1.16.0,!=1.19.0,<2.0.0 +numpy>=1.16.0,!=1.19.0,<1.24.0 pillow h5py>=3.0.0,!=3.7.0 jinja2 diff --git a/setup.py b/setup.py index 01d381abc2f..894dffaf0a2 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setup_requires = ['numpy>=1.16.0'] install_requires = setup_requires + [ 'cython>=0.29', - 'numpy>=1.16.0,!=1.19.0,<2.0.0', + 'numpy>=1.16.0,!=1.19.0', 'scipy>=0.16.0', 'astropy>=2.0.3,!=4.2.1,!=4.0.5', 'matplotlib>=1.5.1',