Editing
Python Packaging
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Installation from GitHub == <p class="alert alert-warning">Legacy information below. See [[Installing Private Python Packages Hosted on GitHub]]</p> === Prerequisites === Create and store a local SSH key. (One each for all computers where development is happening.) See [https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/ Generating a new SSH key and adding it to the ssh-agent] (GitHub Help) Register the key on the GitHub account. See [https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/ Adding a new SSH key to your GitHub account] (GitHub Help) One key pair will suffice for all ssh requests, i.e. for a computer with the key installed, the key can be used for all repositories in the GitHub account. === Installing a package === To install a package from a private GitHub repository: <ref>[https://stackoverflow.com/questions/4830856/is-it-possible-to-use-pip-to-install-a-package-from-a-private-github-repository Is is possible to use pip to install a package from a private GitHub repository] - StackOverflow</ref> <syntaxhighlight lang="bash"> $ pip install git+ssh://git@github.com/username/my-repo.git </syntaxhighlight> The packages dependencies are listed under `install_requires=[]` in the package's `setup.py`. === Updating a package === After changes have been committed to a repository, they can be retrieved with: <syntaxhighlight lang="bash"> $ pip install git+ssh://git@github.com/username/my-repo.git --upgrade (or) $ pip install git+ssh://git@github.com/username/my-repo.git -U </syntaxhighlight>
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information