From ecb62c350c8eeac922dadacfe7fcdfbed6ba0cbcb03d0b81fc39d828790fb314 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 26 Dec 2023 20:25:16 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=203.15.0:=20=20=20*=20Implement?= =?UTF-8?q?=20defaultdict=20lambda=20fixer=20=20=20*=20update=20import=20s?= =?UTF-8?q?ymbols=20for=203.12=20release=20=20=20*=20constant=20fold=20isi?= =?UTF-8?q?nstance=20/=20issubclass=20/=20except=20=20=20*=20slight=20impr?= =?UTF-8?q?ovement=20to=20except=20fix=20=20=20*=20document=20TimeoutError?= =?UTF-8?q?=20rewrites=20=20=20*=20also=20rewrite=20os.error=20->=20OSErro?= =?UTF-8?q?r=20=20=20*=20prevent=20rewriting=20unittest=20module=20functio?= =?UTF-8?q?ns=20with=20additional=20=20=20=20=20arguments=20=20=20*=20fix?= =?UTF-8?q?=20string=20formatting=20with=20named=20escape=20adjacent=20to?= =?UTF-8?q?=20placeholder=20=20=20*=20regenerate=20with=20latest=20reorder?= =?UTF-8?q?-python-imports=20=20=20*=20slightly=20cleaner=20plugin=20union?= =?UTF-8?q?=20registering=20=20=20*=20remove=20python=202=20notes=20about?= =?UTF-8?q?=20invalid=20escapes=20=20=20*=20correct=20minimum=20requiremen?= =?UTF-8?q?t=20=20=20*=20fix=20weird-ws=20empty=20set=20literals=20=20=20*?= =?UTF-8?q?=20automatically=20rewrite=20to=20shlex.join=20in=20--py38-plus?= =?UTF-8?q?=20=20=20*=20posonlyargs=20are=20always=20present=20in=203.8+?= =?UTF-8?q?=20=20=20*=20updates=20for=20add-trailing-comma=203.x=EF=BF=BC?= =?UTF-8?q?=20=20=20*=203.12=20TypeVar=20bounds=20are=20always=20unquotabl?= =?UTF-8?q?e=20=20=20*=20support=20PEP=20563=20rewrites=20for=203.12+=20Ty?= =?UTF-8?q?peVar=20bounds=20-=20Update=20to=20version=203.2.1=20-=20Update?= =?UTF-8?q?=20to=20version=203.2.0=20=20-=20upgrade=20mypy=20to=20get=20ty?= =?UTF-8?q?peshed=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=73 --- python-pyupgrade-3.15.0.tar.gz | 3 +++ python-pyupgrade-3.4.0.tar.gz | 3 --- python-pyupgrade.changes | 30 +++++++++++++++++++++++++++--- python-pyupgrade.spec | 2 +- 4 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 python-pyupgrade-3.15.0.tar.gz delete mode 100644 python-pyupgrade-3.4.0.tar.gz diff --git a/python-pyupgrade-3.15.0.tar.gz b/python-pyupgrade-3.15.0.tar.gz new file mode 100644 index 0000000..9f55e8c --- /dev/null +++ b/python-pyupgrade-3.15.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5dd905590b82e4de68d25ed4b811b0fbf6c04ba48a5b3b7dc7969c6de29773fa +size 65317 diff --git a/python-pyupgrade-3.4.0.tar.gz b/python-pyupgrade-3.4.0.tar.gz deleted file mode 100644 index 75dac25..0000000 --- a/python-pyupgrade-3.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15f072052abe072bf4923ad5b2507b71537d757214fdaa1859c940fccec77acc -size 62408 diff --git a/python-pyupgrade.changes b/python-pyupgrade.changes index b833127..1aaaf5f 100644 --- a/python-pyupgrade.changes +++ b/python-pyupgrade.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Tue Dec 26 20:21:43 UTC 2023 - Dirk Müller + +- update to 3.15.0: + * Implement defaultdict lambda fixer + * update import symbols for 3.12 release + * constant fold isinstance / issubclass / except + * slight improvement to except fix + * document TimeoutError rewrites + * also rewrite os.error -> OSError + * prevent rewriting unittest module functions with additional + arguments + * fix string formatting with named escape adjacent to placeholder + * regenerate with latest reorder-python-imports + * slightly cleaner plugin union registering + * remove python 2 notes about invalid escapes + * correct minimum requirement + * fix weird-ws empty set literals + * automatically rewrite to shlex.join in --py38-plus + * posonlyargs are always present in 3.8+ + * updates for add-trailing-comma 3.x + * 3.12 TypeVar bounds are always unquotable + * support PEP 563 rewrites for 3.12+ TypeVar bounds + ------------------------------------------------------------------- Thu Jun 1 20:18:41 UTC 2023 - Dirk Müller @@ -16,13 +40,13 @@ Sat Dec 3 00:15:00 UTC 2022 - Yogalakshmi Arunachalam - Update to version 3.2.2 * remove abspath(__file__) rewrite -- Update to version 3.2.1 +- Update to version 3.2.1 * Fix `Optional["ForwardRef"]` rewriting ------------------------------------------------------------------- Wed Nov 9 18:48:48 UTC 2022 - Yogalakshmi Arunachalam -- Update to version 3.2.0 +- Update to version 3.2.0 * Merge pull request #747 from asottile/pre-commit-ci-update-config * Merge pull request #745 from tusharsadhwani/unpack * Add PEP646 Unpack plugin @@ -438,7 +462,7 @@ Sun Nov 1 18:32:44 UTC 2020 - Sebastian Wagner - Update to 2.7.3: - fix off-by-one in encode() call fixer - - upgrade mypy to get typeshed fix + - upgrade mypy to get typeshed fix ------------------------------------------------------------------- Mon Aug 3 13:30:45 UTC 2020 - Marketa Calabkova diff --git a/python-pyupgrade.spec b/python-pyupgrade.spec index 9a9e63b..371817c 100644 --- a/python-pyupgrade.spec +++ b/python-pyupgrade.spec @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-pyupgrade -Version: 3.4.0 +Version: 3.15.0 Release: 0 Summary: A tool to automatically upgrade syntax for newer versions License: MIT