-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into release/0.6
- Loading branch information
Showing
8 changed files
with
140 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build and upload to PyPI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macos-10.15] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build sdist | ||
run: pipx run build --sdist | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: dist/*.tar.gz | ||
|
||
upload_pypi: | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
# upload to PyPI on every tag | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
# alternatively, to publish when a GitHub Release is created, use the following rule: | ||
# if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel>=0.33.0", | ||
"cython>=0.29.0", | ||
"oldest-supported-numpy" | ||
] | ||
|
||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.pytest.ini_options] | ||
junit_family= "legacy" | ||
filterwarnings = [ | ||
"ignore::FutureWarning", | ||
"ignore::PendingDeprecationWarning", | ||
"ignore::DeprecationWarning", | ||
# bogus numpy ABI warning (see numpy/#432) | ||
"ignore:.*numpy.dtype size changed.*:RuntimeWarning", | ||
"ignore:.*numpy.ufunc size changed.*:RuntimeWarning" | ||
] | ||
|
||
[tool.cibuildwheel] | ||
archs = ["auto64"] # 64-bit only | ||
skip = "pp* *musllinux*" # disable PyPy and musl-based wheels | ||
test-requires = "pytest pymeshfix" | ||
test-command = "pytest {project}/tests" | ||
|
||
[tool.cibuildwheel.macos] | ||
# https://cibuildwheel.readthedocs.io/en/stable/faq/#apple-silicon | ||
archs = ["x86_64", "universal2"] | ||
test-skip = ["*_arm64", "*_universal2:arm64"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.