#2841 closed defect (fixed)

`tox` fails on fresh checkout

Reported by: rvs Owned by: rvs
Priority: normal Milestone: 1.12.0
Component: code Version: 1.11.0
Keywords: test tox Cc:
Launchpad Bug:

Description

I've checked out latest version and can't seem to run testsuite.

Reproduction steps:

1: clone tahoe-lafs. This is from my fork that does not any modifications and based on 783449b4f3a460b464eb1f0e37306dfd7683cfdb

$ git clone git@github.com:vrusinov/tahoe-lafs.git
Cloning into 'tahoe-lafs'...
remote: Counting objects: 67683, done.
remote: Compressing objects: 100% (66/66), done.
remote: Total 67683 (delta 38), reused 0 (delta 0), pack-reused 67609
Receiving objects: 100% (67683/67683), 66.64 MiB | 17.67 MiB/s, done.
Resolving deltas: 100% (39464/39464), done.
Checking connectivity... done.

$ cd tahoe-lafs

  1. Try to run tox. After reading docs I got impression that it will create virtualenv and do everything for me.
$ tox
GLOB sdist-make: /home/vrusinov/workspace/tahoe-lafs/setup.py
py27 create: /home/vrusinov/workspace/tahoe-lafs/.tox/py27
py27 installdeps: --editable=.[test]
ERROR: invocation failed, logfile: /home/vrusinov/workspace/tahoe-lafs/.tox/py27/log/py27-1.log
ERROR: actionid=py27
msg=getenv
cmdargs=[local('/home/vrusinov/workspace/tahoe-lafs/.tox/py27/bin/pip'), 'install', '--pre', '--editable=.[test]']
env={'PYTHONIOENCODING': 'utf_8', 'PATH': '/home/vrusinov/workspace/tahoe-lafs/.tox/py27/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'LANGUAGE': 'en_US:', 'HOME': '/home/vrusinov/workspace/tahoe-lafs/.tox/py27/tmp/pseudo-home', 'PYTHONPATH': '/usr/local/buildtools/current/sitecustomize', '_': '/usr/bin/tox', 'OLDPWD': '/home/vrusinov/workspace', 'PWD': '/home/vrusinov/workspace/tahoe-lafs', }
Directory '.' is not installable. File 'setup.py' not found.
Storing debug log for failure in /home/vrusinov/workspace/tahoe-lafs/.tox/py27/tmp/pseudo-home/.pip/pip.log

ERROR: could not install deps [--editable=.[test]]


_____________________________________________________ summary ______________________________________________________
ERROR:   py27: could not install deps [--editable=.[test]]

Disclaimer: ENV modified to remove some irrelevant/private stuff

$ tox --version
1.6.0 imported from /usr/lib/python2.7/dist-packages/tox/__init__.pyc
$ python --version
Python 2.7.6

Change History (5)

comment:1 Changed at 2016-11-23T12:30:01Z by rvs

  • Owner set to rvs
  • Status changed from new to assigned

comment:2 Changed at 2016-11-23T12:31:38Z by rvs

Looks like it tox needs to be >= 1.7

comment:3 Changed at 2016-11-23T12:49:07Z by rvs

  • Keywords review-needed added

comment:4 Changed at 2016-11-23T13:02:59Z by rvs

  • Milestone changed from undecided to soon

comment:5 Changed at 2016-11-29T22:02:06Z by warner

  • Component changed from unknown to code
  • Keywords review-needed removed
  • Milestone changed from soon to 1.12.0
  • Resolution set to fixed
  • Status changed from assigned to closed
  • Version changed from n/a to 1.11.0

Landed in dcec018cdf. Thanks!

Note: See TracTickets for help on using tickets.