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

poetry install: skip dev dependencies on env var #3328

Closed
2 tasks done
HoneyryderChuck opened this issue Nov 5, 2020 · 3 comments
Closed
2 tasks done

poetry install: skip dev dependencies on env var #3328

HoneyryderChuck opened this issue Nov 5, 2020 · 3 comments
Labels
kind/feature Feature requests/implementations

Comments

@HoneyryderChuck
Copy link

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

Hi,

I've looked for something like this in the documentation, and didn't find it. I'd like to have the same feature as the --no-dev flag when running poetry install, declared as an envvar.

A very quick suggestion of how this could be implemented is by checking how pipenv does it with PIP_INSTALL_OPTION envvar, where command line options are passed in an env var.

The use case for this is for docker, where I'd like to tell the build step not to install dev dependencies when building the production image. An envvar is a trivial thing to implement in a CI setup, compared to bash my way inside the dockerfile.

@HoneyryderChuck HoneyryderChuck added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Nov 5, 2020
@sinoroc
Copy link

sinoroc commented Nov 5, 2020

I would like to refer you to #2458 and this comment in particular. This looks like a valid feature request, but it most likely won't happen until after the code handling configurations (poetry.toml, poetry config, environment variables, CLI flags, etc.) is rewritten.

@neersighted neersighted removed the status/triage This issue needs to be triaged label Oct 4, 2022
@neersighted
Copy link
Member

I'm closing this as unplanned for now -- it's tangentially related to #1132, but not the same thing. There is an intention to generally support more ergonomic defaults for different scenarios.

However, this is pretty unique -- CI is better when it's explicit instead of implicit, and I would generally assert that you're better off modifying your invocation of Poetry directly, versus complicating your environment to do things indirectly.

Without a concrete example of how this is in-scope and desirable to many users, I'm going to close this as unplanned for now.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2022
Copy link

github-actions bot commented Mar 1, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Feature requests/implementations
Projects
None yet
Development

No branches or pull requests

3 participants