Skip to content

Commit

Permalink
Merge pull request #484 from TeoZosa/build/use-poetry-dependency-groups
Browse files Browse the repository at this point in the history
👷  Use Poetry dependency groups for `docs` dependencies
  • Loading branch information
TeoZosa authored Sep 1, 2022
2 parents 82e9694 + efe2a4e commit a0c6e7d
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 111 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ endif
.PHONY: install-dependencies
## Install Python dependencies specified in `poetry.lock`
install-dependencies:
poetry install --no-interaction --no-root --extras docs -vv
poetry install --no-interaction --no-root --with docs -vv

.PHONY: install-project
## Install structlog-sentry-logger source code (in editable mode)
Expand All @@ -89,9 +89,9 @@ install-project:
.PHONY: generate-requirements
## Generate project requirements files from `pyproject.toml`
generate-requirements:
poetry export -f requirements.txt --without-hashes > requirements.txt # subset
poetry export --dev -f requirements.txt --without-hashes > requirements-dev.txt # superset w/o docs
poetry export --extras docs --dev -f requirements.txt --without-hashes > requirements-all.txt # superset
poetry export --format requirements.txt --without-hashes --output requirements.txt # subset
poetry export --with dev --format requirements.txt --without-hashes --output requirements-dev.txt # superset w/o docs
poetry export --with dev,docs --format requirements.txt --without-hashes --output requirements-all.txt # superset

.PHONY: clean-requirements
## Clean generated project requirements files
Expand Down
Loading

0 comments on commit a0c6e7d

Please sign in to comment.