From 155f8d4e492f7949e435d89adce11df44e3c8ee6 Mon Sep 17 00:00:00 2001 From: Florian Valeye Date: Wed, 9 Mar 2022 22:00:24 +0100 Subject: [PATCH] Fix the GitHub action of the documentation release (#26) --- .github/workflows/release.yml | 28 ++++++++++++++++------------ python/Cargo.toml | 4 ++-- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a533ff7..ddeac84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,8 +78,8 @@ jobs: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - name: Enable manylinux Python targets - run: | - echo "/opt/python/cp37-cp37m/bin" >> $GITHUB_PATH + run: echo "/opt/python/cp37-cp37m/bin" >> $GITHUB_PATH + - name: Setup run: make setup @@ -92,19 +92,23 @@ jobs: release-documentation: needs: [ validate-git-tag, release-pypi-manylinux, release-pypi-mac-windows ] runs-on: ubuntu-latest + container: quay.io/pypa/manylinux2010_x86_64:2020-12-31-4928808 permissions: contents: write steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - target: ${{ matrix.target }} + - uses: actions/checkout@v1 + + - name: Install Rust + run: | + curl https://sh.rustup.rs -sSf | sh -s -- -y + $HOME/.cargo/bin/rustup default stable + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + + - name: Enable manylinux Python targets + run: echo "/opt/python/cp37-cp37m/bin" >> $GITHUB_PATH + + - name: Setup + run: make setup - name: Install metadataguardian run: make install MATURIN_EXTRA_ARGS="--manylinux off" diff --git a/python/Cargo.toml b/python/Cargo.toml index d18a1a3..47b114d 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "metadata_guardian-python" -version = "0.2.2" +version = "0.2.3" authors = ["Florian Valeye "] homepage = "https://fvaleye.github.io/metadata-guardian/python" license = "Apache-2.0" @@ -16,7 +16,7 @@ crate-type = ["cdylib"] env_logger = "0" [dependencies.pyo3] -version = "0.15.1" +version = "0.16.1" features = ["extension-module", "abi3", "abi3-py37"] [dependencies.metadata_guardian]