question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support "standard" square bracket syntax for package extras

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.

Issue

It would be great if poetry would support the “standard” square bracket syntax to specify package extras (i.e. somepackage[someextra]).

I’m aware of the -E option but it’s a departure from what other tools are doing and also it’s not immediately clear how to specify multiple different extras for multiple packages.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:18
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

57reactions
JulianFerrycommented, Aug 5, 2020

For anyone stumbling on this with the same issue as me:

  • poetry add apache-beam[gcp] errors with zsh: no matches found: apache-beam[gcp]
  • Writing poetry add "apache-beam[gcp]" fixed this
33reactions
clintonroycommented, Mar 17, 2020

If you try:

poetry add testcontainers[postgresql]

You’ll get:

testcontainers = {extras = ["postgresql"], version = "^2.6.0"}

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support "standard" square bracket syntax for package extras
Issue. It would be great if poetry would support the "standard" square bracket syntax to specify package extras (i.e. somepackage[someextra] ) ...
Read more >
How do I specify "extra" / bracket dependencies in a pyproject ...
This syntax may work for you! [tool.poetry.dependencies] python = "3.7.10" apache-beam = " ...
Read more >
Bash Brackets Quick Reference - DEV Community ‍ ‍
Bash has lots of brackets and this is a cheat sheet to help you remember which ones to use. Tagged with bash, shell,...
Read more >
Entry points specification - Python Packaging User Guide
The entry point file format was originally developed to allow packages built ... If extras are used, they are a comma-separated list inside...
Read more >
Property accessors - JavaScript - MDN Web Docs - Mozilla
There are two ways to access properties: dot notation and bracket notation. Dot notation. In the object.propertyName syntax, the propertyName ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found