简体   繁体   中英

Wrong file version in requirement package

A file seems to be outdated in requirements package synergine-0.0.1.9 when environment is build.

.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 build log:

[...]
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

The synergine/core/simulation/MetaValue.py", line 19, in unset on travis-ci build is:

del (state[subject])

If we look synergine/core/simulation/MetaValue.py", line 19, in unset available on pypi :

del(metas[subject])

Files are not identicals. Problem is in a travis-ci cache ? How can i fix that ?

Build page available here .

在通过电子邮件与travis-ci支持进行讨论之后,我们认为问题不是来自travis-ci,而是可能来自pypi(奇怪的特定缓存规则?)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM