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 2025-08-13 16:31:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyupgrade (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyupgrade.new.1085 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyupgrade"

Wed Aug 13 16:31:17 2025 rev:37 rq:1299213 version:3.20.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyupgrade/python-pyupgrade.changes        
2025-04-29 16:40:42.030996748 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyupgrade.new.1085/python-pyupgrade.changes  
    2025-08-13 16:33:49.012682367 +0200
@@ -1,0 +2,7 @@
+Wed Aug  6 09:28:55 UTC 2025 - John Paul Adrian Glaubitz 
<adrian.glaub...@suse.com>
+
+- Update to 3.20.0
+  * upgrade asottile/workflows
+  * pyupgrade fixes for python 3.14
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ python-pyupgrade.spec ++++++
--- /var/tmp/diff_new_pack.2oSGt2/_old  2025-08-13 16:33:49.988723289 +0200
+++ /var/tmp/diff_new_pack.2oSGt2/_new  2025-08-13 16:33:49.992723457 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-pyupgrade
-Version:        3.19.1
+Version:        3.20.0
 Release:        0
 Summary:        A tool to automatically upgrade syntax for newer versions
 License:        MIT

++++++ python-pyupgrade-3.19.1.tar.gz -> python-pyupgrade-3.20.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyupgrade-3.19.1/.github/workflows/main.yml 
new/pyupgrade-3.20.0/.github/workflows/main.yml
--- old/pyupgrade-3.19.1/.github/workflows/main.yml     2024-12-17 
02:50:11.000000000 +0100
+++ new/pyupgrade-3.20.0/.github/workflows/main.yml     2025-05-23 
20:55:31.000000000 +0200
@@ -8,12 +8,12 @@
 
 jobs:
   main-windows:
-    uses: asottile/workflows/.github/workflows/tox.yml@v1.8.0
+    uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1
     with:
       env: '["py39"]'
       os: windows-latest
   main-linux:
-    uses: asottile/workflows/.github/workflows/tox.yml@v1.8.0
+    uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1
     with:
       env: '["py39", "py310", "py311", "py312"]'
       os: ubuntu-latest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyupgrade-3.19.1/.pre-commit-config.yaml 
new/pyupgrade-3.20.0/.pre-commit-config.yaml
--- old/pyupgrade-3.19.1/.pre-commit-config.yaml        2024-12-17 
02:50:11.000000000 +0100
+++ new/pyupgrade-3.20.0/.pre-commit-config.yaml        2025-05-23 
20:55:31.000000000 +0200
@@ -10,7 +10,7 @@
     -   id: name-tests-test
     -   id: requirements-txt-fixer
 -   repo: https://github.com/asottile/setup-cfg-fmt
-    rev: v2.7.0
+    rev: v2.8.0
     hooks:
     -   id: setup-cfg-fmt
 -   repo: https://github.com/asottile/reorder-python-imports
@@ -23,19 +23,19 @@
     hooks:
     -   id: add-trailing-comma
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v3.19.1
+    rev: v3.20.0
     hooks:
     -   id: pyupgrade
         args: [--py39-plus]
 -   repo: https://github.com/hhatto/autopep8
-    rev: v2.3.1
+    rev: v2.3.2
     hooks:
     -   id: autopep8
 -   repo: https://github.com/PyCQA/flake8
-    rev: 7.1.1
+    rev: 7.2.0
     hooks:
     -   id: flake8
 -   repo: https://github.com/pre-commit/mirrors-mypy
-    rev: v1.13.0
+    rev: v1.15.0
     hooks:
     -   id: mypy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyupgrade-3.19.1/README.md 
new/pyupgrade-3.20.0/README.md
--- old/pyupgrade-3.19.1/README.md      2024-12-17 02:50:11.000000000 +0100
+++ new/pyupgrade-3.20.0/README.md      2025-05-23 20:55:31.000000000 +0200
@@ -21,7 +21,7 @@
 
 ```yaml
 -   repo: https://github.com/asottile/pyupgrade
-    rev: v3.19.1
+    rev: v3.20.0
     hooks:
     -   id: pyupgrade
 ```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyupgrade-3.19.1/pyupgrade/_main.py 
new/pyupgrade-3.20.0/pyupgrade/_main.py
--- old/pyupgrade-3.19.1/pyupgrade/_main.py     2024-12-17 02:50:11.000000000 
+0100
+++ new/pyupgrade-3.20.0/pyupgrade/_main.py     2025-05-23 20:55:31.000000000 
+0200
@@ -382,6 +382,10 @@
         '--py313-plus',
         action='store_const', dest='min_version', const=(3, 13),
     )
