问题:
I have a requirements.txt
file that I'm using with Travis-CI.我有一个与 Travis-CI 一起使用的requirements.txt
文件。 It seems silly to duplicate the requirements in both requirements.txt
and setup.py
, so I was hoping to pass a file handle to the install_requires
kwarg in setuptools.setup
.在requirements.txt
和setup.py
复制需求似乎很愚蠢,所以我希望将文件句柄传递给 setuptools.setup 中的install_requires
setuptools.setup
。
Is this possible?这可能吗? If so, how should I go about doing it?如果是这样,我应该如何去做?
Here is my requirements.txt
file:这是我的requirements.txt
文件:
guessit>=0.5.2
tvdb_api>=1.8.2
hachoir-metadata>=1.3.3
hachoir-core>=1.3.3
hachoir-parser>=1.3.4
解决方案:
参考一: https://en.stackoom.com/question/yPyY参考二: https://stackoom.com/question/yPyY