From 70b1c52166b36e80dc5caafd1e0db36038b290aa Mon Sep 17 00:00:00 2001 From: Tpt Date: Fri, 6 Oct 2023 11:03:04 +0200 Subject: [PATCH] Python: uses 3.12 in CI + builds for it --- .github/workflows/artifacts.yml | 4 ++-- .github/workflows/manylinux_build.sh | 4 ++-- .github/workflows/musllinux_build.sh | 4 ++-- .github/workflows/tests.yml | 4 ++-- python/requirements.dev.txt | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index a9d6eac9..62123141 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -179,7 +179,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" cache: pip cache-dependency-path: '**/requirements.dev.txt' - run: pip install -r python/requirements.dev.txt @@ -217,7 +217,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" cache: pip cache-dependency-path: '**/requirements.dev.txt' - run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse diff --git a/.github/workflows/manylinux_build.sh b/.github/workflows/manylinux_build.sh index e7ee8ec1..ccefe8b7 100644 --- a/.github/workflows/manylinux_build.sh +++ b/.github/workflows/manylinux_build.sh @@ -8,14 +8,14 @@ chmod +x rustup-init source "$HOME/.cargo/env" export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin" cd python -python3.11 -m venv venv +python3.12 -m venv venv source venv/bin/activate pip install -r requirements.dev.txt maturin develop --release python generate_stubs.py pyoxigraph pyoxigraph.pyi --black maturin build --release --no-default-features --features abi3 --features rustls --compatibility manylinux2014 if [ %for_each_version% ]; then - for VERSION in 7 8 9 10 11; do + for VERSION in 8 9 10 11 12; do maturin build --release --no-default-features --features rustls --interpreter "python3.$VERSION" --compatibility manylinux2014 done fi diff --git a/.github/workflows/musllinux_build.sh b/.github/workflows/musllinux_build.sh index ec6c54e1..e85faa3f 100644 --- a/.github/workflows/musllinux_build.sh +++ b/.github/workflows/musllinux_build.sh @@ -6,14 +6,14 @@ chmod +x rustup-init source "$HOME/.cargo/env" export PATH="${PATH}:/opt/python/cp37-cp37m/bin:/opt/python/cp38-cp38/bin:/opt/python/cp39-cp39/bin:/opt/python/cp310-cp310/bin:/opt/python/cp311-cp311/bin" cd python -python3.11 -m venv venv +python3.12 -m venv venv source venv/bin/activate pip install -r requirements.dev.txt maturin develop --release python generate_stubs.py pyoxigraph pyoxigraph.pyi --black maturin build --release --no-default-features --features abi3 --features rustls --compatibility musllinux_1_2 if [ %for_each_version% ]; then - for VERSION in 7 8 9 10 11; do + for VERSION in 8 9 10 11 12; do maturin build --release --no-default-features --features rustls --interpreter "python3.$VERSION" --compatibility musllinux_1_2 done fi diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 953b9195..801c60b2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -223,7 +223,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" cache: pip cache-dependency-path: '**/requirements.dev.txt' - run: pip install -r python/requirements.dev.txt @@ -278,7 +278,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" cache: pip cache-dependency-path: '**/requirements.dev.txt' - run: pip install "maturin~=1.0" diff --git a/python/requirements.dev.txt b/python/requirements.dev.txt index fb239ec8..8595505c 100644 --- a/python/requirements.dev.txt +++ b/python/requirements.dev.txt @@ -2,5 +2,5 @@ black~=23.1 furo maturin~=1.0 mypy~=1.0 -ruff~=0.0.255 +ruff~=0.0.292 sphinx~=7.0