from pip.req import parse_requirements
from setuptools import setup
requirements = parse_requirements('./requirements.txt', session=False)
How to include git dependencies in setup.py for pip installation