Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-tinycss2 for openSUSE:Factory 
checked in at 2022-11-01 13:40:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tinycss2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-tinycss2.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tinycss2"

Tue Nov  1 13:40:56 2022 rev:10 rq:1032436 version:1.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tinycss2/python-tinycss2.changes  
2022-08-20 20:27:37.765180651 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-tinycss2.new.2275/python-tinycss2.changes    
    2022-11-01 13:41:05.139422862 +0100
@@ -1,0 +2,9 @@
+Sat Oct 29 16:06:46 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com>
+
+- Update to 1.2.1 
+  * Fix tests included in the source tarball
+  * Drop support of Python 3.6
+  * Fix serialization of nested functions with no parameters
+  * Don???t use pytest plugins by default
+
+-------------------------------------------------------------------

Old:
----
  tinycss2-1.1.1.tar.gz

New:
----
  tinycss2-1.2.1.tar.gz

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

Other differences:
------------------
++++++ python-tinycss2.spec ++++++
--- /var/tmp/diff_new_pack.ne6v0L/_old  2022-11-01 13:41:05.831426543 +0100
+++ /var/tmp/diff_new_pack.ne6v0L/_new  2022-11-01 13:41:05.839426586 +0100
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-tinycss2
-Version:        1.1.1
+Version:        1.2.1
 Release:        0
 Summary:        Low-level CSS parser for Python
 License:        BSD-3-Clause

++++++ tinycss2-1.1.1.tar.gz -> tinycss2-1.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinycss2-1.1.1/PKG-INFO new/tinycss2-1.2.1/PKG-INFO
--- old/tinycss2-1.1.1/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/tinycss2-1.2.1/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
@@ -1,11 +1,11 @@
 Metadata-Version: 2.1
 Name: tinycss2
-Version: 1.1.1
+Version: 1.2.1
 Summary: A tiny CSS parser
 Keywords: css,parser
 Author-email: Simon Sapin <simon.sa...@exyr.org>
 Maintainer-email: CourtBouillon <cont...@courtbouillon.org>
-Requires-Python: >=3.6
+Requires-Python: >=3.7
 Description-Content-Type: text/x-rst
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Intended Audience :: Developers
@@ -14,7 +14,6 @@
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3 :: Only
-Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
@@ -26,10 +25,8 @@
 Requires-Dist: sphinx ; extra == "doc"
 Requires-Dist: sphinx_rtd_theme ; extra == "doc"
 Requires-Dist: pytest ; extra == "test"
-Requires-Dist: pytest-cov ; extra == "test"
-Requires-Dist: pytest-flake8 ; extra == "test"
-Requires-Dist: pytest-isort ; extra == "test"
-Requires-Dist: coverage[toml] ; extra == "test"
+Requires-Dist: isort ; extra == "test"
+Requires-Dist: flake8 ; extra == "test"
 Project-URL: Changelog, https://github.com/Kozea/tinycss2/releases
 Project-URL: Code, https://github.com/Kozea/tinycss2/
 Project-URL: Documentation, https://doc.courtbouillon.org/tinycss2/
@@ -48,7 +45,7 @@
 CSS modules.
 
 * Free software: BSD license
-* For Python 3.6+, tested on CPython and PyPy
+* For Python 3.7+, tested on CPython and PyPy
 * Documentation: https://doc.courtbouillon.org/tinycss2
 * Changelog: https://github.com/Kozea/tinycss2/releases
 * Code, issues, tests: https://github.com/Kozea/tinycss2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinycss2-1.1.1/README.rst 
new/tinycss2-1.2.1/README.rst
--- old/tinycss2-1.1.1/README.rst       2020-10-30 21:31:41.489813800 +0100
+++ new/tinycss2-1.2.1/README.rst       2022-05-27 18:25:35.352110900 +0200
@@ -7,7 +7,7 @@
 CSS modules.
 
 * Free software: BSD license
-* For Python 3.6+, tested on CPython and PyPy
+* For Python 3.7+, tested on CPython and PyPy
 * Documentation: https://doc.courtbouillon.org/tinycss2
 * Changelog: https://github.com/Kozea/tinycss2/releases
 * Code, issues, tests: https://github.com/Kozea/tinycss2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinycss2-1.1.1/docs/changelog.rst 
