Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-flasgger for openSUSE:Factory 
checked in at 2022-12-24 14:51:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-flasgger (Old)
 and      /work/SRC/openSUSE:Factory/.python-flasgger.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-flasgger"

Sat Dec 24 14:51:02 2022 rev:4 rq:1044191 version:0.9.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-flasgger/python-flasgger.changes  
2022-04-30 00:45:48.962965876 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-flasgger.new.1563/python-flasgger.changes    
    2022-12-24 14:51:08.711230289 +0100
@@ -1,0 +2,12 @@
+Thu Dec 22 08:47:43 UTC 2022 - Daniel Garcia <[email protected]>
+
+- Add multibuild for tests to avoid package build cycle.
+  flasgger -> flex (testing) -> httpbin -> flasgger
+
+-------------------------------------------------------------------
+Sun Oct 23 10:03:15 UTC 2022 - John Vandenberg <[email protected]>
+
+- Re-activate test suite
+- Also remove the conditional definition of python_module.
+
+-------------------------------------------------------------------

New:
----
  _multibuild

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-flasgger.spec ++++++
--- /var/tmp/diff_new_pack.T5a0Ca/_old  2022-12-24 14:51:09.171232973 +0100
+++ /var/tmp/diff_new_pack.T5a0Ca/_new  2022-12-24 14:51:09.175232996 +0100
@@ -1,5 +1,5 @@
 #
-# spec file for package python-flasgger
+# spec file
 #
 # Copyright (c) 2022 SUSE LLC
 #
@@ -16,8 +16,16 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name:           python-flasgger
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+
+Name:           python-flasgger%{psuffix}
 Version:        0.9.5
 Release:        0
 Summary:        Tool to extract swagger specs from Flask projects
@@ -25,14 +33,6 @@
 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 +42,21 @@
 Requires:       python-mistune
 Requires:       python-six >= 1.10
 BuildArch:      noarch
+
+%if %{with test}
+# SECTION test requirements
+BuildRequires:  %{python_module flasgger = %{version}}
+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
+%endif
+
 %python_subpackages
 
 %description
@@ -50,20 +65,32 @@
 %prep
 %setup -q -n flasgger-%{version}
 
+# Examples directory is not included in PyPI release
+rm tests/test_examples.py
+
+find . -name .DS_Store -print -delete
+
+%if !%{with test}
 %build
 %python_build
 
 %install
 %python_install
-%python_expand %fdupes %{buildroot}%{$python_sitelib}
-
-# upstream testsuite is very fragile and needs packages we don't have
-#%check
-#%%pytest
+%{python_expand chmod -x 
%{buildroot}%{$python_sitelib}/flasgger/ui2/static/lang/*.js
+%fdupes %{buildroot}%{$python_sitelib}
+}
+%endif
+
+%if %{with test}
+%check
+%pytest tests/
+%endif
 
+%if !%{with test}
 %files %{python_files}
 %license LICENSE
 %doc README.md
-%{python_sitelib}/*
+%{python_sitelib}/flasgger*/
+%endif
 
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

Reply via email to