-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
121 additions
and
103 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
publish_pypi_linux_x86: | ||
publish_pypi_linux_x86_aarch64: | ||
name: publish linux_x86 wheels to pypi | ||
runs-on: ubuntu-latest | ||
|
||
|
@@ -26,7 +26,51 @@ jobs: | |
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS_LINUX: aarch64 | ||
CIBW_ARCHS_LINUX: x86_64 aarch64 | ||
with: | ||
package-dir: pyscfadlib | ||
output-dir: pyscfadlib/wheelhouse | ||
config-file: "{package}/pyproject.toml" | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: pyscfadlib/wheelhouse | ||
|
||
build_wheel_macos_x86: | ||
name: Build macos_x86 wheels | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
MACOSX_DEPLOYMENT_TARGET: "10.14" | ||
with: | ||
package-dir: pyscfadlib | ||
output-dir: pyscfadlib/wheelhouse | ||
config-file: "{package}/pyproject.toml" | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw_wheels_macos_x86 | ||
path: pyscfadlib/wheelhouse/*.whl | ||
overwrite: true | ||
|
||
build_wheel_macos_arm64: | ||
name: Build macos_arm64 wheels | ||
runs-on: macos-14 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CMAKE_OSX_ARCHITECTURES: arm64;x86_64 | ||
with: | ||
package-dir: pyscfadlib | ||
output-dir: pyscfadlib/wheelhouse | ||
|
@@ -35,100 +79,49 @@ jobs: | |
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw_wheels_linux | ||
name: cibw_wheels_macos_arm64 | ||
path: pyscfadlib/wheelhouse/*.whl | ||
overwrite: true | ||
|
||
# - name: Publish to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
# with: | ||
# packages-dir: pyscfadlib/wheelhouse | ||
|
||
# build_wheel_macos_x86: | ||
# name: Build macos_x86 wheels | ||
# runs-on: macos-13 | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# | ||
# - name: Build wheels | ||
# uses: pypa/[email protected] | ||
# env: | ||
# MACOSX_DEPLOYMENT_TARGET: "10.14" | ||
# with: | ||
# package-dir: pyscfadlib | ||
# output-dir: pyscfadlib/wheelhouse | ||
# config-file: "{package}/pyproject.toml" | ||
# | ||
# - name: Upload wheels | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: cibw_wheels_macos_x86 | ||
# path: pyscfadlib/wheelhouse/*.whl | ||
# overwrite: true | ||
# | ||
# build_wheel_macos_arm64: | ||
# name: Build macos_arm64 wheels | ||
# runs-on: macos-14 | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# | ||
# - name: Build wheels | ||
# uses: pypa/[email protected] | ||
# env: | ||
# CMAKE_OSX_ARCHITECTURES: arm64;x86_64 | ||
# with: | ||
# package-dir: pyscfadlib | ||
# output-dir: pyscfadlib/wheelhouse | ||
# config-file: "{package}/pyproject.toml" | ||
# | ||
# - name: Upload wheels | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: cibw_wheels_macos_arm64 | ||
# path: pyscfadlib/wheelhouse/*.whl | ||
# overwrite: true | ||
|
||
# publish_pypi_macos_x86: | ||
# name: publish macos_x86 wheels to pypi | ||
# needs: build_wheel_macos_x86 | ||
# runs-on: ubuntu-latest | ||
# | ||
# environment: release | ||
# permissions: | ||
# id-token: write | ||
# | ||
# steps: | ||
# - name: Download wheels | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: cibw_wheels_macos_x86 | ||
# path: dist | ||
# | ||
# - run: ls -R dist | ||
# | ||
# - name: Publish to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
# | ||
# publish_pypi_macos_arm64: | ||
# name: publish macos_arm64 wheels to pypi | ||
# needs: build_wheel_macos_arm64 | ||
# runs-on: ubuntu-latest | ||
# | ||
# environment: release | ||
# permissions: | ||
# id-token: write | ||
# | ||
# steps: | ||
# - name: Download wheels | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: cibw_wheels_macos_arm64 | ||
# path: dist | ||
# | ||
# - run: ls -R dist | ||
# | ||
# - name: Publish to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
# | ||
publish_pypi_macos_x86: | ||
name: publish macos_x86 wheels to pypi | ||
needs: build_wheel_macos_x86 | ||
runs-on: ubuntu-latest | ||
|
||
environment: release | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: Download wheels | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: cibw_wheels_macos_x86 | ||
path: dist | ||
|
||
- run: ls -R dist | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
publish_pypi_macos_arm64: | ||
name: publish macos_arm64 wheels to pypi | ||
needs: build_wheel_macos_arm64 | ||
runs-on: ubuntu-latest | ||
|
||
environment: release | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: Download wheels | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: cibw_wheels_macos_arm64 | ||
path: dist | ||
|
||
- run: ls -R dist | ||
|
||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.1.7" | ||
__version__ = "0.1.8" |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.1.7' | ||
__version__ = '0.1.8' |
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,7 @@ | ||
import pytest | ||
|
||
def test_import(): | ||
try: | ||
from pyscfadlib import lapack as lp | ||
except ImportError as e: | ||
raise ImportError(e) |
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