jeffreywugz / pyev

Automatically exported from code.google.com/p/pyev
0 stars 0 forks source link

Add tox.ini #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A tox.ini will let you test that pyev works in all of the versions of Python 
that you wish to support.

Example usage:

❯ tox GLOB sdist-make: /Users/marca/dev/git-svn-repos/pyev/setup.py py26 inst-nodeps: /Users/marca/dev/git-svn-repos/pyev/.tox/dist/pyev-0.9.0.zip py26 runtests: PYTHONHASHSEED='4280617204' py26 runtests: commands[0] | echo * No tests yet! * * No tests yet! * py27 inst-nodeps: /Users/marca/dev/git-svn-repos/pyev/.tox/dist/pyev-0.9.0.zip py27 runtests: PYTHONHASHSEED='4280617204' py27 runtests: commands[0] | echo * No tests yet! * * No tests yet! * pypy inst-nodeps: /Users/marca/dev/git-svn-repos/pyev/.tox/dist/pyev-0.9.0.zip pypy runtests: PYTHONHASHSEED='4280617204' pypy runtests: commands[0] | echo * No tests yet! * * No tests yet! * py33 inst-nodeps: /Users/marca/dev/git-svn-repos/pyev/.tox/dist/pyev-0.9.0.zip py33 runtests: PYTHONHASHSEED='4280617204' py33 runtests: commands[0] | echo * No tests yet! * * No tests yet! *



summary



py26: commands succeeded py27: commands succeeded pypy: commands succeeded py33: commands succeeded congratulations :)


Attaching a patch...

Original issue reported on code.google.com by msabr...@gmail.com on 24 Mar 2014 at 4:16

Attachments:

GoogleCodeExporter commented 9 years ago
tox of course is even more useful if you have tests...

Original comment by msabr...@gmail.com on 24 Mar 2014 at 4:17

