python - How to write setup.py to include a git repo as a dependency -
i trying write setup.py package. package needs specify dependency on git repo.
this have far:
from setuptools import setup, find_packages setup( name='abc', packages=find_packages(), url='https://github.abc.com/abc/myabc', description='this description abc', long_description=open('readme.md').read(), install_requires=[ "requests==2.7.0", "someprivatelib>=0.1.0", ], dependency_links = [ "git+git://github.abc.com/abc/someprivatelib.git#egg=someprivatelib", ], include_package_data=true, )
when run:
pip install -e https://github.abc.com/abc/myabc.git#egg=analyse
i get
could not find version satisfies requirement someprivatelib>=0.1.0 (from analyse) (from versions: ) no matching distribution found someprivatelib>=0.1.0 (from analyse)
what doing wrong ?
you can find right way here.
dependency_links=['http://github.com/user/repo/tarball/master#egg=package-1.0']
the key not give link git repository, link tarball. github creates tarball of master branch if append /tarball/master
shown above.
Comments
Post a Comment