-
Notifications
You must be signed in to change notification settings - Fork 1
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
16 changed files
with
73 additions
and
55 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 |
---|---|---|
|
@@ -30,13 +30,13 @@ jobs: | |
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --manifest-path moyo_py/Cargo.toml | ||
args: --release --out dist --manifest-path moyopy/Cargo.toml | ||
sccache: 'true' | ||
manylinux: auto | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: linux-${{ matrix.target }}-wheels | ||
name: pypi-linux-${{ matrix.target }} | ||
path: dist | ||
- name: pytest | ||
if: ${{ startsWith(matrix.target, 'x86_64') }} | ||
|
@@ -45,7 +45,7 @@ jobs: | |
set -e | ||
pip install moyo --find-links dist --force-reinstall | ||
pip install pytest | ||
cd moyo_py && pytest -v | ||
cd moyopy && pytest -v | ||
- name: pytest | ||
if: ${{ !startsWith(matrix.target, 'x86') && matrix.target != 'ppc64' }} | ||
uses: uraimo/[email protected] | ||
|
@@ -60,7 +60,7 @@ jobs: | |
run: | | ||
set -e | ||
pip3 install moyo --find-links dist --force-reinstall | ||
cd moyo_py && pytest -v | ||
cd moyopy && pytest -v | ||
windows: | ||
runs-on: windows-latest | ||
|
@@ -77,12 +77,12 @@ jobs: | |
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --manifest-path moyo_py/Cargo.toml | ||
args: --release --out dist --manifest-path moyopy/Cargo.toml | ||
sccache: 'true' | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: windows-${{ matrix.target }}-wheels | ||
name: pypi-windows-${{ matrix.target }} | ||
path: dist | ||
- name: pytest | ||
if: ${{ !startsWith(matrix.target, 'aarch64') }} | ||
|
@@ -91,7 +91,7 @@ jobs: | |
set -e | ||
pip install moyo --find-links dist --force-reinstall | ||
pip install pytest | ||
cd moyo_py && pytest -v | ||
cd moyopy && pytest -v | ||
macos: | ||
runs-on: macos-latest | ||
|
@@ -107,12 +107,12 @@ jobs: | |
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.target }} | ||
args: --release --out dist --manifest-path moyo_py/Cargo.toml | ||
args: --release --out dist --manifest-path moyopy/Cargo.toml | ||
sccache: 'true' | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: macos-${{ matrix.target }}-wheels | ||
name: pypi-macos-${{ matrix.target }} | ||
path: dist | ||
- name: pytest | ||
if: ${{ !startsWith(matrix.target, 'aarch64') }} | ||
|
@@ -121,7 +121,7 @@ jobs: | |
set -e | ||
pip install moyo --find-links dist --force-reinstall | ||
pip install pytest | ||
cd moyo_py && pytest -v | ||
cd moyopy && pytest -v | ||
sdist: | ||
runs-on: ubuntu-latest | ||
|
@@ -131,26 +131,27 @@ jobs: | |
uses: PyO3/maturin-action@v1 | ||
with: | ||
command: sdist | ||
args: --out dist --manifest-path moyo_py/Cargo.toml | ||
args: --out dist --manifest-path moyopy/Cargo.toml | ||
- name: Upload sdist | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheels | ||
name: pypi-sdist | ||
path: dist | ||
|
||
# release: | ||
# name: Release | ||
# runs-on: ubuntu-latest | ||
# if: "startsWith(github.ref, 'refs/tags/')" | ||
# needs: [linux, windows, macos, sdist] | ||
# steps: | ||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# name: wheels | ||
# - name: Publish to PyPI | ||
# uses: PyO3/maturin-action@v1 | ||
# env: | ||
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
# with: | ||
# command: upload | ||
# args: --non-interactive --skip-existing * | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
if: "startsWith(github.ref, 'refs/tags/')" | ||
needs: [linux, windows, macos, sdist] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
pattern: pypi-* | ||
merge-multiple: true | ||
path: dist | ||
- name: Publish package to TestPyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish package 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
members = [ | ||
"moyo", | ||
"moyo_py", | ||
"moyopy", | ||
] | ||
|
||
resolver = "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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
from ._moyo import * # noqa: F403 |
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
import moyopy | ||
|
||
|
||
def test_moyo_dataset(wurtzite: moyopy.Cell): | ||
dataset = moyopy.MoyoDataset(wurtzite) | ||
assert dataset.number == 186 | ||
assert dataset.hall_number == 480 |
File renamed without changes.
File renamed without changes.
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