Upgrades maturin to 0.12

pull/173/head
Tpt 3 years ago
parent e6ab6b99ed
commit f32d940fbd
  1. 8
      .github/workflows/build.yml
  2. 2
      .github/workflows/doc.yml
  3. 6
      .github/workflows/release.yml
  4. 2
      python/pyproject.toml

@ -69,7 +69,7 @@ jobs:
with: with:
python-version: 3.8 python-version: 3.8
- run: python -m venv python/venv - run: python -m venv python/venv
- run: source python/venv/bin/activate && pip install --upgrade 'maturin>=0.11,<0.12' sphinx - run: source python/venv/bin/activate && pip install --upgrade 'maturin~=0.12' sphinx
- run: source venv/bin/activate && maturin develop - run: source venv/bin/activate && maturin develop
working-directory: ./python working-directory: ./python
- run: source ../venv/bin/activate && python -m unittest - run: source ../venv/bin/activate && python -m unittest
@ -87,7 +87,7 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.6 python-version: 3.6
- run: pip install 'maturin>=0.11,<0.12' - run: pip install 'maturin~=0.12'
- run: maturin build - run: maturin build
working-directory: ./python working-directory: ./python
@ -100,7 +100,7 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.6 python-version: 3.6
- run: pip install 'maturin>=0.11,<0.12' - run: pip install 'maturin~=0.12'
- run: maturin build --universal2 - run: maturin build --universal2
working-directory: ./python working-directory: ./python
@ -112,6 +112,6 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.6 python-version: 3.6
- run: pip install 'maturin>=0.11,<0.12' - run: pip install 'maturin~=0.12'
- run: maturin build - run: maturin build
working-directory: ./python working-directory: ./python

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

@ -96,7 +96,7 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.6 python-version: 3.6
- run: pip install 'maturin>=0.11,<0.12' - run: pip install 'maturin~=0.12'
- run: maturin publish --universal2 --no-sdist -u __token__ -p ${{ secrets.PYPI_PASSWORD }} - run: maturin publish --universal2 --no-sdist -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
working-directory: ./python working-directory: ./python
publish_pypi_windows: publish_pypi_windows:
@ -107,7 +107,7 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.6 python-version: 3.6
- run: pip install 'maturin>=0.11,<0.12' - run: pip install 'maturin~=0.12'
- run: maturin publish --no-sdist -u __token__ -p ${{ secrets.PYPI_PASSWORD }} - run: maturin publish --no-sdist -u __token__ -p ${{ secrets.PYPI_PASSWORD }}
working-directory: ./python working-directory: ./python
publish_npm: publish_npm:
@ -137,7 +137,7 @@ jobs:
with: with:
python-version: 3.8 python-version: 3.8
- run: python -m venv python/venv - run: python -m venv python/venv
- run: source python/venv/bin/activate && pip install --upgrade 'maturin>=0.11,<0.12' sphinx - run: source python/venv/bin/activate && pip install --upgrade 'maturin~=0.12' sphinx
- run: source venv/bin/activate && maturin develop - run: source venv/bin/activate && maturin develop
working-directory: ./python working-directory: ./python
- run: source ../venv/bin/activate && sphinx-build -M doctest . build - run: source ../venv/bin/activate && sphinx-build -M doctest . build

@ -1,5 +1,5 @@
[build-system] [build-system]
requires = ["maturin>=0.11,<0.12"] requires = ["maturin~=0.12"]
build-backend = "maturin" build-backend = "maturin"
[project] [project]

Loading…
Cancel
Save