Files
python-pytest-sphinx/python-pytest-sphinx.spec
Tomáš Chvátal 80540602ea Accepting request 828520 from home:mcalabkova:branches:devel:languages:python:pytest
- Update to 0.3.1
  * Adapt to importmode API changes in pytest-6.0
  * Adapt to Node API changes in pytest-5.4 (Fixes #11)
  * Add support for python 3.8 (Fixes #15)
  * Add support for skipif option in testoutput directive (Fixes #17)
  * Add support for skipif option in testcode directive (Fixes #21)
  * A ValueError is raised if the text inside the directives is not properly
    formatted.
  * Ignore the option :hide: in directives (Fixes #19)
  * Fix detection of block boundaries in parser.

OBS-URL: https://build.opensuse.org/request/show/828520
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-sphinx?expand=0&rev=8
2020-08-21 14:17:20 +00:00

68 lines
1.9 KiB
RPMSpec

#
# spec file for package python-pytest-sphinx
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-pytest-sphinx
Version: 0.3.1
Release: 0
Summary: Doctest plugin for pytest with support for Sphinx-specific doctest-directives
License: BSD-3-Clause
URL: https://github.com/thisch/pytest-sphinx
Source: https://github.com/thisch/pytest-sphinx/archive/v%{version}.tar.gz#/pytest-sphinx-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest >= 3.1.1
BuildArch: noarch
%ifpython2
Requires: python-enum34
%endif
# SECTION test requirements
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module pytest >= 3.1.1}
%if %{with python2}
BuildRequires: python2-enum34
BuildRequires: python2-mock
%endif
# /SECTION
%python_subpackages
%description
Doctest plugin for pytest with support for Sphinx-specific doctest-directives.
%prep
%setup -q -n pytest-sphinx-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%changelog