[英]Wrong file version in requirement package
構建環境時,需求軟件包synergine-0.0.1.9中的文件似乎已過時。
.travis.yml
language: python
python:
- "3.4"
install:
- "pip install -r tests_requirements.txt --upgrade"
- "pip install python-coveralls"
script:
- coverage run tests.py --rcfile=.coveragerc -v && coverage report -m && python3.4 tests.py
after_success:
- coveralls
tests_requirements.txt
synergine>=0.0.1
synergine_xyz>=0.0.1
travis-ci.org構建日志:
[...]
pip 6.0.7 from /home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages (python 3.4)
install.1
1.74s $ pip install -r tests_requirements.txt --upgrade
You are using pip version 6.0.7, however version 7.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting synergine>=0.0.1 (from -r tests_requirements.txt (line 1))
Downloading synergine-0.0.1.9.tar.gz
pypandoc not found
Collecting synergine-xyz>=0.0.1 (from -r tests_requirements.txt (line 2))
Downloading synergine_xyz-0.0.1.9.tar.gz
Installing collected packages: synergine-xyz, synergine
Running setup.py install for synergine-xyz
Running setup.py install for synergine
pypandoc not found
Successfully installed synergine-0.0.1.9 synergine-xyz-0.0.1.9
[...]
[...]
0.31s$ coverage run tests.py --rcfile=.coveragerc -v && coverage report -m && python3.4 tests.py
[...]
File "/home/travis/virtualenv/python3.4.2/lib/python3.4/site-packages/synergine/core/simulation/MetaValue.py", line 19, in unset
del (state[subject])
NameError: name 'state' is not defined
travis-ci構建synergine/core/simulation/MetaValue.py", line 19, in unset
的synergine/core/simulation/MetaValue.py", line 19, in unset
是:
del (state[subject])
如果我們查看synergine/core/simulation/MetaValue.py", line 19, in unset
pypi上未synergine/core/simulation/MetaValue.py", line 19, in unset
:
del(metas[subject])
文件不完全相同。 問題出在travis-ci緩存中? 我該如何解決?
構建頁面可在此處獲得 。
在通過電子郵件與travis-ci支持進行討論之后,我們認為問題不是來自travis-ci,而是可能來自pypi(奇怪的特定緩存規則?)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.