Fixes ReadTheDocs build

Adds a shared requirements.txt file for the dev dependencies
pull/228/head
Tpt 2 years ago committed by Thomas Tanon
parent 4902bac3a7
commit f218134e6c
  1. 6
      .devcontainer/Dockerfile
  2. 6
      .github/workflows/artifacts.yml
  3. 6
      .github/workflows/release.yml
  4. 2
      .github/workflows/tests.yml
  5. 1
      .readthedocs.yaml
  6. 4
      python/requirements.dev.txt

@ -15,11 +15,7 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
ENV VIRTUAL_ENV=/opt/venv
RUN python -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install --no-cache-dir \
maturin \
sphinx \
sphinx-autobuild \
furo
RUN pip install --no-cache-dir -r python/requirements.dev.txt
# Change owner to the devcontainer user
RUN chown -R 1000:1000 $VIRTUAL_ENV

@ -16,8 +16,10 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.8
- run: python -m venv python/venv
- run: source python/venv/bin/activate && pip install --upgrade maturin sphinx furo
- run: python -m venv venv
working-directory: ./python
- run: source venv/bin/activate && pip install --upgrade -r requirements.dev.txt
working-directory: ./python
- run: source venv/bin/activate && maturin develop
working-directory: ./python
- run: source ../venv/bin/activate && sphinx-build -M doctest . build

@ -183,8 +183,10 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.8
- run: python -m venv python/venv
- run: source python/venv/bin/activate && pip install --upgrade maturin sphinx furo
- run: python -m venv venv
working-directory: ./python
- run: source venv/bin/activate && pip install --upgrade -r requirements.dev.txt
working-directory: ./python
- run: source venv/bin/activate && maturin develop
working-directory: ./python
- run: source ../venv/bin/activate && sphinx-build -M doctest . build

@ -89,7 +89,7 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- run: pip install --upgrade maturin sphinx furo
- run: pip install --upgrade -r python/requirements.dev.txt
- run: maturin sdist -m python/Cargo.toml
- run: pip install target/wheels/*.tar.gz
- run: python -m unittest

@ -13,6 +13,7 @@ build:
python:
install:
- requirements: python/requirements.dev.txt
- method: pip
path: python

@ -0,0 +1,4 @@
furo
maturin
sphinx
sphinx-autobuild
Loading…
Cancel
Save