Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-rcssmin for openSUSE:Factory checked in at 2023-12-09 22:53:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rcssmin (Old) and /work/SRC/openSUSE:Factory/.python-rcssmin.new.25432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rcssmin" Sat Dec 9 22:53:34 2023 rev:6 rq:1132142 version:1.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-rcssmin/python-rcssmin.changes 2023-06-21 22:41:03.882806485 +0200 +++ /work/SRC/openSUSE:Factory/.python-rcssmin.new.25432/python-rcssmin.changes 2023-12-09 22:57:19.636587032 +0100 @@ -1,0 +2,7 @@ +Fri Dec 8 16:25:02 UTC 2023 - Dirk Müller <[email protected]> + +- update to 1.1.2: + * Add support for Python 3.12 + * Update project boilerplate + +------------------------------------------------------------------- Old: ---- rcssmin-1.1.1.tar.gz New: ---- rcssmin-1.1.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rcssmin.spec ++++++ --- /var/tmp/diff_new_pack.9WbxD8/_old 2023-12-09 22:57:20.616622997 +0100 +++ /var/tmp/diff_new_pack.9WbxD8/_new 2023-12-09 22:57:20.620623143 +0100 @@ -21,7 +21,7 @@ %define mod_name rcssmin Name: python-%{mod_name} -Version: 1.1.1 +Version: 1.1.2 Release: 0 Summary: RCSSmin is a CSS Minifier Written in Python License: Apache-2.0 ++++++ rcssmin-1.1.1.tar.gz -> rcssmin-1.1.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/PKG-INFO new/rcssmin-1.1.2/PKG-INFO --- old/rcssmin-1.1.1/PKG-INFO 2022-07-31 22:59:10.391669000 +0200 +++ new/rcssmin-1.1.2/PKG-INFO 2023-10-03 21:22:25.294566000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: rcssmin -Version: 1.1.1 +Version: 1.1.2 Summary: CSS Minifier Home-page: http://opensource.perlig.de/rcssmin/ Author: André Malo @@ -22,6 +22,7 @@ Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: Jython Classifier: Programming Language :: Python :: Implementation :: PyPy @@ -90,7 +91,7 @@ Copyright and License ~~~~~~~~~~~~~~~~~~~~~ -Copyright 2011 - 2022 +Copyright 2011 - 2023 André Malo or his licensors, as applicable. The whole package (except for the files in the bench/ directory) is diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/README.md new/rcssmin-1.1.2/README.md --- old/rcssmin-1.1.1/README.md 2022-07-31 17:04:30.000000000 +0200 +++ new/rcssmin-1.1.2/README.md 2023-10-03 21:06:09.000000000 +0200 @@ -67,7 +67,7 @@ ## COPYRIGHT AND LICENSE -Copyright 2011 - 2022 +Copyright 2011 - 2023 André Malo or his licensors, as applicable. The whole package (except for the files in the bench/ directory) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/bench/__init__.py new/rcssmin-1.1.2/bench/__init__.py --- old/rcssmin-1.1.1/bench/__init__.py 2022-07-31 17:04:22.000000000 +0200 +++ new/rcssmin-1.1.2/bench/__init__.py 2023-10-03 21:06:09.000000000 +0200 @@ -8,7 +8,7 @@ :Copyright: - Copyright 2011 - 2022 + Copyright 2011 - 2023 Andr\xe9 Malo or his licensors, as applicable :License: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/bench/main.py new/rcssmin-1.1.2/bench/main.py --- old/rcssmin-1.1.1/bench/main.py 2022-07-31 16:54:39.000000000 +0200 +++ new/rcssmin-1.1.2/bench/main.py 2023-10-03 21:06:09.000000000 +0200 @@ -9,7 +9,7 @@ :Copyright: - Copyright 2011 - 2022 + Copyright 2011 - 2023 Andr\xe9 Malo or his licensors, as applicable :License: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/bench/write.py new/rcssmin-1.1.2/bench/write.py --- old/rcssmin-1.1.1/bench/write.py 2022-07-31 16:56:13.000000000 +0200 +++ new/rcssmin-1.1.2/bench/write.py 2023-10-03 21:06:09.000000000 +0200 @@ -9,7 +9,7 @@ :Copyright: - Copyright 2014 - 2022 + Copyright 2014 - 2023 Andr\xe9 Malo or his licensors, as applicable :License: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/cext.h new/rcssmin-1.1.2/cext.h --- old/rcssmin-1.1.1/cext.h 2022-07-31 16:51:23.000000000 +0200 +++ new/rcssmin-1.1.2/cext.h 2023-10-03 21:06:09.000000000 +0200 @@ -1,5 +1,5 @@ /* - * Copyright 2006 - 2022 + * Copyright 2006 - 2023 * Andr\xe9 Malo or his licensors, as applicable * * Licensed under the Apache License, Version 2.0 (the "License"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/docs/CHANGES new/rcssmin-1.1.2/docs/CHANGES --- old/rcssmin-1.1.1/docs/CHANGES 2022-07-31 22:59:09.000000000 +0200 +++ new/rcssmin-1.1.2/docs/CHANGES 2023-10-03 21:22:24.000000000 +0200 @@ -1,3 +1,12 @@ +Changes with version 1.1.2 + + *) Add support for Python 3.12 + + *) Add musllinux wheels + + *) Update project boilerplate + + Changes with version 1.1.1 *) Add support for Python 3.11 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/docs/CLASSIFIERS new/rcssmin-1.1.2/docs/CLASSIFIERS --- old/rcssmin-1.1.1/docs/CLASSIFIERS 2022-07-31 16:51:23.000000000 +0200 +++ new/rcssmin-1.1.2/docs/CLASSIFIERS 2023-10-03 21:06:09.000000000 +0200 @@ -14,6 +14,7 @@ Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 +Programming Language :: Python :: 3.12 Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: Jython Programming Language :: Python :: Implementation :: PyPy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/docs/DESCRIPTION new/rcssmin-1.1.2/docs/DESCRIPTION --- old/rcssmin-1.1.1/docs/DESCRIPTION 2022-07-31 17:04:20.000000000 +0200 +++ new/rcssmin-1.1.2/docs/DESCRIPTION 2023-10-03 21:06:09.000000000 +0200 @@ -55,7 +55,7 @@ Copyright and License ~~~~~~~~~~~~~~~~~~~~~ -Copyright 2011 - 2022 +Copyright 2011 - 2023 André Malo or his licensors, as applicable. The whole package (except for the files in the bench/ directory) is diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/docs/_userdoc/benchmark.txt new/rcssmin-1.1.2/docs/_userdoc/benchmark.txt --- old/rcssmin-1.1.1/docs/_userdoc/benchmark.txt 2022-07-31 22:52:29.000000000 +0200 +++ new/rcssmin-1.1.2/docs/_userdoc/benchmark.txt 2023-10-03 21:06:09.000000000 +0200 @@ -1,5 +1,5 @@ .. copyright: - Copyright 2011 - 2022 + Copyright 2011 - 2023 André Malo or his licensors, as applicable .. license: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/docs/_userdoc/conf.py new/rcssmin-1.1.2/docs/_userdoc/conf.py --- old/rcssmin-1.1.1/docs/_userdoc/conf.py 2022-07-31 22:59:09.000000000 +0200 +++ new/rcssmin-1.1.2/docs/_userdoc/conf.py 2023-10-03 21:22:24.000000000 +0200 @@ -46,7 +46,7 @@ # General information about the project. project = u'rCSSmin' -copyright = u'2011 - 2022 Andr\xe9 Malo' +copyright = u'2011 - 2023 Andr\xe9 Malo' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -55,7 +55,7 @@ # The short X.Y version. version = '1.1' # The full version, including alpha/beta/rc tags. -release = '1.1.1' +release = '1.1.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -111,11 +111,11 @@ # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. -html_theme = "sphinx_rtd_theme" -html_theme_options = dict( - collapse_navigation=False, - includehidden=True, -) +html_theme = "cloud" +# html_theme_options = dict( +# collapse_navigation=False, +# includehidden=True, +# ) # # Theme options are theme-specific and customize the look and feel of a theme # # further. For a list of options available for each theme, see the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/docs/_userdoc/index.txt new/rcssmin-1.1.2/docs/_userdoc/index.txt --- old/rcssmin-1.1.1/docs/_userdoc/index.txt 2022-07-31 17:04:10.000000000 +0200 +++ new/rcssmin-1.1.2/docs/_userdoc/index.txt 2023-10-03 21:06:09.000000000 +0200 @@ -1,5 +1,5 @@ .. copyright: - Copyright 2011 - 2022 + Copyright 2011 - 2023 André Malo or his licensors, as applicable .. license: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/rcssmin.c new/rcssmin-1.1.2/rcssmin.c --- old/rcssmin-1.1.1/rcssmin.c 2022-07-31 17:03:58.000000000 +0200 +++ new/rcssmin-1.1.2/rcssmin.c 2023-10-03 21:06:09.000000000 +0200 @@ -1,5 +1,5 @@ /* - * Copyright 2011 - 2022 + * Copyright 2011 - 2023 * Andr\xe9 Malo or his licensors, as applicable * * Licensed under the Apache License, Version 2.0 (the "License"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/rcssmin.egg-info/PKG-INFO new/rcssmin-1.1.2/rcssmin.egg-info/PKG-INFO --- old/rcssmin-1.1.1/rcssmin.egg-info/PKG-INFO 2022-07-31 22:59:10.000000000 +0200 +++ new/rcssmin-1.1.2/rcssmin.egg-info/PKG-INFO 2023-10-03 21:22:25.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: rcssmin -Version: 1.1.1 +Version: 1.1.2 Summary: CSS Minifier Home-page: http://opensource.perlig.de/rcssmin/ Author: André Malo @@ -22,6 +22,7 @@ Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Programming Language :: Python :: Implementation :: Jython Classifier: Programming Language :: Python :: Implementation :: PyPy @@ -90,7 +91,7 @@ Copyright and License ~~~~~~~~~~~~~~~~~~~~~ -Copyright 2011 - 2022 +Copyright 2011 - 2023 André Malo or his licensors, as applicable. The whole package (except for the files in the bench/ directory) is diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/rcssmin.py new/rcssmin-1.1.2/rcssmin.py --- old/rcssmin-1.1.1/rcssmin.py 2022-07-31 22:56:13.000000000 +0200 +++ new/rcssmin-1.1.2/rcssmin.py 2023-10-03 21:18:20.000000000 +0200 @@ -12,7 +12,7 @@ :Copyright: - Copyright 2011 - 2022 + Copyright 2011 - 2023 Andr\xe9 Malo or his licensors, as applicable :License: @@ -75,7 +75,7 @@ """ __author__ = u"Andr\xe9 Malo" __license__ = "Apache License, Version 2.0" -__version__ = '1.1.1' +__version__ = '1.1.2' __all__ = ['cssmin'] import re as _re diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/setup.py new/rcssmin-1.1.2/setup.py --- old/rcssmin-1.1.1/setup.py 2022-07-31 17:03:37.000000000 +0200 +++ new/rcssmin-1.1.2/setup.py 2023-10-03 21:06:09.000000000 +0200 @@ -3,7 +3,7 @@ u""" :Copyright: - Copyright 2011 - 2022 + Copyright 2011 - 2023 Andr\xe9 Malo or his licensors, as applicable :License: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/tests/__init__.py new/rcssmin-1.1.2/tests/__init__.py --- old/rcssmin-1.1.1/tests/__init__.py 2022-07-31 17:03:32.000000000 +0200 +++ new/rcssmin-1.1.2/tests/__init__.py 2023-10-03 21:06:09.000000000 +0200 @@ -2,7 +2,7 @@ u""" :Copyright: - Copyright 2018 - 2022 + Copyright 2018 - 2023 Andr\xe9 Malo or his licensors, as applicable :License: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/tests/_util.py new/rcssmin-1.1.2/tests/_util.py --- old/rcssmin-1.1.1/tests/_util.py 2022-07-31 16:51:23.000000000 +0200 +++ new/rcssmin-1.1.2/tests/_util.py 2023-10-03 21:06:09.000000000 +0200 @@ -2,7 +2,7 @@ u""" :Copyright: - Copyright 2014 - 2022 + Copyright 2014 - 2023 Andr\xe9 Malo or his licensors, as applicable :License: @@ -51,10 +51,10 @@ class Bunch(object): - """ Bunch object - represent all init kwargs as attributes """ + """Bunch object - represent all init kwargs as attributes""" def __init__(self, **kw): - """ Initialization """ + """Initialization""" self.__dict__.update(kw) @@ -82,7 +82,7 @@ ) class FinderLoader(object): - """ Finder / Loader for meta path """ + """Finder / Loader for meta path""" def __init__(self, fullname, module): self.module = module @@ -95,14 +95,14 @@ del _sys.modules[fullname] def find_module(self, fullname, path=None): - """ Find the module """ + """Find the module""" # pylint: disable = unused-argument if fullname == self.name: return self return None def load_module(self, fullname): - """ Load the module """ + """Load the module""" if _is_exc(self.module): raise self.module _sys.modules[fullname] = self.module @@ -149,32 +149,44 @@ class badstr(object): # pylint: disable = invalid-name - """ bad string """ + """bad string""" + def __str__(self): raise RuntimeError("yo") + + badstr = badstr() class badbytes(object): # pylint: disable = invalid-name - """ bad bytes """ + """bad bytes""" + def __bytes__(self): raise RuntimeError("yoyo") + if str is bytes: __str__ = __bytes__ + + badbytes = badbytes() class badbool(object): # pylint: disable = invalid-name - """ bad bool """ + """bad bool""" + def __bool__(self): raise RuntimeError("yoyo") + if str is bytes: __nonzero__ = __bool__ + + badbool = badbool() class baditer(object): # pylint: disable = invalid-name - """ bad iter """ + """bad iter""" + def __init__(self, *what): self._what = iter(what) @@ -186,4 +198,5 @@ if isinstance(item, Exception): raise item return item + next = __next__ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/tests/coverage.txt new/rcssmin-1.1.2/tests/coverage.txt --- old/rcssmin-1.1.1/tests/coverage.txt 2022-07-31 16:51:23.000000000 +0200 +++ new/rcssmin-1.1.2/tests/coverage.txt 2023-10-03 20:43:54.000000000 +0200 @@ -1,9 +1,10 @@ # Requirements file for coverage report -coverage == 6.4.2; python_version >= '3.7' +coverage == 7.3.1; python_version >= '3.8' +coverage == 7.2.7; python_version == '3.7' coverage == 6.2.0; python_version == '3.6' coverage == 5.5; python_version < '3.6' -gcovr ~= 5.1.0; python_version >= '3.7' +gcovr ~= 6.0.0; python_version >= '3.7' gcovr ~= 5.0.0; python_version == '3.6' gcovr ~= 4.2.0; python_version < '3.6' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/tests/requirements.txt new/rcssmin-1.1.2/tests/requirements.txt --- old/rcssmin-1.1.1/tests/requirements.txt 2022-07-31 16:51:23.000000000 +0200 +++ new/rcssmin-1.1.2/tests/requirements.txt 2023-10-03 20:43:54.000000000 +0200 @@ -1,17 +1,18 @@ # Requirements file for tests -pytest == 7.1.2; python_version >= '3.7' +pytest == 7.4.2; python_version >= '3.7' pytest == 7.0.1; python_version == '3.6' -pytest < 6.2.0; python_version == '3.5' -pytest < 5.0.0; python_version < '3.5' +pytest < 5.0.0; python_version < '3.6' -pytest-cov == 3.0.0; python_version >= '3.6' +pytest-cov == 4.1.0; python_version >= '3.7' +pytest-cov == 4.0.0; python_version == '3.6' pytest-cov == 2.12.1; python_version < '3.6' -coverage == 6.4.2; python_version >= '3.7' +coverage == 7.3.1; python_version >= '3.8' +coverage == 7.2.7; python_version == '3.7' coverage == 6.2.0; python_version == '3.6' coverage == 5.5; python_version < '3.6' -pytest-mock == 3.8.1; python_version >= '3.7' +pytest-mock == 3.11.1; python_version >= '3.7' pytest-mock == 3.6.1; python_version == '3.6' -pytest-mock == 1.12.1; python_version < '3.5' +pytest-mock == 1.12.1; python_version < '3.6' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/tests/test_ctype.py new/rcssmin-1.1.2/tests/test_ctype.py --- old/rcssmin-1.1.1/tests/test_ctype.py 2022-07-31 17:03:17.000000000 +0200 +++ new/rcssmin-1.1.2/tests/test_ctype.py 2023-10-03 21:06:09.000000000 +0200 @@ -2,7 +2,7 @@ u""" :Copyright: - Copyright 2019 - 2022 + Copyright 2019 - 2023 Andr\xe9 Malo or his licensors, as applicable :License: @@ -30,24 +30,26 @@ from pytest import raises import rcssmin as _rcssmin + # pylint: disable = protected-access py_cssmin = _rcssmin._make_cssmin(python_only=True) import _rcssmin + c_cssmin = _rcssmin.cssmin from . import _util as _test def test_keep_bang_comments(): - """ keep_bang_comments argument error """ + """keep_bang_comments argument error""" with raises(RuntimeError) as e: c_cssmin('', keep_bang_comments=_test.badbool) assert e.value.args == ('yoyo',) def test_input_type(): - """ input type must be a string or bytes """ + """input type must be a string or bytes""" with raises(TypeError): c_cssmin(None) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/tests/test_main.py new/rcssmin-1.1.2/tests/test_main.py --- old/rcssmin-1.1.1/tests/test_main.py 2022-07-31 17:03:24.000000000 +0200 +++ new/rcssmin-1.1.2/tests/test_main.py 2023-10-03 21:06:09.000000000 +0200 @@ -2,7 +2,7 @@ u""" :Copyright: - Copyright 2019 - 2022 + Copyright 2019 - 2023 Andr\xe9 Malo or his licensors, as applicable :License: @@ -31,39 +31,42 @@ import re as _re import rcssmin as _rcssmin + # pylint: disable = protected-access py_cssmin = _rcssmin._make_cssmin(python_only=True) import _rcssmin + c_cssmin = _rcssmin.cssmin _TESTS = _os.path.dirname(__file__) def find(base, ext, out): - """ Find test files """ + """Find test files""" for name in _os.listdir(_os.path.join(_TESTS, base)): item = "%s/%s" % (base, name) - if _os.path.isfile(_os.path.join(_TESTS, item)) \ - and item.endswith('.' + ext): - outitem = "%s/out/%s.%s" % (base, name[:-len(ext) - 1], out) + if _os.path.isfile(_os.path.join(_TESTS, item)) and item.endswith( + '.' + ext + ): + outitem = "%s/out/%s.%s" % (base, name[: -len(ext) - 1], out) yield item, outitem def load(name): - """ Load a file """ + """Load a file""" with open(_os.path.join(_TESTS, name), 'rb') as fp: return fp.read() def save(name, value): - """ Load a file """ + """Load a file""" with open(_os.path.join(_TESTS, name), 'wb') as fp: fp.write(value) def test_regular(): - """ Test main/*.css """ + """Test main/*.css""" bscheck = _re.compile( r'(?<!\\)(?:\\\\)*\\[0-9a-zA-Z]{1,6}$'.encode('ascii') ).search @@ -85,7 +88,7 @@ def test_banged(): - """ Test main/*.css """ + """Test main/*.css""" bscheck = _re.compile( r'(?<!\\)(?:\\\\)*\\[0-9a-zA-Z]{1,6}$'.encode('ascii') ).search diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rcssmin-1.1.1/tests/test_yui.py new/rcssmin-1.1.2/tests/test_yui.py --- old/rcssmin-1.1.1/tests/test_yui.py 2022-07-31 17:03:10.000000000 +0200 +++ new/rcssmin-1.1.2/tests/test_yui.py 2023-10-03 21:06:09.000000000 +0200 @@ -2,7 +2,7 @@ u""" :Copyright: - Copyright 2019 - 2022 + Copyright 2019 - 2023 Andr\xe9 Malo or his licensors, as applicable :License: @@ -31,39 +31,42 @@ import re as _re import rcssmin as _rcssmin + # pylint: disable = protected-access py_cssmin = _rcssmin._make_cssmin(python_only=True) import _rcssmin + c_cssmin = _rcssmin.cssmin _TESTS = _os.path.dirname(__file__) def find(base, ext, out): - """ Find test files """ + """Find test files""" for name in _os.listdir(_os.path.join(_TESTS, base)): item = "%s/%s" % (base, name) - if _os.path.isfile(_os.path.join(_TESTS, item)) \ - and item.endswith('.' + ext): - outitem = "%s/out/%s.%s" % (base, name[:-len(ext) - 1], out) + if _os.path.isfile(_os.path.join(_TESTS, item)) and item.endswith( + '.' + ext + ): + outitem = "%s/out/%s.%s" % (base, name[: -len(ext) - 1], out) yield item, outitem def load(name): - """ Load a file """ + """Load a file""" with open(_os.path.join(_TESTS, name), 'rb') as fp: return fp.read() def save(name, value): - """ Load a file """ + """Load a file""" with open(_os.path.join(_TESTS, name), 'wb') as fp: fp.write(value) def test_regular(): - """ Test yui/*.css """ + """Test yui/*.css""" bscheck = _re.compile( r'(?<!\\)(?:\\\\)*\\[0-9a-zA-Z]{1,6}$'.encode('ascii') ).search @@ -85,7 +88,7 @@ def test_banged(): - """ Test yui/*.css """ + """Test yui/*.css""" bscheck = _re.compile( r'(?<!\\)(?:\\\\)*\\[0-9a-zA-Z]{1,6}$'.encode('ascii') ).search
