tox --installpkg raises an AttributeError

Issue #235 on hold
Michael van Tellingen
created an issue

tox --installpkg dist/something.tgz raises an attributeerror:

Traceback (most recent call last):
  File "/Users/mvantellingen/virtualenvs/something/bin/tox", line 9, in <module>
    load_entry_point('tox==1.8.0', 'console_scripts', 'tox')()
  File "/Users/mvantellingen/virtualenvs/something/lib/python2.7/site-packages/tox/_cmdline.py", line 26, in main
    retcode = Session(config).runcommand()
  File "/Users/mvantellingen/virtualenvs/something/lib/python2.7/site-packages/tox/_cmdline.py", line 310, in runcommand
    return self.subcommand_test()
  File "/Users/mvantellingen/virtualenvs/something/lib/python2.7/site-packages/tox/_cmdline.py", line 454, in subcommand_test
    self.installpkg(venv, sdist_path)
  File "/Users/mvantellingen/virtualenvs/something/lib/python2.7/site-packages/tox/_cmdline.py", line 397, in installpkg
    self.resultlog.set_header(installpkg=sdist_path)
  File "/Users/mvantellingen/virtualenvs/something/lib/python2.7/site-packages/tox/result.py", line 21, in set_header
    md5=installpkg.computehash("md5"),
AttributeError: 'str' object has no attribute 'computehash'

Comments (5)

  1. Holger Krekel repo owner

    fix issue #235, --installpkg is broken

    Problem

    Session result log requires py.path.local for the source distribution when setting header.
    Passing str.

    Testing

    tox.ini configuration::

    [testenv:X]
    commands={posargs}
    
    [testenv:Y]
    commands={posargs}
    

    download sdist

    pip install -d . ranger

    install with a newly built fox version

    tox -e X -- tox -e Y --installpkg ranger-0.9.tar.gz --notest

    → <<cset 47b8e230f7b3>>

  2. Log in to comment