Python Package Test Repo to test pip installation from GitHub
Use the following command to install from git:
pip3 install git+https://github.com/albyst/python-package-test-repo
It is also possible to specify a “git ref” such as branch name, a commit hash or a tag name (more info can be found in official documentation):
MyProject @ git+https://git.example.com/MyProject.git@master
MyProject @ git+https://git.example.com/[email protected]
MyProject @ git+https://git.example.com/MyProject.git@da39a3ee5e6b4b0d3255bfef95601890afd80709
MyProject @ git+https://git.example.com/MyProject.git@refs/pull/123/head
Then you can import and use the test package:
import python_test_package
python_test_package.extremely_useful_function()
Testing uses tox, so you need to install it first:
pip3 install tox
then you can run tests defined under the tests
directory by issuing the command:
tox