Skip to content

Commit

Permalink
Moved docs dependencies into a Poetry dependency group.
Browse files Browse the repository at this point in the history
Also adjusted Makefile and .readthedocs.yaml.
  • Loading branch information
johnbywater committed Jan 21, 2024
1 parent 06aa85e commit c7c3bb5
Show file tree
Hide file tree
Showing 4 changed files with 466 additions and 469 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build:
# Install dependencies with 'docs' dependency group
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
# - poetry install --with docs
- make install-packages
- make install

# Build documentation in the "docs/" directory with Sphinx
sphinx:
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ install-poetry:
curl -sSL $(POETRY_INSTALLER_URL) | python3
$(POETRY) --version

.PHONY: install
install:
$(POETRY) install --extras "crypto postgres_dev" --with docs -vv $(opts)

.PHONY: install-packages
install-packages:
$(POETRY) --version
$(POETRY) install --no-root --all-extras -vv $(opts)
$(POETRY) install --no-root --extras "crypto postgres_dev" --with docs -vv $(opts)

.PHONY: update-packages
update-packages:
Expand Down
Loading

0 comments on commit c7c3bb5

Please sign in to comment.