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.

Document how to install package extras, like `hypothesis[cli]`, from a git branch

See original GitHub issue

What’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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
sbidoulcommented, Jul 12, 2020

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"

1reaction
Zac-HDcommented, Feb 9, 2021

Fixed by #8592 - thanks @shireenrao 😍

(you might also want check out auto-closing issues with PR keywords)

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip install from git repo branch - python - Stack Overflow
To install a package from a subdirectory, say stackoverflow $ pip install git+ssh://git@github.com/myuser/foo.git@my_version#subdirectory=stackoverflow.
Read more >
git-branch Documentation - Git
Option -r causes the remote-tracking branches to be listed, and option -a shows both local and remote branches. If a <pattern> is given,...
Read more >
How To Clean Up Git Branches - devconnected
Clean Up Local Git Branches ... First of all, you want to check which branches have already been merged with your current branch....
Read more >
Contributing - Kapitan documentation
Git add /commit any changed files you want. Apply manually. Run make format_codestyle before submitting. Releasing. Create a branch named release-v<NUMBER> ...
Read more >
git-extras - MSYS2 Packages
Package : git-extras. GIT utilities -- repo summary, commit counting, repl, changelog population and more. Source Files · View Changes · Bug Reports...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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