From 77d823c6fac8e267a5aa59b03b15c09b4567c32e10b444c6700d5ccaa323b763 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Fri, 27 Sep 2024 09:11:27 +0000 Subject: [PATCH] Accepting request 1204083 from home:mcalabkova:branches:devel:languages:python - reformat the django test constraints OBS-URL: https://build.opensuse.org/request/show/1204083 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openapi-core?expand=0&rev=45 --- python-openapi-core.changes | 5 +++++ python-openapi-core.spec | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/python-openapi-core.changes b/python-openapi-core.changes index 82a1328..de33810 100644 --- a/python-openapi-core.changes +++ b/python-openapi-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 27 08:15:11 UTC 2024 - Markéta Machová + +- reformat the django test constraints + ------------------------------------------------------------------- Fri Sep 27 07:44:25 UTC 2024 - Dirk Müller diff --git a/python-openapi-core.spec b/python-openapi-core.spec index f91cc52..c648e46 100644 --- a/python-openapi-core.spec +++ b/python-openapi-core.spec @@ -16,6 +16,11 @@ # +# python-Django is not present in SLE 16 +%if 0%{suse_version} >= 1699 +%bcond_without django +%endif + Name: python-openapi-core Version: 0.19.4 Release: 0 @@ -46,7 +51,7 @@ BuildRequires: %{python_module parse} BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} BuildRequires: %{python_module responses} -%if 0%{suse_version} > 1600 +%if %{with django} BuildRequires: %{python_module Django} %endif # /SECTION @@ -82,8 +87,7 @@ done %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# python-Django is not present in SLE 16 -%if 0%{suse_version} < 1699 +%if !%{with django} rm -v tests/unit/contrib/django/test_django.py %endif %pytest tests/unit -k 'not (test_read_only_properties_invalid or test_write_only_properties_invalid)'