Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-webassets for 
openSUSE:Factory checked in at 2021-04-27 21:35:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-webassets (Old)
 and      /work/SRC/openSUSE:Factory/.python-webassets.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-webassets"

Tue Apr 27 21:35:03 2021 rev:5 rq:888643 version:2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-webassets/python-webassets.changes        
2020-05-19 14:46:51.743862419 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-webassets.new.12324/python-webassets.changes 
    2021-04-27 21:35:27.244061999 +0200
@@ -1,0 +2,7 @@
+Mon Apr 26 23:06:51 UTC 2021 - Ben Greiner <[email protected]>
+
+- Add webassets-py39-threading.patch -- gh#miracle2k/webassets#529
+- Add remove-nose.patch -- gh#miracle2k/webassets#539
+- Install some filter packages for test suite
+
+-------------------------------------------------------------------

New:
----
  remove-nose.patch
  webassets-py39-threading.patch

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

Other differences:
------------------
++++++ python-webassets.spec ++++++
--- /var/tmp/diff_new_pack.fvTp3E/_old  2021-04-27 21:35:27.848062994 +0200
+++ /var/tmp/diff_new_pack.fvTp3E/_new  2021-04-27 21:35:27.848062994 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-webassets
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%bcond_without  python2
 Name:           python-webassets
 Version:        2.0
 Release:        0
@@ -25,19 +26,35 @@
 # jspacker=LGPL-2.1
 # cssrewrite=BSD-3-Clause
 # six.py=MIT
-License:        BSD-2-Clause AND Apache-2.0 AND LGPL-2.1-only AND BSD-3-Clause 
AND MIT
+License:        Apache-2.0 AND BSD-2-Clause AND LGPL-2.1-only AND BSD-3-Clause 
AND MIT
 Group:          Development/Languages/Python
 URL:            https://github.com/miracle2k/webassets/
 Source:         
https://files.pythonhosted.org/packages/source/w/webassets/webassets-%{version}.tar.gz
-BuildRequires:  %{python_module mock}
-BuildRequires:  %{python_module nose}
-BuildRequires:  %{python_module pytest}
+# PATCH-FIX-UPSTREAM webassets-py39-threading.patch -- 
gh#miracle2k/webassets#529
+Patch0:         
https://github.com/miracle2k/webassets/pull/529.patch#/webassets-py39-threading.patch
+# PATCH-FIX-UPSTREAM remove-nose -- gh#miracle2k/webassets#539
+Patch1:         remove-nose.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+# SECTION test requirements
+# jsmin and rjsmin fail if imported: different utf8 filters
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module Jinja2}
+BuildRequires:  %{python_module PyYAML}
+BuildRequires:  %{python_module cssutils}
+BuildRequires:  %{python_module glob2}
+BuildRequires:  %{python_module lesscpy}
+BuildRequires:  %{python_module rcssmin}
+BuildRequires:  %{python_module slimit}
+BuildRequires:  sassc
+%if %{with python2}
+BuildRequires:  python2-mock
+%endif
+# /SECTION
 Requires:       python-setuptools
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -47,7 +64,7 @@
 URL rewriting in CSS files.
 
 %prep
-%setup -q -n webassets-%{version}
+%autosetup -p1 -n webassets-%{version}
 sed -i 's/#!.*//' src/webassets/filter/rjsmin/rjsmin.py
 # fix py2 only syntax
 sed -i -e 's:e.message:e.args[0]:g' tests/test_filters.py
@@ -62,7 +79,7 @@
 
 %check
 export LANG="en_US.UTF8"
-%pytest
+%pytest -ra
 
 %post
 %python_install_alternative webassets

++++++ remove-nose.patch ++++++
++++ 1312 lines (skipped)

++++++ webassets-py39-threading.patch ++++++
>From a563935df6702ff5e38e5b84a262c295e4cdf455 Mon Sep 17 00:00:00 2001
From: Karthikeyan Singaravelan <[email protected]>
Date: Wed, 22 Jan 2020 00:49:31 +0530
Subject: [PATCH] Use is_alive instead of isAlive for Python 3.9 compatibility.

---
 tests/test_script.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_script.py b/tests/test_script.py
index a83bc07f..d17a83bb 100644
--- a/tests/test_script.py
+++ b/tests/test_script.py
@@ -192,7 +192,7 @@ def start_watching(self):
 
     def stop_watching(self):
         """Stop the watch command thread."""
-        assert self.t.isAlive() # If it has already ended, something is wrong
+        assert self.t.is_alive() # If it has already ended, something is wrong
         self.stopped = True
         self.t.join(1)
 

Reply via email to