Fixes CI by preventing usage of maturin 0.10

pull/96/head
Tpt 4 years ago
parent f35d652e66
commit 1289346d7e
  1. 6
      .github/workflows/build.yml
  2. 2
      .github/workflows/doc.yml
  3. 8
      .github/workflows/release.yml
  4. 2
      python/README.md
  5. 2
      python/pyproject.toml

@ -59,7 +59,7 @@ jobs:
with:
python-version: 3.8
- run: python -m venv python/venv
- run: source python/venv/bin/activate && pip install --upgrade pip maturin sphinx
- run: source python/venv/bin/activate && pip install --upgrade pip 'maturin>=0.9.2,<0.10' sphinx
- run: source venv/bin/activate && maturin develop
working-directory: ./python
- run: source ../venv/bin/activate && python -m unittest
@ -80,6 +80,6 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.6
- run: pip install maturin
- run: maturin build
- run: pip install 'maturin>=0.9.2,<0.10'
- run: maturin build --universal2
working-directory: ./python

@ -15,7 +15,7 @@ jobs:
with:
python-version: 3.8
- run: python -m venv python/venv
- run: source python/venv/bin/activate && pip install --upgrade pip maturin sphinx
- run: source python/venv/bin/activate && pip install --upgrade pip 'maturin>=0.9.2,<0.10' sphinx
- run: source venv/bin/activate && maturin develop
working-directory: ./python
- run: source ../venv/bin/activate && sphinx-build -M doctest . build

@ -85,7 +85,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: sed -i 's/path="..\/lib", //g' python/Cargo.toml
- run: docker run --rm -v $(pwd):/io konstin2/maturin publish -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
- run: docker run --rm -v $(pwd):/io konstin2/maturin:v0.9.4 publish -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
working-directory: ./python
publish_pypi_mac_windows:
runs-on: ${{ matrix.os }}
@ -98,8 +98,8 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.6
- run: pip install maturin
- run: maturin publish --no-sdist -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
- run: pip install 'maturin>=0.9.2,<0.10'
- run: maturin publish --universal2 --no-sdist -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
working-directory: ./python
publish_npm:
runs-on: ubuntu-latest
@ -128,7 +128,7 @@ jobs:
with:
python-version: 3.8
- run: python -m venv python/venv
- run: source python/venv/bin/activate && pip install --upgrade pip maturin sphinx
- run: source python/venv/bin/activate && pip install --upgrade pip 'maturin>=0.9.2,<0.10' sphinx
- run: source venv/bin/activate && maturin develop
working-directory: ./python
- run: source ../venv/bin/activate && sphinx-build -M doctest . build

@ -37,7 +37,7 @@ and to run `pip install .` in the `python` directory (the one this README is in)
Pyoxigraph is written in Rust using [PyO3](https://github.com/PyO3/pyo3).
Pyoxigraph is built using [Maturin](https://github.com/PyO3/maturin).
Maturin could be installed using the `pip install maturin`.
Maturin could be installed using the `pip install 'maturin>=0.9,<0.10'`.
To install a development version of Oxigraph just run `maturin develop` in this README directory.
The Python bindings tests are written in Python.

@ -1,3 +1,3 @@
[build-system]
requires = ["maturin>=0.9,<0.10"]
requires = ["maturin>=0.9.2,<0.10"]
build-backend = "maturin"
Loading…
Cancel
Save