diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-sybil.changes b/python-sybil.changes index 4e51352..94677ba 100644 --- a/python-sybil.changes +++ b/python-sybil.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Wed May 8 04:19:03 UTC 2024 - Steve Kowalik +Mon May 13 04:09:28 UTC 2024 - Steve Kowalik - 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 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á diff --git a/python-sybil.spec b/python-sybil.spec index 969dc27..7ed6133 100644 --- a/python-sybil.spec +++ b/python-sybil.spec @@ -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