diff --git a/python-openapi-core.changes b/python-openapi-core.changes index d2a1fc6..2528849 100644 --- a/python-openapi-core.changes +++ b/python-openapi-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 26 10:41:14 UTC 2024 - Markéta Machová + +- Exclude django tests for non-Factory + ------------------------------------------------------------------- Tue Feb 6 20:36:49 UTC 2024 - Ben Greiner diff --git a/python-openapi-core.spec b/python-openapi-core.spec index caed092..7b8897d 100644 --- a/python-openapi-core.spec +++ b/python-openapi-core.spec @@ -31,7 +31,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} @@ -48,6 +47,9 @@ BuildRequires: %{python_module openapi-spec-validator >= 0.7.1 with %python-ope BuildRequires: %{python_module parse} BuildRequires: %{python_module pytest} BuildRequires: %{python_module responses} +%if 0%{suse_version} >= 1699 +BuildRequires: %{python_module Django} +%endif # /SECTION Requires: python-Werkzeug Requires: python-asgiref >= 3.6.0 @@ -81,6 +83,10 @@ done %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# python-Django is not present in SLE 16 +%if 0%{suse_version} < 1699 +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}