- Sprinkle in multibuild to avoid a cycle.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=37
This commit is contained in:
Steve Kowalik 2024-05-13 04:10:07 +00:00 committed by Git OBS Bridge
parent 03c5560bbe
commit 727079f4c2
3 changed files with 25 additions and 5 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,5 +1,5 @@
-------------------------------------------------------------------
Wed May 8 04:19:03 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
Mon May 13 04:09:28 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 6.1.0:
* Add support for lexing nested fenced codeblocks in markdown.
@ -45,6 +45,7 @@ Wed May 8 04:19:03 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
while testing examples in target languages such as Python, doctest and bash.
* Add support for MyST examples.
- Drop patch pytest74.patch, included upstream.
- Sprinkle in multibuild to avoid a cycle.
-------------------------------------------------------------------
Tue Jan 16 15:22:42 UTC 2024 - Markéta Machová <mmachova@suse.com>

View File

@ -16,25 +16,35 @@
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-sybil
Name: python-sybil%{psuffix}
Version: 6.1.0
Release: 0
Summary: Automated testing of examples in documentation
License: MIT
URL: https://github.com/simplistix/sybil
Source: https://github.com/simplistix/sybil/archive/refs/tags/%{version}.tar.gz#/sybil-%{version}.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
%if %{with test}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module pytest >= 7.1}
BuildRequires: %{python_module seedir}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module testfixtures}
BuildRequires: %{python_module wheel}
%if 0%{?sle_version} && 0%{?sle_version} <= 150400
BuildRequires: %{python_module dataclasses}
%endif
%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-pytest
@ -53,17 +63,23 @@ sed -i '/pytest-cov/ d' setup.py
%build
%pyproject_wheel
%if !%{with test}
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
%pytest
%endif
%if !%{with test}
%files %{python_files}
%doc README.rst docs/changes.rst
%license docs/license.rst
%{python_sitelib}/sybil
%{python_sitelib}/sybil-%{version}.dist-info
%endif
%changelog