Sync from SUSE:SLFO:Main python-openapi-core revision c8df9ce78125f4389e58caa5f9f835a1

This commit is contained in:
Adrian Schröter 2024-10-01 10:34:08 +02:00
parent d73b75e56a
commit 7854d84c12
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 26 10:21:13 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Exclude django tests for non-Factory
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Sep 23 10:34:22 UTC 2023 - Ben Greiner <code@bnavigator.de> Sat Sep 23 10:34:22 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -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 Name: python-openapi-core
Version: 0.18.1 Version: 0.18.1
Release: 0 Release: 0
@ -29,7 +34,6 @@ BuildRequires: %{python_module poetry-core}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION test # SECTION test
BuildRequires: %{python_module Django >= 3.0}
BuildRequires: %{python_module Flask} BuildRequires: %{python_module Flask}
BuildRequires: %{python_module WebOb} BuildRequires: %{python_module WebOb}
BuildRequires: %{python_module Werkzeug} 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 parse}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module responses} BuildRequires: %{python_module responses}
%if %{with django}
BuildRequires: %{python_module Django}
%endif
# /SECTION # /SECTION
Requires: python-Werkzeug Requires: python-Werkzeug
Requires: python-asgiref >= 3.6.0 Requires: python-asgiref >= 3.6.0
@ -81,6 +88,9 @@ done
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %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)' %pytest tests/unit -k 'not (test_read_only_properties_invalid or test_write_only_properties_invalid)'
%files %{python_files} %files %{python_files}