-
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
Poetry ignores extras in dev-dependencies #759
Comments
To install the dependencies for the fuzzer, run poetry install --extras fuzz Then to run the fuzzer, run ./bin/fuzz.sh Note that the fuzzer dependencies are currently extra dependencies for the entire project, rather than just dev-dependencies. See python-poetry/poetry#759.
According to @sdispater, this is by design: #606 (comment). However, I have the same question as the subsequent comment there. |
@sdispater should there be an extra section for A common use case for having @nickpresta are you open to making a PR with this new section? |
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. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS: macOS 10.13.16 build 17G65
Poetry version: 0.12.10
Link of a Gist with the contents of your pyproject.toml file: same as below, see https://gist.github.com/arxanas/b18be992384c105b0163691c63549159
Issue
Expected behavior: having optional packages in
dev-dependencies
allows them to be installed withpoetry install --extras
.Actual behavior: having optional packages in
dev-dependencies
does nothing when trying to invokepoetry install --extras
.I want to have extras that are installable as dev-dependencies. In particular, I would like to make it possible install the fuzzing system for my project. However, it depends on Cython, which is heavyweight, and not something I would like to be installed by default when setting up the development environment.
Therefore I created a
pyproject.toml
like this, with the optional dependenciescython
andpython-afl
, and thefuzz
extra that would install both:But when I try to install the
fuzz
extra, no packages are installed:If I move the optional dependencies to
dependencies
instead ofdev-dependencies
like this:Then it works:
But this is a problem because my actual project does not have these dependencies, even as extras.
The text was updated successfully, but these errors were encountered: