-
Notifications
You must be signed in to change notification settings - Fork 55
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
export - ability to chose subset of dependencies to export #40
Comments
I just have opened a similar issue: https://github.com/python-poetry/poetry/issues/2009. The export part of poetry needs to be increased. Maybe you can try with dephell you may have more chance than me on your use case... |
These two issues seem related only insofar as they concern the |
I can try to see what I can do, I have started a PR (python-poetry/poetry#2013) :) |
Hi, I would also like the ability to chose subset of dependencies to export but for a different use case from @zachvalenta I have a project with multiple services, each requiring their own requirements.
In the example above, suppose the server service requires Possible solution:
then, when exporting, we can just specify that tag to export:
If no tag is provided, then the current behaviour is the default behaviour. |
It's a possible to use with extras in pyproject.toml as temporary solution |
Could be made more likely to happen by python-poetry/poetry#1644 (scheduled for v1.2). |
I need this! |
Feature Request
The use case I'm thinking of here is CI pipelines and dev dependencies.
Most of the time I don't need all dev dependencies for a build. For example, I might use black and flake8 locally but only want to run unit tests in my CI build, in which case installing black and flake8 on a CI box just adds time.
In terms of CLI, thinking something like
n.b. I'm not looking to export only dev deps (like python-poetry/poetry#1441) but rather a way to selectively exclude deps (dev or prod).
The text was updated successfully, but these errors were encountered: