From 51c896fe03ed6b80820631b964059eaca6a1d488 Mon Sep 17 00:00:00 2001 From: Tpt Date: Sun, 19 Mar 2023 19:58:10 +0100 Subject: [PATCH] CI: Python: Installs Black for stubs formatting --- .github/workflows/artifacts.yml | 4 ++-- .github/workflows/manylinux_build.sh | 2 +- .github/workflows/musllinux_build.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 3886fa66..6e556c03 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -180,7 +180,7 @@ jobs: python-version: "3.10" cache: pip cache-dependency-path: '**/requirements.dev.txt' - - run: pip install "maturin~=0.14.0" + - 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/ pyoxigraph - run: rm -r target/wheels @@ -215,7 +215,7 @@ jobs: cache: pip cache-dependency-path: '**/requirements.dev.txt' - run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse - - run: pip install "maturin~=0.14.0" + - 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/ pyoxigraph - run: rm -r target/wheels diff --git a/.github/workflows/manylinux_build.sh b/.github/workflows/manylinux_build.sh index 30e35e41..1ed3f3e2 100644 --- a/.github/workflows/manylinux_build.sh +++ b/.github/workflows/manylinux_build.sh @@ -10,7 +10,7 @@ export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/p cd python python3.10 -m venv venv source venv/bin/activate -pip install "maturin~=0.14.0" +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 diff --git a/.github/workflows/musllinux_build.sh b/.github/workflows/musllinux_build.sh index 6f73137a..7dd2fb4c 100644 --- a/.github/workflows/musllinux_build.sh +++ b/.github/workflows/musllinux_build.sh @@ -8,7 +8,7 @@ export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/p cd python python3.10 -m venv venv source venv/bin/activate -pip install "maturin~=0.14.0" +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