Hello community, here is the log from the commit of package python-pytest for openSUSE:Factory checked in at 2013-06-25 07:42:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest (Old) and /work/SRC/openSUSE:Factory/.python-pytest.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest" Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest/python-pytest.changes 2013-05-13 15:26:55.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest.new/python-pytest.changes 2013-06-25 14:45:01.000000000 +0200 @@ -1,0 +2,46 @@ +Tue Jun 18 09:42:10 UTC 2013 - [email protected] + +- Use update-alternatives + +------------------------------------------------------------------- +Mon Jun 17 08:45:18 UTC 2013 - [email protected] + +- Update to version 2.3.5: + + never consider a fixture function for test function collection + + allow re-running of test items / helps to fix pytest-reruntests plugin + and also help to keep less fixture/resource references alive + + put captured stdout/stderr into junitxml output even for passing tests + (thanks Adam Goucher) + + Issue 265 - integrate nose setup/teardown with setupstate + so it doesnt try to teardown if it did not setup + + issue 271 - dont write junitxml on slave nodes + + Issue 274 - dont try to show full doctest example + when doctest does not know the example location + + issue 280 - disable assertion rewriting on buggy CPython 2.6.0 + + inject "getfixture()" helper to retrieve fixtures from doctests, + thanks Andreas Zeidler + + issue 259 - when assertion rewriting, be consistent with the default + source encoding of ASCII on Python 2 + + issue 251 - report a skip instead of ignoring classes with init + + issue250 unicode/str mixes in parametrization names and values now works + + issue257, assertion-triggered compilation of source ending in a + comment line doesn't blow up in python2.5 (fixed through py>=1.4.13.dev6) + + fix --genscript option to generate standalone scripts that also + work with python3.3 (importer ordering) + + issue171 - in assertion rewriting, show the repr of some + global variables + + fix option help for "-k" + + move long description of distribution into README.rst + + improve docstring for metafunc.parametrize() + + fix bug where using capsys with pytest.set_trace() in a test + function would break when looking at capsys.readouterr() + + allow to specify prefixes starting with "_" when + customizing python_functions test discovery. (thanks Graham Horler) + + improve PYTEST_DEBUG tracing output by puting + extra data on a new lines with additional indent + + ensure OutcomeExceptions like skip/fail have initialized exception attributes + + issue 260 - don't use nose special setup on plain unittest cases + + fix issue134 - print the collect errors that prevent running specified test items + + fix issue266 - accept unicode in MarkEvaluator expressions + +------------------------------------------------------------------- Old: ---- pytest-2.3.4.zip python3-pytest.changes python3-pytest.spec New: ---- pytest-2.3.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest.spec ++++++ --- /var/tmp/diff_new_pack.cPUEJF/_old 2013-06-25 14:45:02.000000000 +0200 +++ /var/tmp/diff_new_pack.cPUEJF/_new 2013-06-25 14:45:02.000000000 +0200 @@ -17,13 +17,14 @@ Name: python-pytest -Version: 2.3.4 +Version: 2.3.5 Release: 0 Summary: Simple powerful testing with Python License: MIT Group: Development/Languages/Python Url: http://pytest.org -Source: http://pypi.python.org/packages/source/p/pytest/pytest-%{version}.zip +Source: http://pypi.python.org/packages/source/p/pytest/pytest-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: unzip # Documentation requirements: @@ -31,7 +32,8 @@ # Test requirements: BuildRequires: python-py Requires: python-py -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires(post): update-alternatives +Requires(postun): update-alternatives %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else @@ -62,14 +64,32 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +rm %{buildroot}%{_bindir}/py.test +ln -s %{_bindir}/py.test-%{py_ver} %{buildroot}%{_bindir}/py.test %check python setup.py test +%pre +# Since /usr/bin/py.test became ghosted to be used +# with update-alternatives, we have to get rid of the old binary resulting from the +# non-update-alternativies-ified package: +[[ ! -L %{_bindir}/py.test ]] && rm -f %{_bindir}/py.test +exit 0 + +%post +update-alternatives \ + --install %{_bindir}/py.test py.test %{_bindir}/py.test-%{py_ver} 20 + +%preun +if [ $1 -eq 0 ] ; then + update-alternatives --remove py.test %{_bindir}/py.test-%{py_ver} +fi + %files %defattr(-,root,root,-) -%doc LICENSE README.txt build/sphinx/html -%{_bindir}/py.test +%doc LICENSE README.rst build/sphinx/html +%ghost %{_bindir}/py.test %{_bindir}/py.test-%{py_ver} %{python_sitelib}/* -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
