forked from pyscf/pyscf
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release 2.4 * Fix macos pypi wheel
- Loading branch information
Showing
7 changed files
with
101 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 |
---|---|---|
|
@@ -97,15 +97,16 @@ jobs: | |
packages-dir: ${{ github.workspace }}/dist | ||
verbose: true | ||
|
||
release-pypi-macos: | ||
name: Build wheels on macos | ||
runs-on: macos-latest | ||
release-pypi-macos-x86: | ||
name: Build wheels for macos | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: cp39-macosx_x86_64 cp39-macosx_arm64 | ||
CIBW_BUILD: cp311-macosx_x86_64 | ||
CIBW_BUILD_VERBOSITY: "1" | ||
CMAKE_CONFIGURE_ARGS: "-DWITH_F12=OFF" | ||
with: | ||
output-dir: mac-wheels | ||
|
@@ -114,10 +115,36 @@ jobs: | |
ls mac-wheels | ||
- name: Publish to PyPI | ||
run: | | ||
pip install twine | ||
pip3 install twine | ||
export TWINE_USERNAME=__token__ | ||
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}" | ||
twine upload --verbose /mac-wheels/* | ||
twine upload --verbose mac-wheels/* | ||
release-pypi-macos-arm64: | ||
name: Build wheels for Apple M chips | ||
runs-on: macos-12 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: cp311-macosx_arm64 | ||
CIBW_BUILD_VERBOSITY: "1" | ||
# Cross-platform build for arm64 wheels on x86 platform | ||
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" | ||
CMAKE_CONFIGURE_ARGS: "-DWITH_F12=OFF" | ||
CMAKE_OSX_ARCHITECTURES: arm64 | ||
with: | ||
output-dir: mac-wheels | ||
- name: List available wheels | ||
run: | | ||
ls mac-wheels | ||
- name: Publish to PyPI | ||
run: | | ||
pip3 install twine | ||
export TWINE_USERNAME=__token__ | ||
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}" | ||
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
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 |
---|---|---|
|
@@ -35,7 +35,7 @@ | |
''' | ||
|
||
__version__ = '2.3.0' | ||
__version__ = '2.4.0' | ||
|
||
import os | ||
import sys | ||
|
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