Skip to content

Commit 40f253d

Browse files
authored
Docs: update instructions to install deps with Poetry (#9743)
* Docs: update instructions to install deps with Poetry * Docs: fix example for installing deps with Poetry * Docs: simplify Poetry example * Docs: Apply suggestions from CR regarding Poetry example
1 parent 52d4766 commit 40f253d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/user/build-customization.rst

+6-5
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,13 @@ Take a look at the following example:
324324
jobs:
325325
post_create_environment:
326326
# Install poetry
327-
# https://python-poetry.org/docs/#osx--linux--bashonwindows-install-instructions
328-
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
327+
# https://python-poetry.org/docs/#installing-manually
328+
- pip install poetry
329329
# Tell poetry to not use a virtual environment
330-
- $HOME/.poetry/bin/poetry config virtualenvs.create false
331-
# Install project's dependencies
332-
- $HOME/.poetry/bin/poetry install
330+
- poetry config virtualenvs.create false
331+
# Install dependencies with 'docs' dependency group
332+
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
333+
- poetry install --with docs
333334
334335
sphinx:
335336
configuration: docs/conf.py

0 commit comments

Comments
 (0)