From 9783f48fc64da9da2b936f90d7aaf787a93c1085113041b2ec954e08ad100450 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sun, 31 Jan 2021 17:52:15 +0000 Subject: [PATCH 1/4] - Update to version 2.8.0: - genericize future import detection - rewrite pep585 generic builtins - move py2 compat fixer to plugins - move %-format rewrite to a plugin - move py3+ base class removal to plugins - move lru_cache rewrite to a plugin - move six decorator removal to a plugin - move six.b / six.ensure_binary to a plugin - move __metaclass__ = test checker to a plugin - move io.open rewriting to a plugin - move simple six attrs to a plugin - move typing pep585 rewrite to a plugin - move default encoding to a plugin - move native literals to a plugin - move versioned branches rewrite to a plugin - move open mode fix to a plugin - move os error alias rename to a plugin - move six calls / metaclass rewrites to plugins - settings in separate class - move mock rewrite to a plugin - refactor Py3Plus scope management - move super and yield from to a legacy plugin - combine six_b into six_calls plugin - replace typing.Text with str - rewrite pep604 (+ add --py310-plus) - document PEP 604 rewrites OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=12 --- python-pyupgrade-2.7.4.tar.gz | 3 --- python-pyupgrade-2.8.0.tar.gz | 3 +++ python-pyupgrade.changes | 31 +++++++++++++++++++++++++++++++ python-pyupgrade.spec | 2 +- 4 files changed, 35 insertions(+), 4 deletions(-) delete mode 100644 python-pyupgrade-2.7.4.tar.gz create mode 100644 python-pyupgrade-2.8.0.tar.gz diff --git a/python-pyupgrade-2.7.4.tar.gz b/python-pyupgrade-2.7.4.tar.gz deleted file mode 100644 index 4c31d65..0000000 --- a/python-pyupgrade-2.7.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:88dc4d2137c1e73099e8f1b69e6a8f29c53856cc41f4cc7187d5dca4056088b7 -size 42618 diff --git a/python-pyupgrade-2.8.0.tar.gz b/python-pyupgrade-2.8.0.tar.gz new file mode 100644 index 0000000..e9e1b6a --- /dev/null +++ b/python-pyupgrade-2.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c71f20d422221163d63ad6402720836ecf75a6a45651dcce5cac255205722f5c +size 47621 diff --git a/python-pyupgrade.changes b/python-pyupgrade.changes index a4419b6..8e8539a 100644 --- a/python-pyupgrade.changes +++ b/python-pyupgrade.changes @@ -1,3 +1,34 @@ +------------------------------------------------------------------- +Sun Jan 31 17:48:42 UTC 2021 - Sebastian Wagner + +- Update to version 2.8.0: + - genericize future import detection + - rewrite pep585 generic builtins + - move py2 compat fixer to plugins + - move %-format rewrite to a plugin + - move py3+ base class removal to plugins + - move lru_cache rewrite to a plugin + - move six decorator removal to a plugin + - move six.b / six.ensure_binary to a plugin + - move __metaclass__ = test checker to a plugin + - move io.open rewriting to a plugin + - move simple six attrs to a plugin + - move typing pep585 rewrite to a plugin + - move default encoding to a plugin + - move native literals to a plugin + - move versioned branches rewrite to a plugin + - move open mode fix to a plugin + - move os error alias rename to a plugin + - move six calls / metaclass rewrites to plugins + - settings in separate class + - move mock rewrite to a plugin + - refactor Py3Plus scope management + - move super and yield from to a legacy plugin + - combine six_b into six_calls plugin + - replace typing.Text with str + - rewrite pep604 (+ add --py310-plus) + - document PEP 604 rewrites + ------------------------------------------------------------------- Sat Jan 23 15:25:51 UTC 2021 - Sebastian Wagner diff --git a/python-pyupgrade.spec b/python-pyupgrade.spec index ffec918..4168bbf 100644 --- a/python-pyupgrade.spec +++ b/python-pyupgrade.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyupgrade -Version: 2.7.4 +Version: 2.8.0 Release: 0 Summary: A tool to automatically upgrade syntax for newer versions License: MIT From 8d8d93e0cf99f5b7a673ede7b2a852ba4830572de2d6cf61ff53fc9beb219018 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 3 Feb 2021 16:49:04 +0000 Subject: [PATCH 2/4] - Update to version 2.9.0: - Document correct minimum version for PEP 604 - fix propagation of --keep-mock - Add --keep-runtime-typing OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=13 --- python-pyupgrade-2.8.0.tar.gz | 3 --- python-pyupgrade-2.9.0.tar.gz | 3 +++ python-pyupgrade.changes | 8 ++++++++ python-pyupgrade.spec | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 python-pyupgrade-2.8.0.tar.gz create mode 100644 python-pyupgrade-2.9.0.tar.gz diff --git a/python-pyupgrade-2.8.0.tar.gz b/python-pyupgrade-2.8.0.tar.gz deleted file mode 100644 index e9e1b6a..0000000 --- a/python-pyupgrade-2.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c71f20d422221163d63ad6402720836ecf75a6a45651dcce5cac255205722f5c -size 47621 diff --git a/python-pyupgrade-2.9.0.tar.gz b/python-pyupgrade-2.9.0.tar.gz new file mode 100644 index 0000000..3316288 --- /dev/null +++ b/python-pyupgrade-2.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8206f5317ee8029d17275931afc9fe7b017908718d739fe651d8c405a2cca768 +size 47858 diff --git a/python-pyupgrade.changes b/python-pyupgrade.changes index 8e8539a..00ef460 100644 --- a/python-pyupgrade.changes +++ b/python-pyupgrade.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Feb 3 16:46:58 UTC 2021 - Sebastian Wagner + +- Update to version 2.9.0: + - Document correct minimum version for PEP 604 + - fix propagation of --keep-mock + - Add --keep-runtime-typing + ------------------------------------------------------------------- Sun Jan 31 17:48:42 UTC 2021 - Sebastian Wagner diff --git a/python-pyupgrade.spec b/python-pyupgrade.spec index 4168bbf..6d71dd9 100644 --- a/python-pyupgrade.spec +++ b/python-pyupgrade.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyupgrade -Version: 2.8.0 +Version: 2.9.0 Release: 0 Summary: A tool to automatically upgrade syntax for newer versions License: MIT From 985d3d58e2a00e857297393a25745baac2bbb23acd2dda6a9e0803a1e6f049f6 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Tue, 9 Feb 2021 06:48:22 +0000 Subject: [PATCH 3/4] - Update to version 1.10.0: - lru_cache(maxsize=None) => functools.cache OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=14 --- python-pyupgrade-2.10.0.tar.gz | 3 +++ python-pyupgrade-2.9.0.tar.gz | 3 --- python-pyupgrade.changes | 6 ++++++ python-pyupgrade.spec | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 python-pyupgrade-2.10.0.tar.gz delete mode 100644 python-pyupgrade-2.9.0.tar.gz diff --git a/python-pyupgrade-2.10.0.tar.gz b/python-pyupgrade-2.10.0.tar.gz new file mode 100644 index 0000000..da81306 --- /dev/null +++ b/python-pyupgrade-2.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc92492660c2e249afb7725dd7a61bd0736a6fcebf20dee67441e1aed42685d4 +size 48046 diff --git a/python-pyupgrade-2.9.0.tar.gz b/python-pyupgrade-2.9.0.tar.gz deleted file mode 100644 index 3316288..0000000 --- a/python-pyupgrade-2.9.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8206f5317ee8029d17275931afc9fe7b017908718d739fe651d8c405a2cca768 -size 47858 diff --git a/python-pyupgrade.changes b/python-pyupgrade.changes index 00ef460..c3dd0fa 100644 --- a/python-pyupgrade.changes +++ b/python-pyupgrade.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 9 06:44:47 UTC 2021 - Sebastian Wagner + +- Update to version 1.10.0: + - lru_cache(maxsize=None) => functools.cache + ------------------------------------------------------------------- Wed Feb 3 16:46:58 UTC 2021 - Sebastian Wagner diff --git a/python-pyupgrade.spec b/python-pyupgrade.spec index 6d71dd9..f4f59e4 100644 --- a/python-pyupgrade.spec +++ b/python-pyupgrade.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyupgrade -Version: 2.9.0 +Version: 2.10.0 Release: 0 Summary: A tool to automatically upgrade syntax for newer versions License: MIT From 1ec1e28b213c910c13e1a65b68ad0b3bbef941c3d435a6fdac4d1ad6279aedb6 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sat, 13 Feb 2021 18:23:06 +0000 Subject: [PATCH 4/4] - Disable build on Python 2 as the build fails with the latest version. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=15 --- python-pyupgrade.changes | 5 +++++ python-pyupgrade.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-pyupgrade.changes b/python-pyupgrade.changes index c3dd0fa..52b9223 100644 --- a/python-pyupgrade.changes +++ b/python-pyupgrade.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Feb 13 18:15:11 UTC 2021 - Sebastian Wagner + +- Disable build on Python 2 as the build fails with the latest version. + ------------------------------------------------------------------- Tue Feb 9 06:44:47 UTC 2021 - Sebastian Wagner diff --git a/python-pyupgrade.spec b/python-pyupgrade.spec index f4f59e4..a838126 100644 --- a/python-pyupgrade.spec +++ b/python-pyupgrade.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-pyupgrade Version: 2.10.0 Release: 0 @@ -42,7 +43,8 @@ BuildArch: noarch %python_subpackages %description -A tool to automatically upgrade syntax for newer versions. +A tool to automatically upgrade syntax for newer versions of the Python +programming language. %prep %setup -q -n pyupgrade-%{version}