Python: uses 3.12 in CI + builds for it

pull/643/head
Tpt 12 months ago committed by Thomas Tanon
parent 38844f6436
commit 70b1c52166
  1. 4
      .github/workflows/artifacts.yml
  2. 4
      .github/workflows/manylinux_build.sh
  3. 4
      .github/workflows/musllinux_build.sh
  4. 4
      .github/workflows/tests.yml
  5. 2
      python/requirements.dev.txt

@ -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

@ -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

@ -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

@ -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"

@ -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

Loading…
Cancel
Save