This is some example code that is part of a blog post on using GitHub (or other providers) as a PyPi Server.
This repository defines a dependency to python_hello, which in turn has a dependency to python_world. This is defined in requirements.txt so you can create a Virtualenv, and an environment.yml, so you can create a Conda environment.
The dependency is defined as a git link.
It has one module which can print "hello world" using this dependency