pytest-dev / unittest2pytest

helps rewriting Python `unittest` test-cases into `pytest` test-cases
GNU General Public License v3.0
128 stars 27 forks source link

tox failures #6

Closed adamchainz closed 8 years ago

adamchainz commented 8 years ago

tox fails for me locally with:

$ tox
GLOB sdist-make: /Users/adamj/Documents/Projects/unittest2pytest/setup.py
py27 inst-nodeps: /Users/adamj/Documents/Projects/unittest2pytest/.tox/dist/unittest2pytest-0.3.dev0.zip
ERROR: invocation failed (exit code 1), logfile: /Users/adamj/Documents/Projects/unittest2pytest/.tox/py27/log/py27-3.log
ERROR: actionid: py27
msg: installpkg
cmdargs: [local('/Users/adamj/Documents/Projects/unittest2pytest/.tox/py27/bin/pip'), 'install', '-U', '--no-deps', '/Users/adamj/Documents/Projects/unittest2pytest/.tox/dist/unittest2pytest-0.3.dev0.zip']
env: {'PATH': '/Users/adamj/Documents/Projects/unittest2pytest/.tox/py27/bin:/Users/adamj/.rbenv/shims:/Users/adamj/script:/Users/adamj/bin:/usr/local/share/npm/bin:/usr/local/mysql/bin:/Applications/Inkscape.app/Contents/Resources/bin:/usr/local/heroku/bin:/usr/local/Cellar/ruby/2.0.0-p0/bin:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin:/usr/X11/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/local/libexec/gnubin:/opt/local/bin:/opt/local/sbin:/usr/local/opt/go/libexec/bin:/Users/adamj/Documents/goworkspace/bin/', 'ITERM_PROFILE': 'Default', 'TERM': 'xterm-256color', '_': '/usr/local/bin/tox', 'LESS_TERMCAP_so': '\x1b[00;47;30m', 'LANG': 'en_GB.UTF-8', 'BROWSER': 'open', 'LOGENTRIES_ACCOUNT_KEY': '8442089d-9b32-4203-a9d3-0e65e90ff216', 'Apple_PubSub_Socket_Render': '/tmp/launch-bU3NpQ/Render', 'GREP_COLORS': 'mt=37;45', 'SSH_AUTH_SOCK': '/tmp/launch-9qjA1S/Listeners', 'LESSOPEN': '| /usr/bin/env lesspipe.sh %s 2>&-', 'LSCOLORS': 'exfxcxdxbxGxDxabagacad', 'HISTFILESIZE': '1000000', '__CF_USER_TEXT_ENCODING': '0x1F5:0:0', '__CHECKFIX1436934': '1', 'PYTHONHASHSEED': '3088900154', 'DISPLAY': '/tmp/launch-518jkq/org.macosforge.xquartz:0', 'MYSQL_PS1': '\\u@\\h [\\c]> ', 'OLDPWD': '/Users/adamj/.virtualenvs', 'LESS_TERMCAP_mb': '\x1b[01;31m', 'TMPDIR': '/var/folders/_z/wpddpg7d5hd6fd2zjn_fct7m0000gn/T/', 'LESS_TERMCAP_us': '\x1b[01;32m', 'LESS_TERMCAP_se': '\x1b[0m', 'SHLVL': '1', 'WORDCHARS': '*?_[]~&;\\!#%^(){}<>', 'LOGNAME': 'adamj', 'COMMAND_MODE': 'unix2003', 'HOME': '/Users/adamj', 'LS_COLORS': 'di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:', 'VIRTUALENVWRAPPER_SCRIPT': '/usr/local/bin/virtualenvwrapper.sh', 'SECURITYSESSIONID': '186a4', 'LESS_TERMCAP_me': '\x1b[0m', 'HISTSIZE': '40000', 'LESS': '-F -g -i -M -R -S -w -X -z-4', 'LESS_TERMCAP_ue': '\x1b[0m', 'USER': 'adamj', 'GREP_COLOR': '37;45', 'SHELL': '/bin/zsh', 'EDITOR': 'st', 'VIRTUALENVWRAPPER_PROJECT_FILENAME': '.project', 'ITERM_SESSION_ID': 'w0t6p0', 'LESS_TERMCAP_md': '\x1b[01;31m', 'HISTIGNORE': '&:ls:[bf]g:exit', 'AUTOJUMP_ERROR_PATH': '/Users/adamj/Library/autojump/errors.log', 'VISUAL': 'nano', 'ANSIBLE_NOCOWS': '1', 'PYENV_SHELL': 'zsh', 'PAGER': 'less', 'GOPATH': '/Users/adamj/Documents/goworkspace', 'VIRTUALENVWRAPPER_HOOK_DIR': '/Users/adamj/.virtualenvs', 'VIRTUALENVWRAPPER_WORKON_CD': '1', 'PYTHONSTARTUP': '/Users/adamj/.python_startup', 'TERM_PROGRAM': 'iTerm.app', 'AUTOJUMP_SOURCED': '1', 'PWD': '/Users/adamj/Documents/Projects/unittest2pytest', 'WORKON_HOME': '/Users/adamj/.virtualenvs', 'VIRTUAL_ENV': '/Users/adamj/Documents/Projects/unittest2pytest/.tox/py27'}

Processing ./.tox/dist/unittest2pytest-0.3.dev0.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/var/folders/_z/wpddpg7d5hd6fd2zjn_fct7m0000gn/T/pip-RMZRmL-build/setup.py", line 33, in <module>
        read('CHANGES.rst')])
      File "/var/folders/_z/wpddpg7d5hd6fd2zjn_fct7m0000gn/T/pip-RMZRmL-build/setup.py", line 29, in read
        return unicode(codecs.open(filename, encoding='utf-8').read())
      File "/Users/adamj/Documents/Projects/unittest2pytest/.tox/py27/lib/python2.7/codecs.py", line 896, in open
        file = __builtin__.open(filename, mode, buffering)
    IOError: [Errno 2] No such file or directory: 'CHANGES.rst'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /var/folders/_z/wpddpg7d5hd6fd2zjn_fct7m0000gn/T/pip-RMZRmL-build
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

And similarly for every other environment. It looks like your packaging setup has a few things missing like a MANIFEST.in to ensure that CHANGES.rst is kept with the package. Maybe this breakage has been introduced with newer pip/setuptools/tox versions.