From 5ddff14d87cbef71b637267536be3bf93b4b74eb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 27 Dec 2022 02:31:22 +0000 Subject: [PATCH 1/4] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/asottile/pyupgrade: v3.1.0 → v3.3.1](https://github.com/asottile/pyupgrade/compare/v3.1.0...v3.3.1) - [github.com/psf/black: 22.10.0 → 22.12.0](https://github.com/psf/black/compare/22.10.0...22.12.0) - [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.3 → v3.0.0-alpha.4](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.3...v3.0.0-alpha.4) - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0) - [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0) - [github.com/PyCQA/isort: 5.10.1 → 5.11.4](https://github.com/PyCQA/isort/compare/5.10.1...5.11.4) - [github.com/pre-commit/mirrors-mypy: v0.982 → v0.991](https://github.com/pre-commit/mirrors-mypy/compare/v0.982...v0.991) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 422ea51..e3d4137 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,19 +4,19 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v3.1.0 + rev: v3.3.1 hooks: - id: pyupgrade - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 22.12.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.3 + rev: v3.0.0-alpha.4 hooks: - id: prettier - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-added-large-files - id: check-ast @@ -31,7 +31,7 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 6.0.0 hooks: - id: flake8 args: @@ -39,12 +39,12 @@ repos: # https://github.com/PyCQA/pycodestyle/issues/373 - --extend-ignore=E203 - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.11.4 hooks: - id: isort args: [--profile, black] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.982 + rev: v0.991 hooks: - id: mypy args: [--show-error-codes, --ignore-missing-imports] From b6211f35a81f6644a6bff0e31bd37a6d90600ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Mon, 30 Jan 2023 13:45:36 +0100 Subject: [PATCH 2/4] Update isort to a hotfix release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/PyCQA/isort/releases/tag/5.11.5 Signed-off-by: Nikola Forró --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e3d4137..d92af94 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: # https://github.com/PyCQA/pycodestyle/issues/373 - --extend-ignore=E203 - repo: https://github.com/PyCQA/isort - rev: 5.11.4 + rev: 5.11.5 hooks: - id: isort args: [--profile, black] From 852c0ac452228e29fa363d64f8e054ac5619738b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Mon, 30 Jan 2023 13:50:13 +0100 Subject: [PATCH 3/4] Fix ambiguous variable name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nikola Forró --- specfile/tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specfile/tags.py b/specfile/tags.py index 6595adf..3865913 100644 --- a/specfile/tags.py +++ b/specfile/tags.py @@ -380,13 +380,13 @@ def delete(index): reversed( list( itertools.dropwhile( - lambda l: not l, reversed(preceding_lines) + lambda line: not line, reversed(preceding_lines) ) ) ) ) + delimiter - + list(itertools.dropwhile(lambda l: not l, lines)) + + list(itertools.dropwhile(lambda line: not line, lines)) ) if isinstance(i, slice): From f6641439e28f6005d151121e28f13c68d904e001 Mon Sep 17 00:00:00 2001 From: nforro Date: Mon, 30 Jan 2023 10:38:59 +0000 Subject: [PATCH 4/4] Release 0.13.2 --- CHANGELOG.md | 4 ++++ fedora/python-specfile.spec | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f92f02..7f0377c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.13.2 + +- Fixed infinite loop that occured when section options were followed by whitespace. (#197) + # 0.13.1 - Fixed a bug in section parsing that caused sections to be ignored when there were macro definitions spread across the spec file and not cumulated at the top. (#191) diff --git a/fedora/python-specfile.spec b/fedora/python-specfile.spec index 0cd3e06..fff5194 100644 --- a/fedora/python-specfile.spec +++ b/fedora/python-specfile.spec @@ -13,7 +13,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.13.1 +Version: 0.13.2 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -69,6 +69,9 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg %changelog +* Mon Jan 30 2023 Packit Team - 0.13.2-1 +- New upstream release 0.13.2 + * Mon Jan 23 2023 Packit Team - 0.13.1-1 - New upstream release 0.13.1