Skip to content

Commit

Permalink
Merge pull request #198 from packit/create-pull-request/patch
Browse files Browse the repository at this point in the history
Release 0.13.2

Update the changelog and the specfile for release 0.13.2.

Reviewed-by: Jiri Popelka <None>
Reviewed-by: Nikola Forró <None>
  • Loading branch information
softwarefactory-project-zuul[bot] authored Jan 30, 2023
2 parents aea1515 + f664143 commit dc2440f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,20 +31,20 @@ 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:
- --max-line-length=100
# https://github.com/PyCQA/pycodestyle/issues/373
- --extend-ignore=E203
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.11.5
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]
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
5 changes: 4 additions & 1 deletion fedora/python-specfile.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -69,6 +69,9 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg


%changelog
* Mon Jan 30 2023 Packit Team <[email protected]> - 0.13.2-1
- New upstream release 0.13.2

* Mon Jan 23 2023 Packit Team <[email protected]> - 0.13.1-1
- New upstream release 0.13.1

Expand Down
4 changes: 2 additions & 2 deletions specfile/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit dc2440f

Please sign in to comment.