【发布时间】:2018-05-25 02:08:39
【问题描述】:
将 repo 的特定分支作为依赖项并能够使用它来运行测试的正确方法是什么?
如果您只指定dependency_links,setuptools 会将其安装为依赖项,但不会安装它来运行测试:
setup(
packages=['utils', 'tokens'],
dependency_links=[
'https://github.com/Demonware/jose/tarball/python3#egg=jose-1.1.0'
],
# install_requires=['jose'],
use_2to3=True,
test_suite='test_jwt',
zip_safe=True,
)
我依赖于jose 库的python3 分支。当我运行setup.py test 时,它抱怨找不到jose 包。
如果我添加 install_requires,它只会安装 master 分支,而不是我需要的 python3 分支。
【问题讨论】:
标签: python-3.x setuptools