Files
python-pytest/python-pytest-doc.spec
Dominique Leuenberger d658ec082f Accepting request 537603 from devel:languages:python
- update to version 3.2.3:
  * Bug Fixes
    + Fix crash in tab completion when no prefix is given. (#2748)
    + The equality checking function (__eq__) of MarkDecorator returns
      False if one object is not an instance of MarkDecorator. (#2758)
    + When running pytest --fixtures-per-test: don’t crash if an item
      has no _fixtureinfo attribute (e.g. doctests) (#2788)
  * Improved Documentation
    + In help text of -k option, add example of using not to not
      select certain tests whose names match the provided
      expression. (#1442)
    + Add note in parametrize.rst about calling metafunc.parametrize
      multiple times. (#1548)
  * Trivial/Internal Changes
    + Set xfail_strict=True in pytest’s own test suite to catch
      expected failures as soon as they start to pass. (#2722)
    + Fix typo in example of passing a callable to markers (in
      example/markers.rst) (#2765)

- Fix python-py version requirement.
- Update to 3.2.2:
  * Bug Fixes
    - Calling the deprecated request.getfuncargvalue() now shows the
      source of the call. (#2681)
    - Allow tests declared as @staticmethod to use fixtures. (#2699)
    - Fixed edge-case during collection: attributes which raised
      pytest.fail when accessed would abort the entire collection.
      (#2707)
    - Fix ReprFuncArgs with mixed unicode and UTF-8 args. (#2731)
  * Improved Documentation

OBS-URL: https://build.opensuse.org/request/show/537603
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=27
2017-11-02 09:24:10 +00:00

74 lines
2.4 KiB
RPMSpec

#
# spec file for package python-pytest-doc
#
# Copyright (c) 2017 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.2.3
Release: 0
Summary: Simple powerful testing with Python
License: MIT
Group: Development/Languages/Python
Url: http://pytest.org
Source: https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module py >= 1.4.33}
BuildRequires: %{python_module setuptools_scm}
# /SECTION
BuildRequires: python3-Sphinx
Provides: %{python_module pytest-doc = %{version}}
BuildArch: noarch
%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
python3 setup.py build_sphinx
rm doc/build/html/.buildinfo
%install
# Only building documentation
%check
%python_exec setup.py test
%files
%doc CHANGELOG.rst LICENSE
%doc doc/build/html
%changelog