2018-05-24 20:56:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-sybil
|
|
|
|
#
|
2021-02-23 10:16:42 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-05-24 20:56:56 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-11-21 13:03:29 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-24 20:56:56 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2021-12-13 04:12:44 +00:00
|
|
|
%define skip_python2 1
|
2018-05-24 20:56:56 +00:00
|
|
|
Name: python-sybil
|
2021-12-13 04:12:44 +00:00
|
|
|
Version: 3.0.0
|
2018-05-24 20:56:56 +00:00
|
|
|
Release: 0
|
2018-07-30 07:37:04 +00:00
|
|
|
Summary: Automated testing of examples in documentation
|
2018-05-24 20:56:56 +00:00
|
|
|
License: MIT
|
2020-03-17 10:19:25 +00:00
|
|
|
URL: https://github.com/cjw296/sybil
|
2018-05-24 20:56:56 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/sybil/sybil-%{version}.tar.gz
|
2022-02-16 16:34:59 +00:00
|
|
|
Patch0: python-sybil-fix-ordering.diff
|
2021-12-13 04:12:44 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 6.2}
|
2018-05-24 20:56:56 +00:00
|
|
|
BuildRequires: %{python_module setuptools-git}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-28 08:39:51 +00:00
|
|
|
Recommends: python-pytest
|
2018-05-24 20:56:56 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-07-30 07:37:04 +00:00
|
|
|
python-sybil provides a way to test examples in one's documentation by parsing
|
2018-05-24 20:56:56 +00:00
|
|
|
them from the documentation source and evaluating the parsed examples as part
|
2021-02-23 10:16:42 +00:00
|
|
|
of the normal test run. Integration is provided for the main Python test runners.
|
2018-05-24 20:56:56 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n sybil-%{version}
|
2021-02-23 10:16:42 +00:00
|
|
|
sed -i '/pytest-cov/ d' setup.py
|
2022-02-16 16:34:59 +00:00
|
|
|
%patch0 -p1
|
2018-05-24 20:56:56 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-08-27 19:45:59 +00:00
|
|
|
%pytest
|
2018-05-24 20:56:56 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst docs/changes.rst
|
|
|
|
%license docs/license.rst
|
2021-02-23 10:16:42 +00:00
|
|
|
%{python_sitelib}/sybil
|
|
|
|
%{python_sitelib}/sybil-%{version}*-info
|
2018-05-24 20:56:56 +00:00
|
|
|
|
|
|
|
%changelog
|