diff --git a/blue-0.9.0.tar.gz b/blue-0.9.0.tar.gz deleted file mode 100644 index cba71dc..0000000 --- a/blue-0.9.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6191156d022a688f911daba92dcf673d64ff342cd9ceeb13be429cae997f95c -size 87751 diff --git a/blue-0.9.1.tar.gz b/blue-0.9.1.tar.gz new file mode 100644 index 0000000..3bb49d7 --- /dev/null +++ b/blue-0.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79f25ed537e23777ec8d9762970db6d44e9a1df7c8bcdc55a44a3ba1382d4278 +size 87891 diff --git a/flake8-v5-compatibility.patch b/flake8-v5-compatibility.patch index 638ddae..345f5d5 100644 --- a/flake8-v5-compatibility.patch +++ b/flake8-v5-compatibility.patch @@ -15,3 +15,14 @@ class MergedConfigParser(BaseConfigParser): +--- blue-0.9.1.orig/setup.py ++++ blue-0.9.1/setup.py +@@ -37,7 +37,7 @@ setup( + packages=['blue'], + tests_require=['tox'], + cmdclass={'test': Tox}, +- install_requires=['black==22.1.0', 'flake8>=3.8,<5.0.0'], ++ install_requires=['black==22.1.0', 'flake8>=3.8'], + project_urls={ + 'Documentation': 'https://blue.readthedocs.io/en/latest', + 'Source': 'https://github.com/grantjenks/blue.git', diff --git a/python-blue.changes b/python-blue.changes index 94e5627..381634e 100644 --- a/python-blue.changes +++ b/python-blue.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sat Jan 28 12:58:30 UTC 2023 - Dirk Müller + +- update to 0.9.1: + * blue is incompatible with flake8 v5 (GH#78) due to changes in the way + flake8 parses its config files. For now, pin the flake8 dependency <5.0.0 + * Add support for testing against Python 3.10 and 3.11 in tox.ini, and fix an + incompatibility with the rstcheck command line. + * Bump copyright years. +- drop unpin-black.patch (obsolete) +- update flake8-v5-compatibility.patch to unpin flake8 again + ------------------------------------------------------------------- Mon Sep 19 10:14:39 UTC 2022 - Daniel Garcia diff --git a/python-blue.spec b/python-blue.spec index c8d7bc5..9ba27b7 100644 --- a/python-blue.spec +++ b/python-blue.spec @@ -1,7 +1,7 @@ # # spec file for package python-blue # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,14 +19,12 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-blue -Version: 0.9.0 +Version: 0.9.1 Release: 0 Summary: A code formatter written in, and written for Python License: MIT URL: https://github.com/grantjenks/blue Source: https://github.com/grantjenks/blue/archive/v%{version}.tar.gz#/blue-%{version}.tar.gz -# PATCH-FIX-OPENSUSE unpin-black.patch -- we can't have a fixed black version in the distribution -Patch0: unpin-black.patch # PATCH-FIX-OPENSUSE unpin-tomli.patch -- gh#grantjenks/blue#66 Patch1: unpin-tomli.patch # PATCH-FIX-UPSTREAM flake8-v5-compatibility.patch -- gh#grantjenks/blue#78 diff --git a/unpin-black.patch b/unpin-black.patch deleted file mode 100644 index eb059a4..0000000 --- a/unpin-black.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- - blue/__init__.py | 5 +++-- - setup.py | 2 +- - 2 files changed, 4 insertions(+), 3 deletions(-) - ---- a/blue/__init__.py -+++ b/blue/__init__.py -@@ -448,8 +448,9 @@ def main(): - 'Black', 'Blue' - ) - # Change the config param callback to support setup.cfg, tox.ini, etc. -- config_param = black.main.params[25] -- assert config_param.name == 'config' -+ # the index changed somewhere between black 21.7b and 21.12b -+ cfgidx = {p.name: i for (i, p) in enumerate(black.main.params)}['config'] -+ config_param = black.main.params[cfgidx] - config_param.callback = read_configs - # Change the version string by adding a redundant Click `version_option` - # decorator on `black.main`. Fortunately the added `version_option` takes ---- a/setup.py -+++ b/setup.py -@@ -37,7 +37,7 @@ setup( - packages=['blue'], - tests_require=['tox'], - cmdclass={'test': Tox}, -- install_requires=['black==22.1.0', 'flake8>=3.8'], -+ install_requires=['black>=22.1.0', 'flake8>=3.8'], - project_urls={ - 'Documentation': 'https://blue.readthedocs.io/en/latest', - 'Source': 'https://github.com/grantjenks/blue.git',