Skip to content

Commit

Permalink
fix wheel build
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Nov 15, 2023
1 parent d6565b1 commit cf88924
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Expand Up @@ -203,15 +203,15 @@ jobs:
cache: pip
cache-dependency-path: '**/requirements.dev.txt'
- run: pip install -r python/requirements.dev.txt
- run: maturin build --release -m python/Cargo.toml --features abi3
- run: pip install --no-index --find-links=target/wheels/ nanopub
- run: maturin build --release -m python/Cargo.toml
- run: pip install --no-index --find-links=target/wheels/ nanopub_rs
- run: rm -r target/wheels
# - run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --black
# working-directory: ./python
- run: maturin build --release --target universal2-apple-darwin -m python/Cargo.toml --features abi3
- run: maturin build --release -m python/Cargo.toml --features abi3
- run: maturin build --release --target universal2-apple-darwin -m python/Cargo.toml
- run: maturin build --release -m python/Cargo.toml
if: github.event_name == 'release'
- run: maturin build --release --target aarch64-apple-darwin -m python/Cargo.toml --features abi3
- run: maturin build --release --target aarch64-apple-darwin -m python/Cargo.toml
if: github.event_name == 'release'
- uses: actions/upload-artifact@v3
with:
Expand All @@ -238,12 +238,12 @@ jobs:
cache-dependency-path: '**/requirements.dev.txt'
- run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse
- run: pip install -r python/requirements.dev.txt
- run: maturin build --release -m python/Cargo.toml --features abi3
- run: pip install --no-index --find-links=target/wheels/ nanopub
- run: maturin build --release -m python/Cargo.toml
- run: pip install --no-index --find-links=target/wheels/ nanopub_rs
- run: rm -r target/wheels
# - run: python generate_stubs.py pyoxigraph pyoxigraph.pyi --black
# working-directory: ./python
- run: maturin build --release -m python/Cargo.toml --features abi3
- run: maturin build --release -m python/Cargo.toml
- run: maturin sdist -m python/Cargo.toml
- uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manylinux_build.sh
Expand Up @@ -13,7 +13,7 @@ source venv/bin/activate
pip install -r requirements.dev.txt
maturin develop --release -m Cargo.toml
python generate_stubs.py pyoxigraph pyoxigraph.pyi --black
maturin build --release -m Cargo.toml --features abi3 --compatibility manylinux2014
maturin build --release -m Cargo.toml --compatibility manylinux2014
if [ %for_each_version% ]; then
for VERSION in 7 8 9 10 11; do
maturin build --release -m Cargo.toml --interpreter "python3.$VERSION" --compatibility manylinux2014
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/musllinux_build.sh
Expand Up @@ -11,7 +11,7 @@ source venv/bin/activate
pip install -r requirements.dev.txt
maturin develop --release -m Cargo.toml
python generate_stubs.py pyoxigraph pyoxigraph.pyi --black
maturin build --release -m Cargo.toml --features abi3 --compatibility musllinux_1_1
maturin build --release -m Cargo.toml --compatibility musllinux_1_1
if [ %for_each_version% ]; then
for VERSION in 7 8 9 10 11; do
maturin build --release -m Cargo.toml --interpreter "python3.$VERSION" --compatibility musllinux_1_1
Expand Down
2 changes: 1 addition & 1 deletion python/Cargo.toml
@@ -1,5 +1,5 @@
[package]
name = "nanopub-py"
name = "nanopub-rs"
description = "Python bindings for the Nanopub rust toolkit"
repository = "https://github.com/vemonet/nanopub-rs/tree/main/python"
homepage = "https://github.com/vemonet/nanopub-rs"
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs-serve.sh
Expand Up @@ -6,7 +6,7 @@ rm -rf target/doc

mdbook build

cargo doc --workspace --no-deps --exclude nanopub-js --exclude nanopub-py --target-dir target/doc
cargo doc --workspace --no-deps --exclude nanopub-js --exclude nanopub-rs --target-dir target/doc

echo "📖 Docs generated in the target/doc folder"
echo "MdBook at http://0.0.0.0:3000"
Expand Down

0 comments on commit cf88924

Please sign in to comment.