Normally your requirements.txt
file would look something like this:
1 2 3 4 5 |
package-one==1.9.4 package-two==3.7.1 package-three==1.0.1 ... |
To specify a Github repo, you do not need the package-name==
convention.
The examples below update package-two
using a GitHub repo. The text between @
and #
denotes the specifics of the package.
Specify commit hash (41b95ec
in the context of updated requirements.txt
):
1 2 3 4 |
package-one==1.9.4 git+https://github.com/path/to/package-two@41b95ec#egg=package-two package-three==1.0.1 |
Specify branch name (master
):
1 2 |
git+https://github.com/path/to/package-two@master#egg=package-two |
Specify tag (0.1
):
1 2 |
git+https://github.com/path/to/package-two@0.1#egg=package-two |
Specify release (3.7.1
):
1 |
git+https://github.com/path/to/package-two@releases/tag/v3.7.1#egg=package-two |