-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Docs: update instructions to install deps with Poetry #9743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
abaa5c0
d2fdbc2
ef89302
6a758a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -310,7 +310,7 @@ Install dependencies with Poetry | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Projects managed with `Poetry <https://python-poetry.org/>`__, | ||
can use the ``post_create_environment`` user-defined job to use Poetry for installing Python dependencies. | ||
can use the ``post_create_environment`` user-defined job to install Poetry and ``post_install`` to install Python dependencies. | ||
Take a look at the following example: | ||
|
||
|
||
|
@@ -326,12 +326,13 @@ Take a look at the following example: | |
jobs: | ||
post_create_environment: | ||
# Install poetry | ||
# https://python-poetry.org/docs/#osx--linux--bashonwindows-install-instructions | ||
humitos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - | ||
- pip install poetry | ||
browniebroke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# Tell poetry to not use a virtual environment | ||
- $HOME/.poetry/bin/poetry config virtualenvs.create false | ||
# Install project's dependencies | ||
- $HOME/.poetry/bin/poetry install | ||
- poetry config virtualenvs.create false | ||
post_install: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should remove this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought it was best to cover more edge cases, in the hope that it would avoid potential issues for old projects and therefore support requests/GitHub issues. That being said, I don't mind either way & I'll remove this section 👍🏻 |
||
# Install dependencies with 'docs' dependency group | ||
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups | ||
- poetry install --with docs | ||
browniebroke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not using
post_install
anymore, so we should revert this change.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated 😄