Skip to content
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

Extra packages listed in dependencies #212

Closed
stsievert opened this issue Mar 5, 2021 · 2 comments · Fixed by #213
Closed

Extra packages listed in dependencies #212

stsievert opened this issue Mar 5, 2021 · 2 comments · Fixed by #213

Comments

@stsievert
Copy link
Collaborator

Why are the packages required to build the documentation listed under the dependencies?

scikeras/pyproject.toml

Lines 31 to 45 in d1a9d12

[tool.poetry.dependencies]
importlib-metadata = {version = "^3.4.0", python = "<3.8"}
python = ">=3.6.7, <3.9"
scikit-learn = "^0.22.0"
tensorflow = "^2.4.0"
# docs
insipid-sphinx-theme = {version = "^0.2.2", optional = true}
ipykernel = {version = "^5.4.2", optional = true}
jupyter = {version = "^1.0.0", optional = true}
jupytext = {version = "^1.9.1", optional = true}
matplotlib = {version = "^3.3.3", optional = true}
nbsphinx = {version = "^0.8.1", optional = true}
numpydoc = {version = "^1.1.0", optional = true}
sphinx = {version = ">=3.2.1", optional = true}

Yes, they're optional (which is good). But only devs build docs. Why not list ipykernel/jupyter/etc there?

@adriangb
Copy link
Owner

adriangb commented Mar 5, 2021

The only reason is that then if you don't plan on building docs, you still end up with a ton of extra stuff installed, which is not the end of the world, but not great either. Ideally, we'd want it to be dev and extras, but that's not possible, so I originally settled for it being an extra. The name of the extra, dev_docs makes it pretty clear that it's for developers.

But I am open to the idea of just moving it to be regular dev deps.

@stsievert
Copy link
Collaborator Author

Somewhat relevant: #210 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants