forked from pyscf/pyscf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cibuildwheel for macos pypi release (pyscf#1802)
* Updates * Use cibuildwheel for macos pypi release
- Loading branch information
Showing
2 changed files
with
11 additions
and
15 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 |
---|---|---|
|
@@ -99,31 +99,27 @@ jobs: | |
verbose: true | ||
|
||
release-pypi-macos: | ||
name: Build wheels on macos | ||
runs-on: macos-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build wheels | ||
run: | | ||
pip install wheel | ||
export CMAKE_CONFIGURE_ARGS="-DWITH_F12=OFF" | ||
python setup.py bdist_wheel -v --dist-dir ${{ github.workspace }}/mac-wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: cp*-macosx_x86_64 cp*-macosx_arm64 | ||
CIBW_SKIP: cp36-macosx_* | ||
CMAKE_CONFIGURE_ARGS: "-DWITH_F12=OFF" | ||
with: | ||
output-dir: mac-wheels | ||
- name: List available wheels | ||
run: | | ||
ls ${{ github.workspace }}/mac-wheels | ||
ls mac-wheels | ||
- name: Publish to PyPI | ||
run: | | ||
pip install twine | ||
export TWINE_USERNAME=__token__ | ||
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}" | ||
twine upload --verbose ${{ github.workspace }}/mac-wheels/* | ||
twine upload --verbose /mac-wheels/* | ||
release-conda-linux: | ||
runs-on: ubuntu-latest | ||
|
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