-
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
sparse documentation about "extras" attribute #1076
Comments
It is mentioned in the README. Including in the dependencies and dev dependencies section would probably be good. |
it would be super. Anyway thanks for writing this tool. It is really nice to use. |
There is an extras section in the pyproject.toml file page of the docs... Isn't this what you are looking for ? Although it looks like it might be incorrect (see #1339) |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I also ran into this, extras is quite unclear. It seems there might be two different kinds of extras, also specified by https://python-poetry.org/docs/pyproject/#extras:
Extras as in 1. can be specified when adding dependencies, as documented here, e.g.
Extras as in 2. can maybe be manually specified in the pyproject.toml project, as suggested here, but you would expect that you could also pass the extra "cluster" as an option to There's also some indications that 2. might not be currently working? e.g #2073 and #1145 I also wonder if these two usecases might not actually be two faces of the same thing? E.g. 2. might be considered "extras" of the current package, such that For clarity, it might be worthwile to use different terminology for 1. and 2. Since setuptools already uses "extras" for 1., perhaps 2. should be renamed to something else? Especially since Also note #1463 which fixes an extras-related link in the docs. |
This might also be sidestepped by replacing 2. with "dependency groups", as suggested in #1644. |
Whereas It is also unclear if the extras should be specified either in the |
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. |
It would be helpful to have some documentation/tutorials about the dependencies "extras" attribute and its syntax. I found it only by searching the issues.
Can you please add an example in the documentation of the pyproject.toml (or document the single attributes (option, extras, version)).
Something like
pendelum = {version = "*", extras=["mooncalendar"]}
The text was updated successfully, but these errors were encountered: