Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-django-assets for 
openSUSE:Factory checked in at 2023-02-22 15:21:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-assets (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-assets.new.1706 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-assets"

Wed Feb 22 15:21:34 2023 rev:5 rq:1067079 version:2.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-assets/python-django-assets.changes    
    2022-09-18 17:32:24.505803445 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-assets.new.1706/python-django-assets.changes
      2023-02-22 15:21:40.253889988 +0100
@@ -1,0 +2,6 @@
+Wed Feb 22 03:10:45 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch support-python-311.patch:
+  * Support Python 3.11. 
+
+-------------------------------------------------------------------

New:
----
  support-python-311.patch

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

Other differences:
------------------
++++++ python-django-assets.spec ++++++
--- /var/tmp/diff_new_pack.vZSgKZ/_old  2023-02-22 15:21:40.749892801 +0100
+++ /var/tmp/diff_new_pack.vZSgKZ/_new  2023-02-22 15:21:40.753892823 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-assets
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,16 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
-%define skip_python36 1
 Name:           python-django-assets
 Version:        2.0
 Release:        0
 Summary:        Django asset management to compress and merge CSS and 
Javascript files
 License:        BSD-2-Clause
-Group:          Development/Languages/Python
 URL:            https://github.com/miracle2k/django-assets
 Source:         
https://files.pythonhosted.org/packages/source/d/django-assets/django-assets-%{version}.tar.gz
 Patch0:         remove-nose.patch
+# PATCH-FIX-UPSTREAM gh#miracle2k/django-assets#104
+Patch1:         support-python-311.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  dos2unix
 BuildRequires:  fdupes
@@ -46,9 +44,8 @@
 Asset management for Django, to compress and merge CSS and Javascript files.
 
 %prep
-%setup -q -n django-assets-%{version}
+%autosetup -p1 -n django-assets-%{version}
 dos2unix README.rst
-%autopatch -p1
 
 %build
 %python_build

++++++ support-python-311.patch ++++++
>From e57c5c3c02d84069600916fed74f165819393487 Mon Sep 17 00:00:00 2001
From: Jonatan Heyman <jona...@heyman.info>
Date: Thu, 10 Nov 2022 23:26:07 +0100
Subject: [PATCH] Global regex flags must be at the start of regex in Python
 3.11

---
 django_assets/glob.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django_assets/glob.py b/django_assets/glob.py
index 66a9531..73d961c 100644
--- a/django_assets/glob.py
+++ b/django_assets/glob.py
@@ -121,7 +121,7 @@ def translate(pat):
                 res = '%s([%s])' % (res, stuff)
         else:
             res = res + re.escape(c)
-    return res + '\Z(?ms)'
+    return '(?ms)' + res + '\Z'
 
 
 """Filename globbing utility."""

Reply via email to