From 61296a466e44465fbd3c470b81012ce8519779a5 Mon Sep 17 00:00:00 2001 From: Tpt Date: Fri, 15 Jan 2021 21:28:03 +0100 Subject: [PATCH] Python: attempt to fix wheel build in CI --- .github/workflows/build.yml | 5 +++-- .github/workflows/release.yml | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef7a136b..9ee22c69 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,6 +74,7 @@ jobs: needs: python steps: - uses: actions/checkout@v2 + - run: sed -i 's/path="..\/lib", //g' python/Cargo.toml - run: docker run --rm -v $(pwd):/io konstin2/maturin build working-directory: ./python @@ -82,8 +83,8 @@ jobs: needs: python steps: - uses: actions/checkout@v2 - - run: pip install maturin - - run: maturin build --no-sdist + - run: pip3 install maturin + - run: python3 -m maturin build --no-sdist working-directory: ./python python_wheel_windows: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9048144a..6af7c5e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,20 +68,21 @@ jobs: needs: publish_lib_crate steps: - uses: actions/checkout@v2 + - run: sed -i 's/path="..\/lib", //g' python/Cargo.toml - run: docker run --rm -v $(pwd):/io konstin2/maturin build --release working-directory: ./python - uses: pypa/gh-action-pypi-publish@v1.4.1 with: user: __token__ password: ${{ secrets.PYPI_PASSWORD }} - packages_dir: ./target/wheels + packages_dir: ./python/target/wheels publish_pypi_mac: runs-on: macos-latest needs: publish_lib_crate steps: - uses: actions/checkout@v2 - - run: pip install maturin - - run: maturin build --release --no-sdist + - run: pip3 install maturin + - run: python3 -m maturin build --release --no-sdist working-directory: ./python - uses: pypa/gh-action-pypi-publish@v1.4.1 with: