需求包中的文件版本错误

2024-04-29 22:06:21 发布

您现在位置:Python中文网/ 问答频道 /正文

构建环境时,需求包synergine-0.0.1.9中的文件似乎过时了。你知道吗

。特拉维斯·伊梅尔

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

测试_要求.txt

synergine>=0.0.1
synergine_xyz>=0.0.1

特拉维斯-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 build上的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。你知道吗


Tags: installpipfrompytxttraviscipackages