Files
python-pytest/python-pytest-doc.spec
Dominique Leuenberger 13b3ba408f Accepting request 618559 from devel:languages:python:pytest
-  update to 3.6.2
- add python-mock to buildrequires
- fix test command
- add python_mock.patch to use stdlib mock library on py3

- Update to version 3.6.0
  + Features
    * Revamp the internals of the ``pytest.mark`` implementation with correct per
      node handling which fixes a number of long standing bugs caused by the old
      design. This introduces new ``Node.iter_markers(name)`` and
      ``Node.get_closest_mark(name)`` APIs. Users are **strongly encouraged** to
      read the `reasons for the revamp in the docs
      <https://docs.pytest.org/en/latest/mark.html#marker-revamp-and-iteration>`_,
      or jump over to details about `updating existing code to use the new APIs
      <https://docs.pytest.org/en/latest/mark.html#updating-code>`_. (`#3317
      <https://github.com/pytest-dev/pytest/issues/3317>`_)
    * Now when ``@pytest.fixture`` is applied more than once to the same function a
      ``ValueError`` is raised. This buggy behavior would cause surprising problems
      and if was working for a test suite it was mostly by accident. (`#2334
      <https://github.com/pytest-dev/pytest/issues/2334>`_)
    * Support for Python 3.7's builtin ``breakpoint()`` method, see `Using the
      builtin breakpoint function
      <https://docs.pytest.org/en/latest/usage.html#breakpoint-builtin>`_ for
      details. (`#3180 <https://github.com/pytest-dev/pytest/issues/3180>`_)
    * ``monkeypatch`` now supports a ``context()`` function which acts as a context
      manager which undoes all patching done within the ``with`` block. (`#3290
      <https://github.com/pytest-dev/pytest/issues/3290>`_)
    * The ``--pdb`` option now causes KeyboardInterrupt to enter the debugger,
      instead of stopping the test session. On python 2.7, hitting CTRL+C again
      exits the debugger. On python 3.2 and higher, use CTRL+D. (`#3299

OBS-URL: https://build.opensuse.org/request/show/618559
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=37
2018-06-25 09:35:39 +00:00

67 lines
2.0 KiB
RPMSpec

#
# spec file for package python-pytest-doc
#
# Copyright (c) 2018 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-doc
Version: 3.6.2
Release: 0
Summary: Documentation for python-pytest, a testing tool with autodiscovery
License: MIT
Group: Documentation/HTML
URL: https://github.com/pytest-dev/pytest
Source: https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz
Patch: python_mock.patch
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pytest = %{version}}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: python-mock
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
BuildRequires: python3-sphinxcontrib-trio
Provides: %{python_module pytest-doc = %{version}}
BuildArch: noarch
%ifpython2
BuildRequires: python-funcsigs
%endif
%description
This package contains the documentation to pytest, a cross-project Python
testing tool.
%prep
%setup -q -n pytest-%{version}
%patch -p1
%build
python3 setup.py build_sphinx
rm doc/build/html/.buildinfo
%install
# Only building documentation
#Check here because in main package creates a buildcycle
%check
%{python_expand py.test-%{$python_bin_suffix}}
%files
%doc CHANGELOG.rst
%doc doc/build/html
%license LICENSE
%changelog