Sync from SUSE:SLFO:Main python-openapi-core revision c8df9ce78125f4389e58caa5f9f835a1
This commit is contained in:
parent
d73b75e56a
commit
7854d84c12
@ -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>
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user