-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Optional-dependency docs: add a self-dependency example #724
Conversation
I don't think any of the |
Co-authored-by: Arseny Boykov <36469655+Bobronium@users.noreply.github.com>
This doesn't work for me when my project name overlaps with other project available on PyPI (though I'm installing it in editable mode): [project]
name = "chatbot"
[project.optional-dependencies]
profiling = ["pyinstrument"]
debugging = ["ipython"]
style = ["ruff", "black"]
testing = ["pytest", "pytest-cov"]
typechecking = ["mypy"]
all = ["chatbot[style,profiling,debugging,testing,typechecking]"] Upon
|
Co-authored-by: Ofek Lev <ofekmeister@gmail.com>
Mention that here pypa/pip#11296 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* Optional-dependency docs: add a self-dependency example * nit * Update docs/config/dependency.md Co-authored-by: Arseny Boykov <36469655+Bobronium@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Ofek Lev <ofekmeister@gmail.com> --------- Co-authored-by: Arseny Boykov <36469655+Bobronium@users.noreply.github.com> Co-authored-by: Ofek Lev <ofekmeister@gmail.com> effb365
* Optional-dependency docs: add a self-dependency example * nit * Update docs/config/dependency.md Co-authored-by: Arseny Boykov <36469655+Bobronium@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Ofek Lev <ofekmeister@gmail.com> --------- Co-authored-by: Arseny Boykov <36469655+Bobronium@users.noreply.github.com> Co-authored-by: Ofek Lev <ofekmeister@gmail.com> effb365
Hi, thanks for
hatch
/hatchling
!This PR adds a short example to the docs for how to add a self-dependency when dealing with optional feature groups. It took me a while to figure out how to do this, and this example would have helped me.
From the sound of it, it seems like this is an officially supported feature of Python packaging and won't be going away anytime soon: https://discuss.python.org/t/pyproject-toml-optional-dependencies-redundancy-aka-dry-extras/8428/6