Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/cargo/rstest-0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
mlondschien authored Sep 2, 2024
2 parents f1e1149 + e9d6e81 commit 758e910
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
os: macos-latest
- vers: x86_64
os: macos-latest
- vers: universal2
os: macos-latest

- vers: AMD64
os: windows-2019
Expand All @@ -56,9 +54,13 @@ jobs:
platforms: arm64

- name: Install darwin target for apple silicon
if: matrix.vers == 'universal2' || (matrix.vers == 'arm64' && matrix.os == 'macos-latest')
if: matrix.vers == 'arm64' && matrix.os == 'macos-latest'
run: rustup target add aarch64-apple-darwin

- name: Install target for apple x86
if: matrix.os == 'macos-latest' && matrix.vers == 'x86_64'
run: rustup target add x86_64-apple-darwin

- name: Setup env when not using docker
if: runner.os != 'Linux'
run: |
Expand Down Expand Up @@ -90,6 +92,7 @@ jobs:

- name: Install build dependencies
run: python -m pip install numpy maturin

- name: Build sdist
run: maturin sdist -m changeforest-py/Cargo.toml

Expand All @@ -108,7 +111,7 @@ jobs:
name: wheels
path: dist

- uses: pypa/gh-action-pypi-publish@v1.8.14
- uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.TESTPYPI_GH_TOKEN }}
Expand All @@ -124,7 +127,7 @@ jobs:
name: wheels
path: dist

- uses: pypa/gh-action-pypi-publish@v1.8.14
- uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.PYPI_GH_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions changeforest-py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ classifiers = [
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"

[tool.maturin]
bindings = "pyo3"

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
Expand Down

0 comments on commit 758e910

Please sign in to comment.