Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-css-parser for 
openSUSE:Factory checked in at 2023-05-08 17:24:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-css-parser (Old)
 and      /work/SRC/openSUSE:Factory/.python-css-parser.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-css-parser"

Mon May  8 17:24:05 2023 rev:6 rq:1085335 version:1.0.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-css-parser/python-css-parser.changes      
2022-10-03 20:08:21.445398065 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-css-parser.new.1533/python-css-parser.changes
    2023-05-08 17:24:06.912635372 +0200
@@ -1,0 +2,7 @@
+Sun May  7 18:46:29 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 1.0.9:
+  * replace deprecated use of cgi.parse_header 
+  * drop python 3.6 support
+
+-------------------------------------------------------------------

Old:
----
  python-css-parser-1.0.8.tar.gz

New:
----
  python-css-parser-1.0.9.tar.gz

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

Other differences:
------------------
++++++ python-css-parser.spec ++++++
--- /var/tmp/diff_new_pack.ZUf6ak/_old  2023-05-08 17:24:07.288637595 +0200
+++ /var/tmp/diff_new_pack.ZUf6ak/_new  2023-05-08 17:24:07.292637619 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-css-parser
 #
-# 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,15 +16,16 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?sle15_python_module_pythons}
 Name:           python-css-parser
-Version:        1.0.8
+Version:        1.0.9
 Release:        0
 Summary:        CSS related utilities (parsing, serialization, etc) for python
 License:        LGPL-3.0-or-later
 Group:          Development/Languages/Python
 URL:            https://github.com/ebook-utils/css-parser
 Source:         
https://github.com/ebook-utils/css-parser/archive/v%{version}/%{name}-%{version}.tar.gz
+BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module chardet}
 BuildRequires:  %{python_module setuptools}
 Requires:       python-chardet

++++++ python-css-parser-1.0.8.tar.gz -> python-css-parser-1.0.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/css-parser-1.0.8/.github/workflows/ci.yml 
new/css-parser-1.0.9/.github/workflows/ci.yml
--- old/css-parser-1.0.8/.github/workflows/ci.yml       2022-09-26 
11:15:02.000000000 +0200
+++ new/css-parser-1.0.9/.github/workflows/ci.yml       2023-05-04 
05:53:52.000000000 +0200
@@ -13,10 +13,10 @@
             matrix:
                 include:
                     - { pyver: 2.7, os: ubuntu-latest }
-                    - { pyver: 3.6, os: ubuntu-latest }
                     - { pyver: 3.8, os: ubuntu-latest }
                     - { pyver: 3.9, os: ubuntu-latest }
                     - { pyver: "3.10", os: ubuntu-latest }
+                    - { pyver: "3.11", os: ubuntu-latest }
 
                     - { pyver: 3.8, os: macos-latest }
                     - { pyver: 3.8, os: windows-latest }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/css-parser-1.0.8/css_parser_tests/test_util.py 
new/css-parser-1.0.9/css_parser_tests/test_util.py
--- old/css-parser-1.0.8/css_parser_tests/test_util.py  2022-09-26 
11:15:02.000000000 +0200
+++ new/css-parser-1.0.9/css_parser_tests/test_util.py  2023-05-04 
05:53:52.000000000 +0200
@@ -1,10 +1,10 @@
 # -*- coding: utf-8 -*-
 from __future__ import absolute_import, unicode_literals, with_statement
 
-import cgi
 import re
 import sys
 from contextlib import contextmanager
+from email.message import Message
 
 from css_parser.util import Base, LazyRegex, ListSeq, _defaultFetcher, _readUrl
 
@@ -305,9 +305,10 @@
             def __init__(self, url, contenttype, content, exception=None, 
args=None):
                 self.url = url
 
-                mt, params = cgi.parse_header(contenttype)
-                self.mimetype = mt
-                self.charset = params.get('charset', None)
+                m = Message()
+                m['content-type'] = contenttype
+                self.mimetype = m.get_params()[0][0]
+                self.charset = m.get_param('charset')
 
                 self.text = content
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/css-parser-1.0.8/src/css_parser/_fetchgae.py 
new/css-parser-1.0.9/src/css_parser/_fetchgae.py
--- old/css-parser-1.0.8/src/css_parser/_fetchgae.py    2022-09-26 
11:15:02.000000000 +0200
+++ new/css-parser-1.0.9/src/css_parser/_fetchgae.py    2023-05-04 
05:53:52.000000000 +0200
@@ -1,11 +1,11 @@
 from __future__ import unicode_literals, division, absolute_import, 
print_function
 from . import errorhandler
-import cgi
+from email.message import Message
 from google.appengine.api import urlfetch
+import sys
 """GAE specific URL reading functions"""
 
 
-import sys
 PY3 = sys.version_info[0] >= 3
 
 __all__ = ['_defaultFetcher']
@@ -60,8 +60,9 @@
             # find mimetype and encoding
             mimetype = 'application/octet-stream'
             try:
-                mimetype, params = cgi.parse_header(r.headers['content-type'])
-                encoding = params['charset']
+                m = Message()
+                m['content-type'] = r.headers['content-type']
+                encoding = m.get_param('charset')
             except KeyError:
                 encoding = None
             if mimetype != 'text/css':
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/css-parser-1.0.8/src/css_parser/encutils/__init__.py 
new/css-parser-1.0.9/src/css_parser/encutils/__init__.py
--- old/css-parser-1.0.8/src/css_parser/encutils/__init__.py    2022-09-26 
11:15:02.000000000 +0200
+++ new/css-parser-1.0.9/src/css_parser/encutils/__init__.py    2023-05-04 
05:53:52.000000000 +0200
@@ -77,9 +77,9 @@
 __version__ = '$Id$'
 
 import sys
-import cgi
 import re
 import types
+from email.message import Message
 
 PY2x = sys.version_info < (3, 0)
 
@@ -340,12 +340,17 @@
         pass
 
     if p.content_type:
-        media_type, params = cgi.parse_header(p.content_type)
-        encoding = params.get('charset')  # defaults to None
+        m = Message()
+        m['content-type'] = p.content_type
+        encoding = m.get_param('charset')  # defaults to None
         if encoding:
             encoding = encoding.lower()
         if log:
-            log.info('HTML META media_type: %s', media_type)
+            try:
+                media_type = m.get_params()[0][0]
+                log.info('HTML META media_type: %s', media_type)
+            except Exception:
+                pass
             log.info('HTML META encoding: %s', encoding)
     else:
         media_type = encoding = None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/css-parser-1.0.8/src/css_parser/version.py 
new/css-parser-1.0.9/src/css_parser/version.py
--- old/css-parser-1.0.8/src/css_parser/version.py      2022-09-26 
11:15:02.000000000 +0200
+++ new/css-parser-1.0.9/src/css_parser/version.py      2023-05-04 
05:53:52.000000000 +0200
@@ -2,7 +2,7 @@
 # vim:fileencoding=utf-8
 # License: LGPLv3 Copyright: 2018, Kovid Goyal <kovid at kovidgoyal.net>
 
-version = (1, 0, 8)
+version = (1, 0, 9)
 VERSION = '.'.join(map(str, version))
 
 __version__ = '%s $Id$' % VERSION

Reply via email to