Skip to content

Commit 296adcd

Browse files
committed
✨ add optional dependencies using poetry syntax
this should now work: pip install "-e[docs]"
1 parent 6c408ac commit 296adcd

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

pyproject.toml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ kaleido = "0.2.0"
2727
vl-convert-python = "^1.7.0"
2828
dataframe-image = "^0.2.6"
2929
strenum = { version = "^0.4.15", python = "<3.11" }
30+
# optional doc depencencies, follow approach as described here:
31+
# https://github.com/python-poetry/poetry/issues/2567#issuecomment-646766059
32+
sphinx = {version="*", optional=true}
33+
sphinx-book-theme = {version="*", optional=true}
34+
myst-nb = {version="*", optional=true}
35+
ipywidgets = {version="*", optional=true}
36+
sphinx-new-tab-link = {version = "!=0.2.2", optional=true}
37+
jupytext = {version="*", optional=true}
3038

3139
[tool.poetry.group.dev.dependencies]
3240
ipykernel = "^6.29.5"
@@ -40,16 +48,7 @@ build-backend = "poetry.core.masonry.api"
4048
[tool.poetry.extras]
4149
streamlit = ["streamlit"]
4250
quarto = ["quarto", "ipykernel"]
51+
docs = ["sphinx", "sphinx-book-theme", "myst-nb", "ipywidgets", "sphinx-new-tab-link", "jupytext"]
4352

44-
[tool.poetry.group.docs]
45-
optional = true
46-
47-
[tool.poetry.group.docs.dependencies]
48-
sphinx = "*"
49-
sphinx-book-theme = "*"
50-
myst-nb = "*"
51-
ipywidgets = "*"
52-
sphinx-new-tab-link = "!=0.2.2"
53-
jupytext = "*"
5453
# [project.scripts]
5554
# my-script = "vuegen.main:main"

0 commit comments

Comments
 (0)