Skip to content

Instantly share code, notes, and snippets.

@hkennyv
Created August 3, 2020 03:42
Show Gist options
  • Save hkennyv/358acf71189917dd0b2e6242316147f7 to your computer and use it in GitHub Desktop.
Save hkennyv/358acf71189917dd0b2e6242316147f7 to your computer and use it in GitHub Desktop.
adding private package to requirements.txt

The syntax for adding a private package to a python requirements.txt is shown in the sample requirements.txt file. This assumes that the client that is installing the package has the proper permissions to access the file. In my case, using bitbucket pipelines, I can create an SSH key for the pipeline and add it as a read-only access key to my bitbucket repository.

It is typically:

git+ssh://git@bitbucket.org/<fork>/<reponame>.git

NOTE: the .git link does not include the colon after the domain name, it's instead a / character. Also, there is a git@ user specified.

git+ssh://git@bitbucket.org/fork/reponame.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment