Skip to content

Commit

Permalink
Switch to trusted publishing; force manylinux2014 wheel builds
Browse files Browse the repository at this point in the history
Signed-off-by: pdmurray <peynmurray@gmail.com>
  • Loading branch information
peytondmurray committed Jul 21, 2023
1 parent 270ba78 commit ac8575a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
name: Publish Python packages on PyPI
needs: [build-sdist, build-wheels]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/openvdb
permissions:
id-token: write
steps:
- name:  Download artifacts from commit ${{ github.sha }}
uses: dawidd6/action-download-artifact@v2
Expand All @@ -28,15 +33,11 @@ on:
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ inputs.test_pypi }}
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
packages_dir: dist

- name: 🎉 Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ !inputs.test_pypi }}
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist
10 changes: 10 additions & 0 deletions openvdb/openvdb/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@ cmake.minimum-version = "3.18"
[tool.scikit-build.cmake.define]
OPENVDB_BUILD_CORE = "ON"
USE_NUMPY = "ON"

[tool.cibuildwheel]
manylinux-x86_64-image = "manylinux2014"
manylinux-i686-image = "manylinux2014"
manylinux-aarch64-image = "manylinux2014"
manylinux-ppc64le-image = "manylinux2014"
manylinux-s390x-image = "manylinux2014"
manylinux-pypy_x86_64-image = "manylinux2014"
manylinux-pypy_i686-image = "manylinux2014"
manylinux-pypy_aarch64-image = "manylinux2014"

0 comments on commit ac8575a

Please sign in to comment.