diff --git a/python-flasgger.changes b/python-flasgger.changes index 73c05a0..105ea63 100644 --- a/python-flasgger.changes +++ b/python-flasgger.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Oct 23 10:03:15 UTC 2022 - John Vandenberg + +- Re-activate test suite + ------------------------------------------------------------------- Thu Apr 28 07:23:15 UTC 2022 - Markéta Machová diff --git a/python-flasgger.spec b/python-flasgger.spec index 8324997..08d2d5c 100644 --- a/python-flasgger.spec +++ b/python-flasgger.spec @@ -25,14 +25,6 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/rochacbruno/flasgger/ Source: https://files.pythonhosted.org/packages/source/f/flasgger/flasgger-%{version}.tar.gz -#BuildRequires: %{python_module Flask >= 0.10} -#BuildRequires: %{python_module PyYAML >= 3.0} -#BuildRequires: %{python_module flex} -#BuildRequires: %{python_module jsonschema >= 3.0.1} -#BuildRequires: %{python_module marshmallow} -#BuildRequires: %{python_module mistune} -#BuildRequires: %{python_module pytest >= 3.0.7} -#BuildRequires: %{python_module six >= 1.10} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -42,6 +34,16 @@ Requires: python-jsonschema >= 3.0.1 Requires: python-mistune Requires: python-six >= 1.10 BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Flask >= 0.10} +BuildRequires: %{python_module PyYAML >= 3.0} +BuildRequires: %{python_module flex} +BuildRequires: %{python_module jsonschema >= 3.0.1} +BuildRequires: %{python_module marshmallow} +BuildRequires: %{python_module mistune} +BuildRequires: %{python_module pytest >= 3.0.7} +BuildRequires: %{python_module six >= 1.10} +# /SECTION %python_subpackages %description @@ -49,6 +51,8 @@ Flasgger is a Flask extension to extract OpenAPI=Specification from all Flask vi %prep %setup -q -n flasgger-%{version} +# Examples directory is not included in PyPI release +rm tests/test_examples.py %build %python_build @@ -57,13 +61,12 @@ Flasgger is a Flask extension to extract OpenAPI=Specification from all Flask vi %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -# upstream testsuite is very fragile and needs packages we don't have -#%check -#%%pytest +%check +%pytest tests/ %files %{python_files} %license LICENSE %doc README.md -%{python_sitelib}/* +%{python_sitelib}/flasgger*/ %changelog