Skip to content

Commit

Permalink
Make yaml an optional dependency since only for dependabot. Refs #1.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpaulett committed Aug 21, 2022
1 parent 92c469d commit c92db01
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ poetry.lock: pyproject.toml
> touch -c poetry.lock

.venv: poetry.lock poetry.toml
> $(POETRY) install $(POETRY_INSTALL_OPTIONS)
> $(POETRY) install --extras "yaml"
# In case .venv existed before poetry.lock, update the target
> touch -c .venv

Expand Down
7 changes: 5 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ readme = "README.md"
python = "~3.10"
tomlkit = "^0.11.0"
click = "^8.1.3"
# yaml only for `mazel contrib dependabot`
"ruamel.yaml" = "^0.16.10"
"ruamel.yaml" = { version = "^0.16.10", optional = true }

[tool.poetry.dev-dependencies]
Sphinx = "^5.1.1"
Expand All @@ -26,6 +25,10 @@ flake8-fixme = "^1.1.1"
[tool.poetry.scripts]
mazel = 'mazel.main:cli'

[tool.poetry.extras]
# yaml only for `mazel contrib dependabot`
yaml = ["ruamel.yaml"]

[build-system]
requires = ["poetry-core>=1.0.8"]
build-backend = "poetry.core.masonry.api"
Expand Down

0 comments on commit c92db01

Please sign in to comment.