From f0573c21c8a29a2b0dbd9f100eab34857a842bb067d7f83188e608fca3ac74aa Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 26 Sep 2022 06:07:46 +0000 Subject: [PATCH] update to version 2.38.2: OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=63 --- python-pyupgrade-2.33.0.tar.gz | 3 -- python-pyupgrade-2.38.2.tar.gz | 3 ++ python-pyupgrade.changes | 60 ++++++++++++++++++++++++++++++++++ python-pyupgrade.spec | 2 +- 4 files changed, 64 insertions(+), 4 deletions(-) delete mode 100644 python-pyupgrade-2.33.0.tar.gz create mode 100644 python-pyupgrade-2.38.2.tar.gz diff --git a/python-pyupgrade-2.33.0.tar.gz b/python-pyupgrade-2.33.0.tar.gz deleted file mode 100644 index 50fd3ad..0000000 --- a/python-pyupgrade-2.33.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7277e17974ab33150e558692fe88156fb702cb12da39e1da3127b82b7c2d5bbb -size 58459 diff --git a/python-pyupgrade-2.38.2.tar.gz b/python-pyupgrade-2.38.2.tar.gz new file mode 100644 index 0000000..4b2bbb9 --- /dev/null +++ b/python-pyupgrade-2.38.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48973f84d10a9f8eed014aef505ebec50317bbdaa378bf4dec97f0ed5569f3e7 +size 64004 diff --git a/python-pyupgrade.changes b/python-pyupgrade.changes index 75364ae..121f6cc 100644 --- a/python-pyupgrade.changes +++ b/python-pyupgrade.changes @@ -1,3 +1,63 @@ +------------------------------------------------------------------- +Mon Sep 26 06:05:32 UTC 2022 - Sebastian Wagner + +- update to version 2.38.2: + - rewrite 2-arg super call in nested class +- update to version 2.38.1: + - regenerate imports to get typing.get_type_hints version change +- update to version 2.38.0: + - Add ast.Bytes in typing_classes _unparse + Fix "NotImplementedError: Constant(value=*)" + when defining TypedDict in alternative syntax + with literal bytes values. + - Implement preservation of comments "within" typing classes + This ensures that comments which appear around TypedDicts and + NamedTuples that are converted to class style are preserved. + The layout of the comments in the new code isn't perfect, however + that's relatively easy for the user to fix manually afterwards. + Fixes https://github.com/asottile/pyupgrade/issues/497 + Fixes https://github.com/asottile/pyupgrade/issues/634 + Fixes https://github.com/asottile/pyupgrade/issues/697 + - remove pep289 rewrite + - upgrade azure-pipelines + - convert pip install comand to a block + github will produce a copy-paste button + Committed via https://github.com/asottile/all-repos +- update to version 2.37.3: + - fix imports removal not including rules from previous versions +- update to version 2.37.2: + - sync import rewrites from reorder-python-imports +- update to version 2.37.1: + - fix replacement of entire indented import + - only rewrite typing.Callable in 3.10+ +- update to version 2.37.0: + - avoid double parse when removing imports + - fix indentation for import-imports being added + - rewrite pipes.quote -> shlex.quote +- update to version 2.36.0: + - combine mock and imports plugins +- update to version 2.35.0: + - document import replacements + - rewrite collections.Name to collections.abc.Name + Co-Authored-By: ptmcg + - add more tests for import rewriting + Co-Authored-By: ptmcg + - fix replacing imports when not ending in a newline + - rewrite from-imports of modules + - check in testing/generate-imports + - rewrite aliased import-imports + - avoid computing modnames when not needed in import replace + - handle from imports where module name is replaced + - fix removals and replacements at the same time + - replace from imports with exact symbols + - rewrite a few more six.moves.* attrs + - refactor import removal to a plugin + - converge open modes of io.open in one pass + Co-Authored-By: Ali Hamdan +- update to version 2.34.0: + - warn that py2 mode will be going away + - rewrite bytes(b'foo') to b'foo' + ------------------------------------------------------------------- Tue Jun 21 08:52:27 UTC 2022 - Sebastian Wagner diff --git a/python-pyupgrade.spec b/python-pyupgrade.spec index db78cce..637bd20 100644 --- a/python-pyupgrade.spec +++ b/python-pyupgrade.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pyupgrade -Version: 2.33.0 +Version: 2.38.2 Release: 0 Summary: A tool to automatically upgrade syntax for newer versions License: MIT