Skip to content

Commit

Permalink
Update using '(cd .. && pipx run cruft create https://github.com/mkoe…
Browse files Browse the repository at this point in the history
…ppe/sage --checkout sagemath-environment-cookiecutter --directory=pkgs/sage-project-cookiecutter/sage_project_cookiecutter/sagemath-upstream-package-template --overwrite-if-exists)'
  • Loading branch information
Matthias Koeppe committed Jun 9, 2024
1 parent 30f9d2d commit 8e45bcd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/mkoeppe/sage",
"commit": "395ca6708b260eda0da376a1847260cf7c841ebd",
"commit": "efb7f3c3571532dfac58d5fab2326a45e1fc1370",
"checkout": "sagemath-environment-cookiecutter",
"context": {
"cookiecutter": {
Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
python3 -m pip install build
python3 -m build --sdist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: "dist/*.tar.gz"
name: dist
Expand All @@ -48,10 +48,10 @@ jobs:
arch: x86_64
- os: ubuntu-latest
arch: i686
- os: macos-latest
arch: auto
- os: macos-13
arch: x86_64
- os: macos-14
arch: auto
arch: arm64
env:
# SPKGs to install as system packages
SPKGS: _bootstrap _prereq
Expand All @@ -74,7 +74,7 @@ jobs:
repository: sagemath/sage
ref: develop

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
Expand All @@ -101,18 +101,19 @@ jobs:
mkdir -p unpacked
for pkg in cysignals; do
(cd unpacked && tar xfz - ) < dist/$pkg*.tar.gz
"${{ steps.python.outputs.python-path }}" -m pipx run cibuildwheel==2.17.0 unpacked/$pkg*
"${{ steps.python.outputs.python-path }}" -m pipx run cibuildwheel==2.18.0 unpacked/$pkg*
done
env:
# on pp310: build/src/cysignals/implementation.c:231:9: error: implicit declaration of function 'PyPyErr_SetInterrupt' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
CIBW_SKIP: "pp31*"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: ${{ matrix.os }}-${{ matrix.arch }}-wheels
path: ./wheelhouse/*.whl

pypi-publish:
# This needs to be a separate job because pypa/gh-action-pypi-publish cannot run on macOS
# https://github.com/pypa/gh-action-pypi-publish
name: Upload wheels to PyPI
needs: build_wheels
Expand All @@ -122,10 +123,11 @@ jobs:
CAN_DEPLOY: ${{ secrets.SAGEMATH_PYPI_API_TOKEN != '' }}
steps:

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: wheels
pattern: "*-*-wheels"
path: wheelhouse
merge-multiple: true

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 8e45bcd

Please sign in to comment.