Document how to install package extras, like `hypothesis[cli]`, from a git branch
See original GitHub issueWhat’s the problem this feature will solve?
I have a long-running pull request, https://github.com/HypothesisWorks/hypothesis/pull/2344, where I would like to provide a command that installs the latest version.
pip
’s support for VCS urls works really well for this, except that there doesn’t seem to be a way to install any of the extras - and the whole point is that I’m adding a [cli]
extra, and that brings in new dependencies.
Describe the solution you’d like
Support for e.g. pip install -U git+...#extras=cli,pytest
so that I can specify optional dependencies to install from a VCS url. Documenting this in the examples would be nice too.
Alternative Solutions Manually specifying all the dependencies for the optional extra. This works, though it’s awkward, and it may well be such a rare use-case that it’s not worth the code to support it.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (8 by maintainers)
Hello,
PEP 508 has a mechanism to combine extras with direct URL references.
So this should work just fine:
pip install "hypothesis[pandas] @ git+https://github.com/HypothesisWorks/hypothesis@master#subdirectory=hypothesis-python"
Fixed by #8592 - thanks @shireenrao 😍
(you might also want check out auto-closing issues with PR keywords)