Skip to content

Separate dev dependencies into extras package via setuptools #6

Closed
campb303 opened this issue Mar 16, 2021 · 2 comments
Closed

Separate dev dependencies into extras package via setuptools #6

campb303 opened this issue Mar 16, 2021 · 2 comments
Assignees
Labels
feature-request Request for functionality that has not already been implemented quickfix Immediately actionable and should be fast

Comments

@campb303
Copy link
Collaborator

Setuptools supports installing situational dependencies as stated here: https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html?highlight=install_requires#optional-dependencies

We should separate out our docs and dev dependencies so that we only install what is needed when installing a package from pip.

Instal Type Example Packages Installed
Normal pip install webqueue2-api Everything needed for the API
Development `pip install webqueue2-api[dev] Everything needed for API + things for development (like pytet)
Docs `pip install webqueue2-api[docs] Everything needed for the API + things for docs (like mkdocs)
@campb303 campb303 added feature-request Request for functionality that has not already been implemented quickfix Immediately actionable and should be fast labels Mar 16, 2021
@campb303 campb303 added this to the v2-production-ready milestone Mar 17, 2021
@campb303
Copy link
Collaborator Author

An example of this can be found in Flask's setup.py file here: https://github.com/pallets/flask/blob/1.1.x/setup.py#L61-L78

@campb303
Copy link
Collaborator Author

This was merged in #18 . Closing.

Sign in to join this conversation on GitHub.
Labels
feature-request Request for functionality that has not already been implemented quickfix Immediately actionable and should be fast
Projects
None yet
Development

No branches or pull requests

2 participants