Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pyupgrade for 
openSUSE:Factory checked in at 2022-05-30 12:43:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyupgrade (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyupgrade.new.2254 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyupgrade"

Mon May 30 12:43:36 2022 rev:24 rq:979648 version:2.32.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyupgrade/python-pyupgrade.changes        
2022-04-17 23:51:51.674473232 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyupgrade.new.2254/python-pyupgrade.changes  
    2022-05-30 12:44:15.548415185 +0200
@@ -1,0 +2,9 @@
+Sun May 22 10:39:56 UTC 2022 - Sebastian Wagner <[email protected]>
+
+- update to version 2.32.1:
+ - Do not remove quoted annotations on 3.11
+   `from __future__ import annotations` will not be the default
+   behavior on 3.11.
+   Fixes #637.
+
+-------------------------------------------------------------------
@@ -4 +13 @@
-- - update to version 2.32.0:
+- update to version 2.32.0:
@@ -10 +18,0 @@
-   Committed via https://github.com/asottile/all-repos
@@ -12 +19,0 @@
-   Committed via https://github.com/asottile/all-repos
@@ -18,11 +24,0 @@
-   Committed via https://github.com/asottile/all-repos
-- update to version 2.31.1:
- - dont rewrite universal_newlines if text or **kwargs present
- - upgrade flake8-typing-imports
-   Committed via https://github.com/asottile/all-repos
- - drop python3.6 support
-   python 3.6 reached end of life on 2021-12-23
-   Committed via https://github.com/asottile/all-repos
- - remove --fail-under from tox (covdefaults handles this)
-   Committed via https://github.com/asottile/all-repos
- - Use diff syntax in more places in the docs
@@ -33 +29 @@
-- - update to version 2.31.1:
+- update to version 2.31.1:
@@ -36 +31,0 @@
-   Committed via https://github.com/asottile/all-repos
@@ -39 +33,0 @@
-   Committed via https://github.com/asottile/all-repos
@@ -41 +34,0 @@
-   Committed via https://github.com/asottile/all-repos

Old:
----
  python-pyupgrade-2.32.0.tar.gz

New:
----
  python-pyupgrade-2.32.1.tar.gz

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

Other differences:
------------------
++++++ python-pyupgrade.spec ++++++
--- /var/tmp/diff_new_pack.Tr8qFy/_old  2022-05-30 12:44:16.112415935 +0200
+++ /var/tmp/diff_new_pack.Tr8qFy/_new  2022-05-30 12:44:16.116415941 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-pyupgrade
-Version:        2.32.0
+Version:        2.32.1
 Release:        0
 Summary:        A tool to automatically upgrade syntax for newer versions
 License:        MIT

++++++ python-pyupgrade-2.32.0.tar.gz -> python-pyupgrade-2.32.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyupgrade-2.32.0/.pre-commit-config.yaml 
new/pyupgrade-2.32.1/.pre-commit-config.yaml
--- old/pyupgrade-2.32.0/.pre-commit-config.yaml        2022-04-08 
20:55:32.000000000 +0200
+++ new/pyupgrade-2.32.1/.pre-commit-config.yaml        2022-05-05 
03:00:25.000000000 +0200
@@ -1,6 +1,6 @@
 repos:
 -   repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.1.0
+    rev: v4.2.0
     hooks:
     -   id: trailing-whitespace
     -   id: end-of-file-fixer
@@ -14,17 +14,17 @@
     hooks:
     -   id: setup-cfg-fmt
 -   repo: https://github.com/asottile/reorder_python_imports
-    rev: v3.0.1
+    rev: v3.1.0
     hooks:
     -   id: reorder-python-imports
         args: [--py37-plus, --add-import, 'from __future__ import annotations']
 -   repo: https://github.com/asottile/add-trailing-comma
-    rev: v2.2.2
+    rev: v2.2.3
     hooks:
     -   id: add-trailing-comma
         args: [--py36-plus]
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v2.32.0
+    rev: v2.32.1
     hooks:
     -   id: pyupgrade
         args: [--py37-plus]
@@ -37,6 +37,6 @@
     hooks:
     -   id: flake8
 -   repo: https://github.com/pre-commit/mirrors-mypy
-    rev: v0.942
+    rev: v0.950
     hooks:
     -   id: mypy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyupgrade-2.32.0/README.md 
new/pyupgrade-2.32.1/README.md
--- old/pyupgrade-2.32.0/README.md      2022-04-08 20:55:32.000000000 +0200
+++ new/pyupgrade-2.32.1/README.md      2022-05-05 03:00:25.000000000 +0200
@@ -20,7 +20,7 @@
 
 ```yaml
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v2.32.0
+    rev: v2.32.1
     hooks:
     -   id: pyupgrade
 ```
@@ -780,7 +780,6 @@
 
 Availability:
 - File imports `from __future__ import annotations`
-- `--py311-plus` is passed on the commandline.
 
 ```diff
 -def f(x: 'queue.Queue[int]') -> C:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyupgrade-2.32.0/pyupgrade/_plugins/typing_pep563.py 
new/pyupgrade-2.32.1/pyupgrade/_plugins/typing_pep563.py
--- old/pyupgrade-2.32.0/pyupgrade/_plugins/typing_pep563.py    2022-04-08 
20:55:32.000000000 +0200
+++ new/pyupgrade-2.32.1/pyupgrade/_plugins/typing_pep563.py    2022-05-05 
03:00:25.000000000 +0200
@@ -16,10 +16,7 @@
 
 
 def _supported_version(state: State) -> bool:
-    return (
-        state.settings.min_version >= (3, 11) or
-        'annotations' in state.from_imports['__future__']
-    )
+    return 'annotations' in state.from_imports['__future__']
 
 
 def _dequote(i: int, tokens: list[Token], *, new: str) -> None:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyupgrade-2.32.0/setup.cfg 
new/pyupgrade-2.32.1/setup.cfg
--- old/pyupgrade-2.32.0/setup.cfg      2022-04-08 20:55:32.000000000 +0200
+++ new/pyupgrade-2.32.1/setup.cfg      2022-05-05 03:00:25.000000000 +0200
@@ -1,6 +1,6 @@
 [metadata]
 name = pyupgrade
-version = 2.32.0
+version = 2.32.1
 description = A tool to automatically upgrade syntax for newer versions.
 long_description = file: README.md
 long_description_content_type = text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pyupgrade-2.32.0/tests/features/typing_pep563_test.py 
new/pyupgrade-2.32.1/tests/features/typing_pep563_test.py
--- old/pyupgrade-2.32.0/tests/features/typing_pep563_test.py   2022-04-08 
20:55:32.000000000 +0200
+++ new/pyupgrade-2.32.1/tests/features/typing_pep563_test.py   2022-05-05 
03:00:25.000000000 +0200
@@ -15,7 +15,7 @@
             'from typing import Literal\n'
             'x: "str"\n',
             (2, 7),
-            id='not python 3.11+',
+            id='missing __future__ import',
         ),
         pytest.param(
             'from __future__ import annotations\n'
@@ -354,11 +354,6 @@
     assert ret == expected
 
 
-def test_replaced_for_minimum_version():
-    ret = _fix_plugins('x: "int"', settings=Settings(min_version=(3, 11)))
-    assert ret == 'x: int'
-
-
 @pytest.mark.xfail(
     sys.version_info < (3, 8),
     reason='posonly args not available in Python3.7',

Reply via email to