需求包文件版本错误
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
是:
del (state[subject])
如果我们在 pypi 上查找 synergine/core/simulation/MetaValue.py", line 19, in unset
:
del(metas[subject])
文件不相同。问题出在 travis-ci 缓存中?我该如何解决?
构建页面可用 here。
通过电子邮件与 travis-ci 支持讨论后,我们认为问题不是来自 travis-ci,而是可能来自 pypi(奇怪的 specific 缓存规则?) .
构建环境时,需求包 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
是:
del (state[subject])
如果我们在 pypi 上查找 synergine/core/simulation/MetaValue.py", line 19, in unset
:
del(metas[subject])
文件不相同。问题出在 travis-ci 缓存中?我该如何解决?
构建页面可用 here。
通过电子邮件与 travis-ci 支持讨论后,我们认为问题不是来自 travis-ci,而是可能来自 pypi(奇怪的 specific 缓存规则?) .