-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from BvB93/wheels
BLD: Add workflows for building linux aarch64 and macos x86_68 wheels
- Loading branch information
Showing
13 changed files
with
97 additions
and
34 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 |
---|---|---|
|
@@ -22,6 +22,8 @@ jobs: | |
matrix: | ||
buildplat: | ||
- [ubuntu-20.04, manylinux_x86_64] | ||
- [ubuntu-20.04, manylinux_aarch64] | ||
- [macos-10.15, macosx_x86_64] | ||
version: | ||
- "cp37" | ||
- "cp38" | ||
|
@@ -31,11 +33,37 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build wheels | ||
- name: Set up QEMU | ||
if: matrix.buildplat[1] == 'manylinux_aarch64' | ||
uses: docker/setup-qemu-action@v1 | ||
with: | ||
platforms: arm64 | ||
|
||
- name: Get MacOS build dependencies | ||
if: matrix.buildplat[1] == 'macosx_x86_64' | ||
run: | | ||
git clone https://github.com/nlesc-nano/nano-qmflows-manylinux | ||
cd nano-qmflows-manylinux/macos | ||
tar -xzf macos_deps.tar.gz | ||
cp -r output/bin/* /usr/local/bin/ | ||
cp -r output/lib/* /usr/local/lib/ | ||
cp -r output/include/* /usr/local/include/ | ||
cp -r output/share/* /usr/local/share/ | ||
- name: Build wheels (x86_64) | ||
uses: pypa/[email protected] | ||
if: matrix.buildplat[1] != 'manylinux_aarch64' | ||
env: | ||
CIBW_BUILD: ${{ matrix.version }}-${{ matrix.buildplat[1] }} | ||
|
||
- name: Build wheels (aarch64) | ||
uses: pypa/[email protected] | ||
if: matrix.buildplat[1] == 'manylinux_aarch64' | ||
env: | ||
CIBW_BUILD: ${{ matrix.version }}-${{ matrix.buildplat[1] }} | ||
CIBW_ARCHS_LINUX: aarch64 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
|
@@ -82,7 +110,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: Install CP2K | ||
run: bash scripts/download_cp2k.sh 9.1 | ||
run: bash scripts/download_cp2k.sh x86_64 9.1 | ||
|
||
- name: Info CP2K | ||
run: cp2k.popt --version | ||
|
@@ -151,6 +179,7 @@ jobs: | |
twine check dist/* | ||
- name: Publish wheels | ||
if: github.event_name == 'release' | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __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 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
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,11 @@ | ||
pydocstyle | ||
pycodestyle | ||
|
||
# Mypy-related stuff | ||
mypy | ||
qmflows | ||
numpy>=1.21 | ||
types-pyyaml | ||
types-setuptools | ||
pyparsing>=3.0.8 | ||
Nano-Utils>=2.0.0 |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""The Nano-QMFlows version.""" | ||
|
||
__version__ = '0.13.2.dev0' | ||
__version__ = '0.13.2' |
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
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
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