new/tinycss2-1.2.1/docs/changelog.rst
--- old/tinycss2-1.1.1/docs/changelog.rst       2021-11-22 18:52:48.539322000 
+0100
+++ new/tinycss2-1.2.1/docs/changelog.rst       2022-10-18 09:02:14.044229300 
+0200
@@ -2,6 +2,24 @@
 =========
 
 
+Version 1.2.1
+-------------
+
+Released on 2022-10-18.
+
+* Fix tests included in the source tarball
+
+
+Version 1.2.0
+-------------
+
+Released on 2022-10-17.
+
+* Drop support of Python 3.6
+* Fix serialization of nested functions with no parameters
+* Don???t use pytest plugins by default
+
+
 Version 1.1.1
 -------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinycss2-1.1.1/docs/contribute.rst 
new/tinycss2-1.2.1/docs/contribute.rst
--- old/tinycss2-1.1.1/docs/contribute.rst      2021-09-05 11:30:27.902646000 
+0200
+++ new/tinycss2-1.2.1/docs/contribute.rst      2022-09-06 22:33:48.286416300 
+0200
@@ -13,11 +13,9 @@
    git clone https://github.com/Kozea/tinycss2.git
    cd tinycss2
    python -m venv venv
-   venv/bin/pip install .[doc,test]
+   venv/bin/pip install -e .[doc,test]
 
-You can then let your terminal in the current directory and launch Python to
-test your changes. ``import tinycss2`` will then import the working directory
-code, so that you can modify it and test your changes.
+You can then launch Python to test your changes.
 
 .. code-block:: shell
 
@@ -27,8 +25,8 @@
 Code & Issues
 -------------
 
-If you???ve found a bug in tinycss2, it???s time to report it, and to fix it 
if you
-can!
+If you???ve found a bug in tinycss2, it???s time to report it, and to fix it if
+you can!
 
 You can report bugs and feature requests on GitHub_. If you want to add or
 fix some code, please fork the repository and create a pull request, we???ll be
@@ -43,11 +41,19 @@
 Tests are stored in the ``tests`` folder at the top of the repository. They use
 the pytest_ library.
 
-You can launch tests (with code coverage and lint) using the following 
command::
+You can launch tests using the following command::
 
   venv/bin/python -m pytest
 
+tinycss2 also uses isort_ to check imports and flake8_ to check the coding
+style::
+
+  venv/bin/python -m isort . --check --diff
+  venv/bin/python -m flake8 --exclude tests/css-parsing-tests
+
 .. _pytest: https://docs.pytest.org/
+.. _isort: https://pycqa.github.io/isort/
+.. _flake8: https://flake8.pycqa.org/
 
 
 Documentation
@@ -60,8 +66,7 @@
 
   venv/bin/sphinx-build docs docs/_build
 
-The documentation home page can now be found in the
-``/path/to/tinycss2/docs/_build/index.html`` file. You can open this file in a
-browser to see the final rendering.
+The documentation home page can now be found in the ``docs/_build/index.html``
+file. You can open this file in a browser to see the final rendering.
 
 .. _Sphinx: https://www.sphinx-doc.org/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinycss2-1.1.1/pyproject.toml 
new/tinycss2-1.2.1/pyproject.toml
--- old/tinycss2-1.1.1/pyproject.toml   2021-11-22 18:52:48.539322000 +0100
+++ new/tinycss2-1.2.1/pyproject.toml   2022-09-06 22:33:48.286416300 +0200
@@ -8,7 +8,7 @@
 keywords = ['css', 'parser']
 authors = [{name = 'Simon Sapin', email = 'simon.sa...@exyr.org'}]
 maintainers = [{name = 'CourtBouillon', email = 'cont...@courtbouillon.org'}]
-requires-python = '>=3.6'
+requires-python = '>=3.7'
 readme = {file = 'README.rst', content-type = 'text/x-rst'}
 license = {file = 'LICENSE'}
 dependencies = ['webencodings >=0.4']
@@ -20,7 +20,6 @@
   'Programming Language :: Python',
   'Programming Language :: Python :: 3',
   'Programming Language :: Python :: 3 :: Only',
