From 04bc457b90355e6d94d5bb77817aebd1fdc3d13d5eaa30c0417e0be7914d6245 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 25 May 2015 21:05:14 +0000 Subject: [PATCH] Accepting request 308505 from devel:languages:python 1 OBS-URL: https://build.opensuse.org/request/show/308505 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=17 --- pytest-2.6.3.tar.gz | 3 - pytest-2.7.1.tar.gz | 3 + python-pytest-doc.changes | 5 ++ python-pytest-doc.spec | 66 +++++++++++++++++++++ python-pytest.changes | 120 ++++++++++++++++++++++++++++++++++++++ python-pytest.spec | 19 +++--- 6 files changed, 203 insertions(+), 13 deletions(-) delete mode 100644 pytest-2.6.3.tar.gz create mode 100644 pytest-2.7.1.tar.gz create mode 100644 python-pytest-doc.changes create mode 100644 python-pytest-doc.spec diff --git a/pytest-2.6.3.tar.gz b/pytest-2.6.3.tar.gz deleted file mode 100644 index 6121c7e..0000000 --- a/pytest-2.6.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97f41dd9f318095b431945bede7a6f02c62c0a40a6c7a976a3820ea377a0eecc -size 634974 diff --git a/pytest-2.7.1.tar.gz b/pytest-2.7.1.tar.gz new file mode 100644 index 0000000..ee84e5b --- /dev/null +++ b/pytest-2.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:530f23c79e1b13850e93f3a59720f1eca75bad01307dc4fd694a6a19619fb9cb +size 531671 diff --git a/python-pytest-doc.changes b/python-pytest-doc.changes new file mode 100644 index 0000000..4e687ef --- /dev/null +++ b/python-pytest-doc.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun May 24 10:57:07 UTC 2015 - toddrme2178@gmail.com + +- Split documentation into separate package to avoid build loop + diff --git a/python-pytest-doc.spec b/python-pytest-doc.spec new file mode 100644 index 0000000..3a591bd --- /dev/null +++ b/python-pytest-doc.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-pytest-doc +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: python-pytest-doc +Version: 2.7.1 +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}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: unzip +BuildRequires: python-Sphinx +BuildRequires: python-pytest +Recommends: python-pytest +%if 0%{?suse_version} && 0%{?suse_version} > 1110 +BuildArch: noarch +%endif + +%description +pytest helps you write better programs. It is a a mature full-featured, +cross-project Python testing tool. It provides: + +* auto-discovery of test modules and functions, +* detailed info on failing assert statements (no need to remember + self.assert* names), +* modular fixtures for managing small or parametrized long-lived test resources. +* multi-paradigm support: you can use py.test to run test suites based on + unittest (or trial), nose, +* single-source compatibility to Python2.4 all the way up to Python3.3, + PyPy-1.9 and Jython-2.5.1, and +* many external plugins. + +This package contains the documentation for pytest + + +%prep +%setup -q -n pytest-%{version} + +%build +python setup.py build_sphinx + +%install +# Only building documentation + +%files +%defattr(-,root,root,-) +%doc LICENSE doc/build/html + +%changelog diff --git a/python-pytest.changes b/python-pytest.changes index 1e74ed0..dd47915 100644 --- a/python-pytest.changes +++ b/python-pytest.changes @@ -1,3 +1,123 @@ +------------------------------------------------------------------- +Sun May 24 10:57:07 UTC 2015 - toddrme2178@gmail.com + +- Split documentation into separate package to avoid build loop + +------------------------------------------------------------------- +Thu May 21 13:44:26 UTC 2015 - toddrme2178@gmail.com + +- It doesn't need Twisted, and the dependency causes a build cycle. + So it is removed from BuildRequires + +------------------------------------------------------------------- +Wed May 20 14:03:37 UTC 2015 - toddrme2178@gmail.com + +- Update to version 2.7.1: + * fix issue731: do not get confused by the braces which may be + present and unbalanced in an object's repr while collapsing + False explanations. Thanks Carl Meyer for the report and test + case. + * fix issue553: properly handling inspect.getsourcelines + failures in FixtureLookupError which would lead to to an + internal error, obfuscating the original problem. Thanks + talljosh for initial diagnose/patch and Bruno Oliveira for + final patch. + * fix issue660: properly report scope-mismatch-access errors + independently from ordering of fixture arguments. Also + avoid the pytest internal traceback which does not provide + information to the user. Thanks Holger Krekel. + * streamlined and documented release process. Also all + versions (in setup.py and documentation generation) are now + read from _pytest/__init__.py. Thanks Holger Krekel. + * fixed docs to remove the notion that yield-fixtures are + experimental. They are here to stay :) Thanks Bruno Oliveira. + * Support building wheels by using environment markers for the + requirements. Thanks Ionel Maries Cristian. + * fixed regression to 2.6.4 which surfaced e.g. in lost stdout + capture printing when tests raised SystemExit. Thanks + Holger Krekel. + * reintroduced _pytest fixture of the pytester plugin which + is used at least by pytest-xdist. + +------------------------------------------------------------------- +Sun Apr 5 05:51:50 UTC 2015 - tbechtold@suse.com + +- update to 2.7.0: + - fix issue435: make reload() work when assert rewriting is active. + Thanks Daniel Hahler. + - fix issue616: conftest.py files and their contained fixutres are now + properly considered for visibility, independently from the exact + current working directory and test arguments that are used. + Many thanks to Eric Siegerman and his PR235 which contains + systematic tests for conftest visibility and now passes. + This change also introduces the concept of a ``rootdir`` which + is printed as a new pytest header and documented in the pytest + customize web page. + - change reporting of "diverted" tests, i.e. tests that are collected + in one file but actually come from another (e.g. when tests in a test class + come from a base class in a different file). We now show the nodeid + and indicate via a postfix the other file. + - add ability to set command line options by environment + variable PYTEST_ADDOPTS. + - added documentation on the new pytest-dev teams on bitbucket and + github. See https://pytest.org/latest/contributing.html . + Thanks to Anatoly for pushing and initial work on this. + - fix issue650: new option ``--docttest-ignore-import-errors`` which + will turn import errors in doctests into skips. Thanks Charles Cloud + for the complete PR. + - fix issue655: work around different ways that cause python2/3 + to leak sys.exc_info into fixtures/tests causing failures in 3rd party code + - fix issue615: assertion re-writing did not correctly escape % signs + when formatting boolean operations, which tripped over mixing + booleans with modulo operators. Thanks to Tom Viner for the report, + triaging and fix. + - implement issue351: add ability to specify parametrize ids as a callable + to generate custom test ids. Thanks Brianna Laugher for the idea and + implementation. + - introduce and document new hookwrapper mechanism useful for plugins + which want to wrap the execution of certain hooks for their purposes. + This supersedes the undocumented ``__multicall__`` protocol which + pytest itself and some external plugins use. Note that pytest-2.8 + is scheduled to drop supporting the old ``__multicall__`` + and only support the hookwrapper protocol. + - majorly speed up invocation of plugin hooks + - use hookwrapper mechanism in builtin pytest plugins. + - add a doctest ini option for doctest flags, thanks Holger Peters. + - add note to docs that if you want to mark a parameter and the + parameter is a callable, you also need to pass in a reason to disambiguate + it from the "decorator" case. Thanks Tom Viner. + - "python_classes" and "python_functions" options now support glob-patterns + for test discovery, as discussed in issue600. Thanks Ldiary Translations. + - allow to override parametrized fixtures with non-parametrized ones and + vice ver sa (bubenkoff). + - fix issue463: raise specific error for 'parameterize' misspelling + (pfctdayelise ). + - On failure, the ``sys.last_value``, ``sys.last_type`` and + ``sys.last_traceback`` are set, so that a user can inspect the error + via postmortem debugging (almarklein). +- Bump Requires/BuildRequires for python-py + +------------------------------------------------------------------- +Wed Mar 25 14:00:17 UTC 2015 - mcihar@suse.cz + +- Add optional dependencies for testsuite as BuildRequires. + +------------------------------------------------------------------- +Wed Mar 25 13:48:01 UTC 2015 - mcihar@suse.cz + +- Update to 2.6.4: + - Improve assertion failure reporting on iterables, by using ndiff and pprint. + - removed outdated japanese docs from source tree. + - docs for "pytest_addhooks" hook. Thanks Bruno Oliveira. + - updated plugin index docs. Thanks Bruno Oliveira. + - fix issue557: with "-k" we only allow the old style "-" for negation + at the beginning of strings and even that is deprecated. Use "not" instead. + This should allow to pick parametrized tests where "-" appeared in the parameter. + - fix issue604: Escape % character in the assertion message. + - fix issue620: add explanation in the --genscript target about what + the binary blob means. Thanks Dinu Gherman. + - fix issue614: fixed pastebin support. + ------------------------------------------------------------------- Sat Nov 08 20:29:00 UTC 2014 - Led diff --git a/python-pytest.spec b/python-pytest.spec index bcd65dc..ef85e2b 100644 --- a/python-pytest.spec +++ b/python-pytest.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-pytest -Version: 2.6.3 +Version: 2.7.1 Release: 0 Summary: Simple powerful testing with Python License: MIT @@ -27,11 +27,13 @@ Source: http://pypi.python.org/packages/source/p/pytest/pytest-%{version BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: unzip -# Documentation requirements: -BuildRequires: python-Sphinx +BuildRequires: python-py >= 1.4.25 +BuildRequires: python-setuptools # Test requirements: -BuildRequires: python-py >= 1.4.22 -Requires: python-py >= 1.4.22 +BuildRequires: lsof +BuildRequires: python-mock +BuildRequires: python-pexpect +Requires: python-py >= 1.4.25 Requires(post): update-alternatives Requires(postun): update-alternatives #/usr/bin/py.test imports pkg_resources @@ -63,7 +65,6 @@ cross-project Python testing tool. It provides: %build python setup.py build -python setup.py build_sphinx %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} @@ -74,8 +75,6 @@ ln -s %{_bindir}/py.test-%{py_ver} %{buildroot}%{_bindir}/py.test %check #FIXME (mvyskocil): test fail on doc/en/example/nonpython/test_simple.yml #maybe too old python-PyYAML package? Factory has 3.12, where latest upstream is 13.12.0 -mv doc/en/example/nonpython/test_simple.yml doc/en/example/nonpython/_test_simple.yml -mv doc/ja/example/nonpython/test_simple.yml doc/ja/example/nonpython/_test_simple.yml python setup.py test %endif @@ -97,7 +96,7 @@ fi %files %defattr(-,root,root,-) -%doc LICENSE README.rst doc/build/html +%doc LICENSE README.rst %if 0%{?suse_version} >= 1230 %ghost %{_sysconfdir}/alternatives/py.test %endif