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

Add example for dependency with multiple extras #9138

Merged
merged 3 commits into from
Mar 16, 2024
Merged

Add example for dependency with multiple extras #9138

merged 3 commits into from
Mar 16, 2024

Commits on Mar 16, 2024

  1. Add example for dependency with multiple extras

    The currently existing example on how to install dependency extras only shows a single dependency:
    `fastapi = {version="^0.92.0", extras=["all"]}`
    
    Since right before this example it is shown how to install multiple extras using the command line interface, this can be confusing and lead to hard to understand missing dependencies:
    `poetry install --extras "mysql pgsql"`
    
    Note that the CLI has quotes around both extras and no commas, while in pyproject.toml each extra *must* be quoted and comma-separated, which is currently not documented.
    JSchoeck authored and radoering committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    7de6f47 View commit details
    Browse the repository at this point in the history
  2. add new line

    radoering committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    c181f3c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    315b6ea View commit details
    Browse the repository at this point in the history