+    parser.add_argument(
+        '--py314-plus',
+        action='store_const', dest='min_version', const=(3, 14),
+    )
     args = parser.parse_args(argv)
 
     ret = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyupgrade-3.19.1/pyupgrade/_plugins/imports.py 
new/pyupgrade-3.20.0/pyupgrade/_plugins/imports.py
--- old/pyupgrade-3.19.1/pyupgrade/_plugins/imports.py  2024-12-17 
02:50:11.000000000 +0100
+++ new/pyupgrade-3.20.0/pyupgrade/_plugins/imports.py  2025-05-23 
20:55:31.000000000 +0200
@@ -21,7 +21,7 @@
 from pyupgrade._token_helpers import indented_amount
 
 # GENERATED VIA generate-imports
-# Using reorder-python-imports==3.14.0
+# Using reorder-python-imports==3.15.0
 REMOVALS = {
     (3,): {
         '__future__': {
@@ -38,6 +38,7 @@
         'six.moves': {'filter', 'input', 'map', 'range', 'zip'},
     },
     (3, 7): {'__future__': {'generator_stop'}},
+    (3, 14): {'__future__': {'annotations'}},
 }
 REMOVALS[(3,)]['six.moves.builtins'] = REMOVALS[(3,)]['builtins']
 REPLACE_EXACT = {
@@ -236,6 +237,7 @@
         ('typing_extensions', 'TypeVar'): 'typing',
         ('typing_extensions', 'TypeVarTuple'): 'typing',
         ('typing_extensions', 'TypedDict'): 'typing',
+        ('typing_extensions', 'deprecated'): 'warnings',
         ('typing_extensions', 'get_protocol_members'): 'typing',
         ('typing_extensions', 'is_protocol'): 'typing',
         ('typing_extensions', 'runtime_checkable'): 'typing',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyupgrade-3.19.1/pyupgrade/_plugins/typing_pep563.py 
new/pyupgrade-3.20.0/pyupgrade/_plugins/typing_pep563.py
--- old/pyupgrade-3.19.1/pyupgrade/_plugins/typing_pep563.py    2024-12-17 
02:50:11.000000000 +0100
+++ new/pyupgrade-3.20.0/pyupgrade/_plugins/typing_pep563.py    2025-05-23 
20:55:31.000000000 +0200
@@ -16,7 +16,10 @@
 
 
 def _supported_version(state: State) -> bool:
-    return 'annotations' in state.from_imports['__future__']
+    return (
+        state.settings.min_version >= (3, 14) or
+        '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-3.19.1/setup.cfg 
new/pyupgrade-3.20.0/setup.cfg
--- old/pyupgrade-3.19.1/setup.cfg      2024-12-17 02:50:11.000000000 +0100
+++ new/pyupgrade-3.20.0/setup.cfg      2025-05-23 20:55:31.000000000 +0200
@@ -1,6 +1,6 @@
 [metadata]
 name = pyupgrade
-version = 3.19.1
+version = 3.20.0
 description = A tool to automatically upgrade syntax for newer versions.
 long_description = file: README.md
 long_description_content_type = text/markdown
@@ -10,7 +10,6 @@
 license = MIT
 license_files = LICENSE
 classifiers =
-    License :: OSI Approved :: MIT License
     Programming Language :: Python :: 3
     Programming Language :: Python :: 3 :: Only
     Programming Language :: Python :: Implementation :: CPython
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pyupgrade-3.19.1/tests/features/typing_pep563_test.py 
new/pyupgrade-3.20.0/tests/features/typing_pep563_test.py
--- old/pyupgrade-3.19.1/tests/features/typing_pep563_test.py   2024-12-17 
02:50:11.000000000 +0100
+++ new/pyupgrade-3.20.0/tests/features/typing_pep563_test.py   2025-05-23 
20:55:31.000000000 +0200
@@ -372,6 +372,13 @@
     assert ret == expected
 
 
+def test_fixes_in_py314():
+    src = 'def f(x: "X") -> "Y": pass\n'
+    expected = 'def f(x: X) -> Y: pass\n'
+    ret = _fix_plugins(src, settings=Settings(min_version=(3, 14)))
+    assert ret == expected
+
+
 @pytest.mark.xfail(sys.version_info < (3, 12), reason='3.12+ syntax')
 def test_typevar_bound():
     src = '''\

Reply via email to