diff --git a/.github/workflows/buildAndUploadPyPi.yml b/.github/workflows/buildAndUploadPyPi.yml index 73ee3c014..291bbe739 100644 --- a/.github/workflows/buildAndUploadPyPi.yml +++ b/.github/workflows/buildAndUploadPyPi.yml @@ -17,16 +17,20 @@ jobs: # os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-13, macos-14] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 + # - name: Install uv + # uses: astral-sh/setup-uv@v7 + - name: Build wheels - uses: pypa/cibuildwheel@v3.0.0 + uses: pypa/cibuildwheel@v3.4.0 env: CIBW_PLATFORM: ${{ matrix.platform || 'auto' }} + # CIBW_BUILD_FRONTEND: "build[uv]" - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl @@ -35,12 +39,12 @@ jobs: name: Build source distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: 3.12 - name: Install dependencies @@ -58,7 +62,7 @@ jobs: # - name: Build sdist # run: pipx run build --sdist - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 with: name: cibw-sdist path: dist/*.tar.gz @@ -73,7 +77,7 @@ jobs: # or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this) # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v8 with: # unpacks all CIBW artifacts into dist/ pattern: cibw-* diff --git a/pyproject.toml b/pyproject.toml index afe62dd2b..dd7e4c5be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] # Cython dependency is optional, see setup.py for details. # For the package (run-time) dependencies, see setup.cfg. -requires = ["setuptools", "numpy<2.0", "Cython>=3.0.10", "setuptools-scm"] +requires = ["setuptools", "numpy", "Cython>=3.0.10", "setuptools-scm"] build-backend = "setuptools.build_meta" [project] @@ -64,7 +64,7 @@ version_file = "avaframe/RELEASE-VERSION.txt" #build = ["cp312-*"] skip = ["*musllinux*","*-win32"] build-verbosity = 1 -before-build = "pip install 'cython>=3.0.10' 'numpy<2.0'" +# before-build = "uv pip install --system 'cython>=3.0.10' 'numpy<2.0'" [tool.cibuildwheel.linux]