15
0
forked from pool/python-sybil
Files
python-sybil/python-sybil.spec
Steve Kowalik fd28f930b2 - Update to 3.0.0:
* Require pytest 6.2.0.
  * Drop Python 2 support.
  * Add support for Python 3.10
  * Remove the encoding parameter to
    :class:`~sybil.parsers.doctest.DocTestParser` as it is no longer used.
  * :class:`~sybil.parsers.codeblock.CodeBlockParser` has been renamed to
    :class:`~sybil.parsers.codeblock.PythonCodeBlockParser`, see the
    :ref:`codeblock-parser` documentation for details.
  * Support has been added to check examples in Python source code in
    addition to documentation source files.
  * :attr:`~sybil.parsers.doctest.FIX_BYTE_UNICODE_REPR` has been removed
    as it should no longer be needed.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=25
2021-12-13 04:12:44 +00:00

63 lines
1.9 KiB
RPMSpec

#
# spec file for package python-sybil
#
# Copyright (c) 2021 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-%{**}}
%define skip_python2 1
Name: python-sybil
Version: 3.0.0
Release: 0
Summary: Automated testing of examples in documentation
License: MIT
URL: https://github.com/cjw296/sybil
Source: https://files.pythonhosted.org/packages/source/s/sybil/sybil-%{version}.tar.gz
BuildRequires: %{python_module pytest >= 6.2}
BuildRequires: %{python_module setuptools-git}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-pytest
BuildArch: noarch
%python_subpackages
%description
python-sybil provides a way to test examples in one's documentation by parsing
them from the documentation source and evaluating the parsed examples as part
of the normal test run. Integration is provided for the main Python test runners.
%prep
%setup -q -n sybil-%{version}
sed -i '/pytest-cov/ d' setup.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst docs/changes.rst
%license docs/license.rst
%{python_sitelib}/sybil
%{python_sitelib}/sybil-%{version}*-info
%changelog