-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to cibuildwheel for universal2 build
- Loading branch information
Showing
5 changed files
with
56 additions
and
21 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 |
---|---|---|
|
@@ -16,6 +16,10 @@ on: | |
types: | ||
- published | ||
|
||
env: | ||
CIBW_ARCHS_MACOS: auto universal2 | ||
CIBW_TEST_SKIP: "*universal2:arm64" | ||
|
||
jobs: | ||
buildsrc: | ||
name: Build source package | ||
|
@@ -31,40 +35,59 @@ jobs: | |
python -m pip install --upgrade pip | ||
pip install numpy | ||
- name: Build source package with setuptools | ||
run: | | ||
echo "prune bluesky/resources/graphics\nprune bluesky/resources/html\nprune bluesky/resources/navdata\nprune bluesky/resources/performance" >> MANIFEST.in | ||
python setup.py sdist | ||
run: python setup.py sdist | ||
- name: Store the source package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: python-package-distributions | ||
path: dist | ||
|
||
buildbin: | ||
name: Build binary package for ${{ matrix.os }} | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install numpy wheel | ||
- name: Build wheel with setuptools for ${{matrix.os}} | ||
run: python setup.py bdist_wheel | ||
- name: Store the binary wheel | ||
uses: actions/upload-artifact@v2 | ||
- uses: pypa/[email protected] | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: python-package-distributions | ||
path: dist | ||
path: ./wheelhouse/*.whl | ||
|
||
# buildbin: | ||
# name: Build binary package for ${{ matrix.os }} | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# matrix: | ||
# python-version: ["3.8", "3.9", "3.10"] | ||
# os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
# steps: | ||
# - uses: actions/checkout@v1 | ||
# - name: Set up Python ${{ matrix.python-version }} | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: ${{ matrix.python-version }} | ||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# pip install numpy wheel | ||
# - name: Build wheel with setuptools for ${{matrix.os}} | ||
# run: python setup.py bdist_wheel | ||
# - name: Store the binary wheel | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: python-package-distributions | ||
# path: dist | ||
|
||
upload_pypi: | ||
needs: [buildsrc, buildbin] | ||
|
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 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,3 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" |
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 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