-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Canonical way for adding development dependencies to "setup.py" file "extras_require". #1416
Comments
You only have to specify them once in the |
Hi Seb, Sure, but then
vs
I guess I would like to get the best of both worlds :) Cheers, Thomas |
I've just run into the same thing, except I'm looking to have a Could extras pull from both |
Seems that the solution is referenced here: #3180 Eg:
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue
Hi,
I'm looking to move Colour to Poetry, so far so good except for a minor issue on Github Actions and Windows.
There is however something I might be overlooking but I did not find a good answer for. The context is that issuing
pip install 'colour-science[development]'
will install our development dependencies.I obviously don't want to lose that capability and the only solution I found is rather unelegant: I need to have our development dependencies listed two times (well, three to be exact):
[tool.poetry.dependencies]
section where they are marked as optional, then they can be used in the[tool.poetry.extras]
section to populate accordingly thesetup.py
file generated with thepoetry build
command.[tool.poetry.dev-dependencies]
so thatpoetry install
installs everything we need for development.Here is my current pyproject.toml file for reference:
Please let me know if I missed something or if it is a current limitation.
Cheers,
Thomas
The text was updated successfully, but these errors were encountered: