From 49ae79c5c0d210bf7e1d6dcaa28218680fe0c5493401df3425b4c2b70fc834d3 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sun, 12 Jul 2020 16:09:32 +0000 Subject: [PATCH 1/2] small spec comment update OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=2 --- python-pyupgrade.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/python-pyupgrade.spec b/python-pyupgrade.spec index d327c74..e338521 100644 --- a/python-pyupgrade.spec +++ b/python-pyupgrade.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyupgrade # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,25 +12,26 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyupgrade Version: 2.6.2 Release: 0 -License: MIT Summary: A tool to automatically upgrade syntax for newer versions -Url: https://github.com/asottile/pyupgrade +License: MIT Group: Development/Languages/Python -# pypi tarball does not include tests, use github instead. PR for inclusion: https://github.com/asottile/pyupgrade/pull/326 +URL: https://github.com/asottile/pyupgrade +# pypi tarball does not include tests, use github instead. PR for inclusion was denied https://github.com/asottile/pyupgrade/pull/326 Source: https://github.com/asottile/pyupgrade/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz #Source: https://files.pythonhosted.org/packages/source/p/pyupgrade/pyupgrade-%%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module tokenize-rt >= 3.2.0} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module tokenize-rt >= 3.2.0} # /SECTION BuildRequires: fdupes Requires: python-tokenize-rt >= 3.2.0 From ca5a64c3681ab976367a19764b0afbdf79a02cac1f6fc0da656ba15799e4094a Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 3 Aug 2020 18:08:36 +0000 Subject: [PATCH 2/2] Accepting request 824152 from home:mcalabkova:branches:devel:languages:python - update to 2.7.2 * fix any call with *sys.exc_info() * leave f'string'.format(...) alone * `reraise` and `raise_from` doc examples OBS-URL: https://build.opensuse.org/request/show/824152 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyupgrade?expand=0&rev=4 --- python-pyupgrade-2.6.2.tar.gz | 3 --- python-pyupgrade-2.7.2.tar.gz | 3 +++ python-pyupgrade.changes | 8 ++++++++ python-pyupgrade.spec | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 python-pyupgrade-2.6.2.tar.gz create mode 100644 python-pyupgrade-2.7.2.tar.gz diff --git a/python-pyupgrade-2.6.2.tar.gz b/python-pyupgrade-2.6.2.tar.gz deleted file mode 100644 index 5128d17..0000000 --- a/python-pyupgrade-2.6.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cc50909b49221739b25b74bf5792b33db3703965ca912de0d51f613c4e4c7a2f -size 41680 diff --git a/python-pyupgrade-2.7.2.tar.gz b/python-pyupgrade-2.7.2.tar.gz new file mode 100644 index 0000000..e96a415 --- /dev/null +++ b/python-pyupgrade-2.7.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bdc328771a2e1b762dfa82230a9df638226c26fbd1f8f28512e0b3cb6b1ce9d1 +size 41987 diff --git a/python-pyupgrade.changes b/python-pyupgrade.changes index 9910229..620fefa 100644 --- a/python-pyupgrade.changes +++ b/python-pyupgrade.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Aug 3 13:30:45 UTC 2020 - Marketa Calabkova + +- update to 2.7.2 + * fix any call with *sys.exc_info() + * leave f'string'.format(...) alone + * `reraise` and `raise_from` doc examples + ------------------------------------------------------------------- Sat Jul 4 09:50:49 UTC 2020 - Sebastian Wagner diff --git a/python-pyupgrade.spec b/python-pyupgrade.spec index e338521..9594be1 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.6.2 +Version: 2.7.2 Release: 0 Summary: A tool to automatically upgrade syntax for newer versions License: MIT