-  'Programming Language :: Python :: 3.6',
   'Programming Language :: Python :: 3.7',
   'Programming Language :: Python :: 3.8',
   'Programming Language :: Python :: 3.9',
@@ -41,13 +40,12 @@
 
 [project.optional-dependencies]
 doc = ['sphinx', 'sphinx_rtd_theme']
-test = ['pytest', 'pytest-cov', 'pytest-flake8', 'pytest-isort', 
'coverage[toml]']
+test = ['pytest', 'isort', 'flake8']
 
 [tool.flit.sdist]
 exclude = ['.*']
 
 [tool.pytest.ini_options]
-addopts = '--isort --flake8 --cov --no-cov-on-fail'
 norecursedirs = ['tests/css-parsing-tests']
 
 [tool.coverage.run]
@@ -61,3 +59,4 @@
 [tool.isort]
 default_section = 'FIRSTPARTY'
 multi_line_output = 4
+extend_skip = ['tests/css-parsing-tests']
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinycss2-1.1.1/tests/test_tinycss2.py 
new/tinycss2-1.2.1/tests/test_tinycss2.py
--- old/tinycss2-1.1.1/tests/test_tinycss2.py   2020-10-30 00:59:26.619073600 
+0100
+++ new/tinycss2-1.2.1/tests/test_tinycss2.py   2022-10-17 21:08:32.237164700 
+0200
@@ -217,6 +217,19 @@
     assert serialize(rules) == source
 
 
+def test_serialize_rules_with_functions():
+    source = '''
+        foo#bar.baz {
+            background: url();
+            color: rgb(0, 0, 0);
+            width: calc(calc());
+            height: calc(calc(calc()));
+        }
+    '''
+    rules = parse_rule_list(source)
+    assert serialize(rules) == source
+
+
 def test_backslash_delim():
     source = '\\\nfoo'
     tokens = parse_component_value_list(source)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinycss2-1.1.1/tinycss2/__init__.py 
new/tinycss2-1.2.1/tinycss2/__init__.py
--- old/tinycss2-1.1.1/tinycss2/__init__.py     2021-11-22 18:52:48.539322000 
+0100
+++ new/tinycss2-1.2.1/tinycss2/__init__.py     2022-10-18 09:01:42.481755000 
+0200
@@ -15,4 +15,4 @@
 from .serializer import serialize, serialize_identifier  # noqa
 from .tokenizer import parse_component_value_list  # noqa
 
-VERSION = __version__ = '1.1.1'
+VERSION = __version__ = '1.2.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tinycss2-1.1.1/tinycss2/ast.py 
new/tinycss2-1.2.1/tinycss2/ast.py
--- old/tinycss2-1.1.1/tinycss2/ast.py  2020-10-30 21:38:51.976693900 +0100
+++ new/tinycss2-1.2.1/tinycss2/ast.py  2022-10-17 21:08:32.237164700 +0200
@@ -54,12 +54,8 @@
         self.source_line = source_line
         self.source_column = source_column
 
-    if str is bytes:  # pragma: no cover
-        def __repr__(self):
-            return self.repr_format.format(self=self).encode('utf8')
-    else:  # pragma: no cover
-        def __repr__(self):
-            return self.repr_format.format(self=self)
+    def __repr__(self):
+        return self.repr_format.format(self=self)
 
     def serialize(self):
         """Serialize this node to CSS syntax and return a Unicode string."""
@@ -698,15 +694,14 @@
         write(serialize_identifier(self.name))
         write('(')
         _serialize_to(self.arguments, write)
-        if self.arguments:
-            function = self
-            while isinstance(function, FunctionBlock):
-                eof_in_string = (
-                    isinstance(function.arguments[-1], ParseError) and
-                    function.arguments[-1].kind == 'eof-in-string')
-                if eof_in_string:
-                    return
-                function = function.arguments[-1]
+        function = self
+        while isinstance(function, FunctionBlock) and function.arguments:
+            eof_in_string = (
+                isinstance(function.arguments[-1], ParseError) and
+                function.arguments[-1].kind == 'eof-in-string')
+            if eof_in_string:
+                return
+            function = function.arguments[-1]
         write(')')
 
 

Reply via email to