GoogleCodeExporter commented 9 years ago
Actually even better if the tox.ini tries to import pyev. This exposes the 
current problem with pypy (https://code.google.com/p/pyev/issues/detail?id=15).

❯ tox GLOB sdist-make: /Users/marca/dev/git-svn-repos/pyev/setup.py py26 inst-nodeps: /Users/marca/dev/git-svn-repos/pyev/.tox/dist/pyev-0.9.0.zip ERROR: invocation failed, logfile: /Users/marca/dev/git-svn-repos/pyev/.tox/py26/log/py26-8.log ERROR: actionid=py26 msg=installpkg cmdargs=[local('/Users/marca/dev/git-svn-repos/pyev/.tox/py26/bin/pip'), 'install', '--pre', '-U', '--no-deps', '/Users/marca/dev/git-svn-repos/pyev/.tox/dist/pyev-0.9.0.zip'] env={'rvm_proxy': '', 'LESS_TERMCAP_md': '\x1b[01;31m', 'rvm_niceness': '', 'LESS': '-F -g -i -M -R -S -w -X -z-4', 'rvm_gemstone_package_file': '', 'rvm_path': '/Users/marca/.rvm', 'TMPDIR': '/var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/', 'ITERM_PROFILE': 'Default', 'PYTHONIOENCODING': 'utf_8', 'LOGNAME': 'marca', 'USER': 'marca', 'rvm_gemstoneurl': '', 'PATH': '/Users/marca/dev/git-svn-repos/pyev/.tox/py26/bin:/Users/marca/.rvm/gems/ruby-2 .1.0/bin:/Users/marca/.rvm/gems/ruby-2.1.0@global/bin:/Users/marca/.rvm/rubies/r uby-2.1.0/bin:/Users/marca/bin:/Library/Frameworks/Python.framework/Versions/2.7 /bin:/Library/Frameworks/Python.framework/Versions/3.3/bin:/Library/Frameworks/P ython.framework/Versions/3.2/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/u sr/sbin:/sbin:/Users/marca/.rvm/bin', 'HOME': '/Users/marca', 'DISPLAY': '/tmp/launch-cKikJS/org.macosforge.xquartz:0', 'PS4': '+ %* %F{red}%x:%I %F{green}%N:%i%F{white} %', 'TERM_PROGRAM': 'iTerm.app', 'LANG': 'en_US.UTF-8', '__CF_USER_TEXT_ENCODING': '0x1F6:0:0', 'TERM': 'xterm-256color', 'SHELL': '/usr/local/bin/zsh', 'CDPATH': '/Users/marca/dev/surveymonkey:/Users/marca/dev/git-repos:/Users/marca/dev/hg-re pos', 'Apple_Ubiquity_Message': '/tmp/launch-sZMW2M/Apple_Ubiquity_Message', 'SHLVL': '1', 'LESS_TERMCAP_me': '\x1b[0m', 'rvm_quiet_flag': '', 'SECURITYSESSIONID': '186a4', 'LESS_TERMCAP_mb': '\x1b[01;31m', 'PIP_DOWNLOAD_CACHE': '/Users/marca/.pip/download-cache', 'ITERM_SESSION_ID': 'w0t10p0', 'VIRTUAL_ENV_DISABLE_PROMPT': '1', 'EDITOR': 'vim', 'PYTHONHASHSEED': '3098406826', 'GREP_COLOR': '37;45', '_system_arch': 'x86_64', 'GEM_PATH': '/Users/marca/.rvm/gems/ruby-2.1.0:/Users/marca/.rvm/gems/ruby-2.1.0@global', 'rvm_bin_path': '/Users/marca/.rvm/bin', 'rvm_ruby_make': '', 'WORKON_HOME': '/Users/marca/python/virtualenvs', 'rvm_script_name': '', 'rvm_ruby_file': '', 'rvm_prefix': '/Users/marca', 'rvm_sdk': '', 'SSH_AUTH_SOCK': '/tmp/launch-8xFkYa/Listeners', 'rvm_ruby_make_install': '', 'IRBRC': '/Users/marca/.rvm/rubies/ruby-2.1.0/.irbrc', '_system_type': 'Darwin', 'MY_RUBY_HOME': '/Users/marca/.rvm/rubies/ruby-2.1.0', 'VISUAL': 'vim', 'Apple_PubSub_Socket_Render': '/tmp/launch-qntO0m/Render', 'rvmversion': '1.25.18 (stable)', '': '/Library/Frameworks/Python.framework/Versions/2.7/bin/tox', 'BROWSER': 'open', 'VIRTUALENVWRAPPER_PROJECT_FILENAME': '.project', 'LESS_TERMCAP_ue': '\x1b[0m', 'LSCOLORS': 'ExGxCxDxCxegedabagacad', 'HUB_TEST_HOST': 'code.corp.surveymonkey.com:80', 'VIRTUALENVWRAPPER_HOOK_DIR': '/Users/marca/python/virtualenvs', 'rvm_alias_expanded': '', 'OLDPWD': '/Users/marca/dev/git-svn-repos', 'rvm_wrapper_name': '', 'LESS_TERMCAP_se': '\x1b[0m', 'rvm_nightly_flag': '', '_system_name': 'OSX', 'rvm_silent_flag': '', 'LESS_TERMCAP_us': '\x1b[01;32m', 'rvm_docs_type': '', '_system_version': '10.8', 'GREP_OPTIONS': '--color=auto', 'rvm_ruby_mode': '', 'PWD': '/Users/marca/dev/git-svn-repos/pyev', 'LESS_TERMCAP_so': '\x1b[00;47;30m', 'LS_COLORS': 'di=34;01:ln=36;01:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:t w=32;40;07:ow=33;40;07', 'PAGER': 'less', 'GEM_HOME': '/Users/marca/.rvm/gems/ruby-2.1.0', 'COMMAND_MODE': 'unix2003'} Unpacking ./.tox/dist/pyev-0.9.0.zip Running setup.py (path:/var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/pip-7vnTiR-build/setup.py) egg_info for package from file:///Users/marca/dev/git-svn-repos/pyev/.tox/dist/pyev-0.9.0.zip Aborted: pyev-0.9.0 requires Python2 >= 2.7.0 Complete output from command python setup.py egg_info: Aborted: pyev-0.9.0 requires Python2 >= 2.7.0


Cleaning up... Command python setup.py egg_info failed with error code 1 in /var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/pip-7vnTiR-build Storing debug log for failure in /Users/marca/.pip/pip.log

py27 inst-nodeps: /Users/marca/dev/git-svn-repos/pyev/.tox/dist/pyev-0.9.0.zip py27 runtests: PYTHONHASHSEED='3098406826' py27 runtests: commands[0] | /Users/marca/dev/git-svn-repos/pyev/.tox/py27/bin/python -c import pyev; print(pyev) <module 'pyev' from '/Users/marca/dev/git-svn-repos/pyev/.tox/py27/lib/python2.7/site-packages/pyev. so'> pypy inst-nodeps: /Users/marca/dev/git-svn-repos/pyev/.tox/dist/pyev-0.9.0.zip pypy runtests: PYTHONHASHSEED='3098406826' pypy runtests: commands[0] | /Users/marca/dev/git-svn-repos/pyev/.tox/pypy/bin/python -c import pyev; print(pyev) Traceback (most recent call last): File "app_main.py", line 72, in run_toplevel File "app_main.py", line 578, in run_it File "", line 1, in ImportError: unable to load extension module '/Users/marca/dev/git-svn-repos/pyev/.tox/pypy/site-packages/pyev.pypy-23.so': dlopen(/Users/marca/dev/git-svn-repos/pyev/.tox/pypy/site-packages/pyev.pypy-23. so, 6): Symbol not found: _PyErr_SetFromErrnoWithFilenameObject Referenced from: /Users/marca/dev/git-svn-repos/pyev/.tox/pypy/site-packages/pyev.pypy-23.so Expected in: flat namespace in /Users/marca/dev/git-svn-repos/pyev/.tox/pypy/site-packages/pyev.pypy-23.so ERROR: InvocationError: '/Users/marca/dev/git-svn-repos/pyev/.tox/pypy/bin/python -c import pyev; print(pyev)' py33 inst-nodeps: /Users/marca/dev/git-svn-repos/pyev/.tox/dist/pyev-0.9.0.zip py33 runtests: PYTHONHASHSEED='3098406826' py33 runtests: commands[0] | /Users/marca/dev/git-svn-repos/pyev/.tox/py33/bin/python -c import pyev; print(pyev) <module 'pyev' from '/Users/marca/dev/git-svn-repos/pyev/.tox/py33/lib/python3.3/site-packages/pyev. so'>



summary



ERROR: py26: InvocationError: /Users/marca/dev/git-svn-repos/pyev/.tox/py26/bin/pip install --pre -U --no-deps /Users/marca/dev/git-svn-repos/pyev/.tox/dist/pyev-0.9.0.zip (see /Users/marca/dev/git-svn-repos/pyev/.tox/py26/log/py26-8.log) py27: commands succeeded ERROR: pypy: commands failed py33: commands succeeded

Original comment by msabr...@gmail.com on 24 Mar 2014 at 4:30

Attachments: