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.

install private git repos

See original GitHub issue

pipenv supports the format git+https://github.com/org/repo.... However, that will prompt me for a username and password. I expected it to support (as pip does) the form git+git@github.com:org/repo.... However, trying this gives the error message

Invalid Requirement: git-url from above
It looks like a path. Does it exist ?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
nateprewittcommented, Apr 13, 2017

@gregwebs, forgive my hastiness here. You should be able to pass the -e flag but apparently that has been regressed. I’ll try to get this bundled into the 3.6.0 release.

For the time being, you’ll need to add an entry to your Pipfile in this format.

package_name = { git = 'git+git@github.com:org/repo/package_name.git', editable = 'true' }
4reactions
yuvallangercommented, Aug 23, 2017

For the perplexed (I sure were), I shall convert https://github.com/kennethreitz/pipenv/issues/313#issuecomment-293915992 into TOML syntax and extend it with a ref:

[packages.package_name]
git = "git@github.com:org/repo/package_name.git"
ref = "a_branch_name_a_tag_or_commit_hash"
editable = "true"
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use private Github repo as npm dependency
It can be done via https and oauth or ssh. https and oauth: create an access token that has "repo" scope and then...
Read more >
Create a repo - GitHub Docs
Create a repository · In the upper-right corner of any page, use the drop-down menu, and select New repository. · Type a short,...
Read more >
Installing Private Python Packages - Read the Docs
If you have private dependencies, you can install them from a private Git ... Pip supports installing packages from a Git repository using...
Read more >
How to Set up the HTTP Git Server for Private Projects
How to Set up the HTTP Git Server for Private Projects · What You'll Need · Update and Upgrade · Installing Dependencies ·...
Read more >
Guide to Git™ - Set Up Access to Private Repositories
Connect to your server via SSH or the cPanel Terminal · Generate an SSH key · Register your SSH key with the private...
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