From 7854d84c126e29b8b26a5c6a9f1efcc1dcf36b4abb62e66147e6ae75adb2c6c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 1 Oct 2024 10:34:08 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-openapi-core revision c8df9ce78125f4389e58caa5f9f835a1 --- python-openapi-core.changes | 5 +++++ python-openapi-core.spec | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/python-openapi-core.changes b/python-openapi-core.changes index 35dc241..7915917 100644 --- a/python-openapi-core.changes +++ b/python-openapi-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 26 10:21:13 UTC 2024 - Markéta Machová + +- Exclude django tests for non-Factory + ------------------------------------------------------------------- Sat Sep 23 10:34:22 UTC 2023 - Ben Greiner diff --git a/python-openapi-core.spec b/python-openapi-core.spec index 160e497..92d075b 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.18.1 Release: 0 @@ -29,7 +34,6 @@ BuildRequires: %{python_module poetry-core} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test -BuildRequires: %{python_module Django >= 3.0} BuildRequires: %{python_module Flask} BuildRequires: %{python_module WebOb} BuildRequires: %{python_module Werkzeug} @@ -46,6 +50,9 @@ BuildRequires: %{python_module openapi-spec-validator >= 0.6 with %python-opena BuildRequires: %{python_module parse} BuildRequires: %{python_module pytest} BuildRequires: %{python_module responses} +%if %{with django} +BuildRequires: %{python_module Django} +%endif # /SECTION Requires: python-Werkzeug Requires: python-asgiref >= 3.6.0 @@ -81,6 +88,9 @@ done %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +%if !%{with django} +rm tests/unit/contrib/django/test_django.py +%endif %pytest tests/unit -k 'not (test_read_only_properties_invalid or test_write_only_properties_invalid)' %files %{python_files}