diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index c359c7e..7a37458 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -29,7 +29,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [macos-latest] steps: - uses: actions/checkout@v4 @@ -47,12 +47,22 @@ jobs: choco install rtools -y --no-progress --force --version=4.0.0.20220206 echo "c:\rtools40\ucrt64\bin;" >> $env:GITHUB_PATH + # Adapted from https://github.com/scipy/scipy/blob/main/tools/wheels/cibw_before_build_macos.sh + - name: Install GFortran for macOS arm64 + if: runner.os == 'macOS' + run: | + curl -L https://github.com/isuruf/gcc/releases/download/gcc-11.3.0-2/gfortran-darwin-x86_64-native.tar.gz -o gfortran.tar.gz + shasum -c <(echo '981367dd0ad4335613e91bbee453d60b6669f5d7e976d18c7bdb7f1966f26ae4 gfortran.tar.gz') + sudo tar -xv -C /opt -f gfortran.tar.gz + - name: Build wheels uses: pypa/cibuildwheel@v2.16 env: + CIBW_BUILD_VERBOSITY: 1 CIBW_ARCHS_LINUX: auto aarch64 CIBW_ARCHS_WINDOWS: AMD64 - CIBW_ENVIRONMENT_MACOS: FC=gfortran-11 + CIBW_ENVIRONMENT_MACOS: FC=/opt/gfortran-darwin-x86_64-native/bin/gfortran + CIBW_ARCHS_MACOS: arm64 # Skip musllinux wheels, which take a long time to build because Numpy must be built from source # Skip PyPy wheels # Skip 32-bit Intel wheels diff --git a/pyproject.toml b/pyproject.toml index a987fa3..f3a3ab6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ classifiers = [ "Topic :: Scientific/Engineering :: Astronomy" ] license = { text = "NOSA" } -requires-python = ">=3.9" +requires-python = ">=3.9, <3.10" dependencies = ["astropy", "numpy>=1.19"] dynamic = [ "version" ]