Distributes Pypy wheels for linux

pull/672/head
Tpt 1 year ago committed by Thomas Tanon
parent a9fee4f6b8
commit 48174cac12
  1. 5
      .github/workflows/manylinux_build.sh
  2. 20
      .github/workflows/tests.yml
  3. 2
      python/tests/test_store.py

@ -18,4 +18,7 @@ if [ %for_each_version% ]; then
for VERSION in 8 9 10 11 12; do for VERSION in 8 9 10 11 12; do
maturin build --release --no-default-features --features rustls --interpreter "python3.$VERSION" --compatibility manylinux2014 maturin build --release --no-default-features --features rustls --interpreter "python3.$VERSION" --compatibility manylinux2014
done done
fi for VERSION in 9 10; do
maturin build --release --no-default-features --features rustls --interpreter "pypy3.$VERSION" --compatibility manylinux2014
done
fi

@ -268,6 +268,26 @@ jobs:
- run: python -m unittest - run: python -m unittest
working-directory: ./python/tests working-directory: ./python/tests
python_pypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: rustup update && rustup toolchain install nightly && rustup default 1.70.0
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-python@v4
with:
python-version: "pypy3.10"
cache: pip
cache-dependency-path: '**/requirements.dev.txt'
- run: pip install -r python/requirements.dev.txt
- run: maturin build -m python/Cargo.toml
- run: pip install --no-index --find-links=target/wheels/ pyoxigraph
- run: rm -r target/wheels
- run: python -m unittest
working-directory: ./python/tests
python_windows: python_windows:
runs-on: windows-latest runs-on: windows-latest
steps: steps:

@ -1,3 +1,4 @@
import gc
import unittest import unittest
from io import BytesIO, StringIO, UnsupportedOperation from io import BytesIO, StringIO, UnsupportedOperation
from pathlib import Path from pathlib import Path
@ -386,6 +387,7 @@ class TestStore(unittest.TestCase):
store = Store(dir) store = Store(dir)
store.add(quad) store.add(quad)
del store del store
gc.collect()
store = Store.read_only(dir) store = Store.read_only(dir)
self.assertEqual(list(store), [quad]) self.assertEqual(list(store), [quad])

Loading…
Cancel
Save