commit python-tox for openSUSE:Factory
Hello community, here is the log from the commit of package python-tox for openSUSE:Factory checked in at 2013-09-23 10:58:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tox (Old) and /work/SRC/openSUSE:Factory/.python-tox.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-tox" Changes: -------- --- /work/SRC/openSUSE:Factory/python-tox/python-tox.changes 2013-06-29 14:35:57.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-tox.new/python-tox.changes 2013-09-23 11:17:54.000000000 +0200 @@ -1,0 +2,58 @@ +Thu Sep 19 12:27:49 UTC 2013 - speilicke@suse.com + +- (Build)Require python-argparse on SLE + +------------------------------------------------------------------- +Thu Sep 5 07:29:06 UTC 2013 - speilicke@suse.com + +- Update to version 1.6.0: + + fix issue119: {envsitepackagesdir} is now correctly computed and has + a better test to prevent regression. + + fix issue116: make 1.6 introduced behaviour of changing to a + per-env HOME directory during install activities dependent + on "--set-home" for now. Should re-establish the old behaviour + when no option is given. + + fix issue118: correctly have two tests use realpath(). Thanks Barry + Warsaw. + + fix test runs on environments without a home directory + (in this case we use toxinidir as the homedir) + + fix issue117: python2.5 fix: don't use ``--insecure`` option because + its very existence depends on presence of "ssl". If you + want to support python2.5/pip1.3.1 based test environments you need + to install ssl and/or use PIP_INSECURE=1 through ``setenv``. section. + + fix issue102: change to {toxinidir} when installing dependencies. + this allows to use relative path like in "-rrequirements.txt". +- Changes from version 1.6.0: + + fix issue35: add new EXPERIMENTAL "install_command" testenv-option to + configure the installation command with options for dep/pkg install. + Thanks Carl Meyer for the PR and docs. + + fix issue91: python2.5 support by vendoring the virtualenv-1.9.1 + script and forcing pip<1.4. Also the default [py25] environment + modifies the default installer_command (new config option) + to use pip without the "--pre" option which was introduced + with pip-1.4 and is now required if you want to install non-stable + releases. (tox defaults to install with "--pre" everywhere). + + during installation of dependencies HOME is now set to a pseudo + location ({envtmpdir}/pseudo-home). If an index url was specified + a .pydistutils.cfg file will be written with an index_url setting + so that packages defining ``setup_requires`` dependencies will not + silently use your HOME-directory settings or https://pypi.python.org. + + fix issue1: empty setup files are properly detected, thanks Anthon van + der Neuth + + remove toxbootstrap.py for now because it is broken. + + fix issue109 and fix issue111: multiple "-e" options are now combined + (previously the last one would win). Thanks Anthon van der Neut. + + add --result-json option to write out detailed per-venv information + into a json report file to be used by upstream tools. + + add new config options ``usedevelop`` and ``skipsdist`` as well as a + command line option ``--develop`` to install the package-under-test in develop mode. + thanks Monty Tailor for the PR. + + always unset PYTHONDONTWRITEBYTE because newer setuptools doesn't like it + + if a HOMEDIR cannot be determined, use the toxinidir. + + refactor interpreter information detection to live in new + tox/interpreters.py file, tests in tests/test_interpreters.py. +- Add tox-disable-network-accessing-tests.patch: Disable tests that insist on + downloading dependencies over network +- Run testsuite + +------------------------------------------------------------------- Old: ---- tox-1.5.0.tar.gz New: ---- tox-1.6.1.tar.gz tox-disable-network-accessing-tests.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tox.spec ++++++ --- /var/tmp/diff_new_pack.GyPE8t/_old 2013-09-23 11:17:54.000000000 +0200 +++ /var/tmp/diff_new_pack.GyPE8t/_new 2013-09-23 11:17:54.000000000 +0200 @@ -17,19 +17,24 @@ Name: python-tox -Version: 1.5.0 +Version: 1.6.1 Release: 0 Summary: Virtualenv-based automation of test activities License: MIT Group: Development/Languages/Python Url: http://codespeak.net/tox Source: http://pypi.python.org/packages/source/t/tox/tox-%{version}.tar.gz -BuildRequires: python-Sphinx +Patch0: tox-disable-network-accessing-tests.patch BuildRequires: python-devel +# Documentation requirements: +BuildRequires: python-Sphinx +# Test requirements: +BuildRequires: python-argparse BuildRequires: python-py >= 1.4.9 -BuildRequires: python-pytest +BuildRequires: python-pytest >= 2.3.5 BuildRequires: python-virtualenv BuildRequires: unzip +Requires: python-argparse Requires: python-py Requires: python-virtualenv BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -56,6 +61,8 @@ %prep %setup -q -n tox-%{version} +%patch0 -p1 +sed -i -e "/^\\[testenv\\]/ a\\sitepackages = True" tox.ini %build python setup.py build @@ -64,8 +71,8 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# %%check -# python setup.py test +%check +PATH=%{buildroot}%{_bindir}:$PATH PYTHONPATH=%{buildroot}%{python_sitelib}/ python setup.py test %files %defattr(-,root,root,-) ++++++ tox-1.5.0.tar.gz -> tox-1.6.1.tar.gz ++++++ ++++ 5908 lines of diff (skipped) ++++++ tox-disable-network-accessing-tests.patch ++++++ Binary files a/tests/.test_config.py.swp and b/tests/.test_config.py.swp differ diff -ruN a/tests/test_z_cmdline.py b/tests/test_z_cmdline.py --- a/tests/test_z_cmdline.py 2013-09-04 15:55:04.000000000 +0200 +++ b/tests/test_z_cmdline.py 2013-09-05 10:12:19.605599163 +0200 @@ -380,47 +380,47 @@ ''' }) - def test_toxuone_env(self, cmd, example123): - result = cmd.run("tox") - assert not result.ret - result.stdout.fnmatch_lines([ - "*junit-python.xml*", - "*1 passed*", - ]) - result = cmd.run("tox", "-epython", ) - assert not result.ret - result.stdout.fnmatch_lines([ - "*1 passed*", - "*summary*", - "*python: commands succeeded" - ]) - - def test_different_config_cwd(self, cmd, example123, monkeypatch): - # see that things work with a different CWD - monkeypatch.chdir(cmd.tmpdir) - result = cmd.run("tox", "-c", "example123/tox.ini") - assert not result.ret - result.stdout.fnmatch_lines([ - "*1 passed*", - "*summary*", - "*python: commands succeeded" - ]) - - def test_json(self, cmd, example123): - # see that tests can also fail and retcode is correct - testfile = py.path.local("tests").join("test_hello.py") - assert testfile.check() - testfile.write("def test_fail(): assert 0") - jsonpath = cmd.tmpdir.join("res.json") - result = cmd.run("tox", "--result-json", jsonpath) - assert result.ret == 1 - data = json.load(jsonpath.open("r")) - verify_json_report_format(data) - result.stdout.fnmatch_lines([ - "*1 failed*", - "*summary*", - "*python: *failed*", - ]) +#def test_toxuone_env(self, cmd, example123): +# result = cmd.run("tox") +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*junit-python.xml*", +# "*1 passed*", +# ]) +# result = cmd.run("tox", "-epython", ) +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*1 passed*", +# "*summary*", +# "*python: commands succeeded" +# ]) + +#def test_different_config_cwd(self, cmd, example123, monkeypatch): +# # see that things work with a different CWD +# monkeypatch.chdir(cmd.tmpdir) +# result = cmd.run("tox", "-c", "example123/tox.ini") +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*1 passed*", +# "*summary*", +# "*python: commands succeeded" +# ]) + +#def test_json(self, cmd, example123): +# # see that tests can also fail and retcode is correct +# testfile = py.path.local("tests").join("test_hello.py") +# assert testfile.check() +# testfile.write("def test_fail(): assert 0") +# jsonpath = cmd.tmpdir.join("res.json") +# result = cmd.run("tox", "--result-json", jsonpath) +# assert result.ret == 1 +# data = json.load(jsonpath.open("r")) +# verify_json_report_format(data) +# result.stdout.fnmatch_lines([ +# "*1 failed*", +# "*summary*", +# "*python: *failed*", +# ]) def test_develop(initproj, cmd): @@ -430,14 +430,14 @@ assert not result.ret assert "sdist-make" not in result.stdout.str() -def test_usedevelop(initproj, cmd): - initproj("example123", filedefs={'tox.ini': """ - [testenv] - usedevelop=True - """}) - result = cmd.run("tox", "-vv") - assert not result.ret - assert "sdist-make" not in result.stdout.str() +# def test_usedevelop(initproj, cmd): +# initproj("example123", filedefs={'tox.ini': """ +# [testenv] +# usedevelop=True +# """}) +# result = cmd.run("tox", "-vv") +# assert not result.ret +# assert "sdist-make" not in result.stdout.str() def test_usedevelop_mixed(initproj, cmd): initproj("example123", filedefs={'tox.ini': """ @@ -457,57 +457,57 @@ assert not result.ret assert "sdist-make" in result.stdout.str() -def test_test_usedevelop(cmd, initproj): - initproj("example123-0.5", filedefs={ - 'tests': {'test_hello.py': """ - def test_hello(pytestconfig): - pass - """, - }, - 'tox.ini': ''' - [testenv] - usedevelop=True - changedir=tests - commands= - py.test --basetemp={envtmpdir} --junitxml=junit-{envname}.xml [] - deps=pytest - ''' - }) - result = cmd.run("tox", "-v") - assert not result.ret - result.stdout.fnmatch_lines([ - "*junit-python.xml*", - "*1 passed*", - ]) - assert "sdist-make" not in result.stdout.str() - result = cmd.run("tox", "-epython", ) - assert not result.ret - result.stdout.fnmatch_lines([ - "*1 passed*", - "*summary*", - "*python: commands succeeded" - ]) - # see that things work with a different CWD - old = cmd.tmpdir.chdir() - result = cmd.run("tox", "-c", "example123/tox.ini") - assert not result.ret - result.stdout.fnmatch_lines([ - "*1 passed*", - "*summary*", - "*python: commands succeeded" - ]) - old.chdir() - # see that tests can also fail and retcode is correct - testfile = py.path.local("tests").join("test_hello.py") - assert testfile.check() - testfile.write("def test_fail(): assert 0") - result = cmd.run("tox", ) - assert result.ret - result.stdout.fnmatch_lines([ - "*1 failed*", - "*summary*", - "*python: *failed*", - ]) +#def test_test_usedevelop(cmd, initproj): +# initproj("example123-0.5", filedefs={ +# 'tests': {'test_hello.py': """ +# def test_hello(pytestconfig): +# pass +# """, +# }, +# 'tox.ini': ''' +# [testenv] +# usedevelop=True +# changedir=tests +# commands= +# py.test --basetemp={envtmpdir} --junitxml=junit-{envname}.xml [] +# deps=pytest +# ''' +# }) +# result = cmd.run("tox", "-v") +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*junit-python.xml*", +# "*1 passed*", +# ]) +# assert "sdist-make" not in result.stdout.str() +# result = cmd.run("tox", "-epython", ) +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*1 passed*", +# "*summary*", +# "*python: commands succeeded" +# ]) +# # see that things work with a different CWD +# old = cmd.tmpdir.chdir() +# result = cmd.run("tox", "-c", "example123/tox.ini") +# assert not result.ret +# result.stdout.fnmatch_lines([ +# "*1 passed*", +# "*summary*", +# "*python: commands succeeded" +# ]) +# old.chdir() +# # see that tests can also fail and retcode is correct +# testfile = py.path.local("tests").join("test_hello.py") +# assert testfile.check() +# testfile.write("def test_fail(): assert 0") +# result = cmd.run("tox", ) +# assert result.ret +# result.stdout.fnmatch_lines([ +# "*1 failed*", +# "*summary*", +# "*python: *failed*", +# ]) def test_test_piphelp(initproj, cmd): Binary files a/tests/.test_z_cmdline.py.swp and b/tests/.test_z_cmdline.py.swp differ -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de