Skip to content

Commit dc2440f

Browse files
Merge pull request #198 from packit/create-pull-request/patch
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>
2 parents aea1515 + f664143 commit dc2440f

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44

55
repos:
66
- repo: https://github.com/asottile/pyupgrade
7-
rev: v3.1.0
7+
rev: v3.3.1
88
hooks:
99
- id: pyupgrade
1010
- repo: https://github.com/psf/black
11-
rev: 22.10.0
11+
rev: 22.12.0
1212
hooks:
1313
- id: black
1414
- repo: https://github.com/pre-commit/mirrors-prettier
15-
rev: v3.0.0-alpha.3
15+
rev: v3.0.0-alpha.4
1616
hooks:
1717
- id: prettier
1818
- repo: https://github.com/pre-commit/pre-commit-hooks
19-
rev: v4.3.0
19+
rev: v4.4.0
2020
hooks:
2121
- id: check-added-large-files
2222
- id: check-ast
@@ -31,20 +31,20 @@ repos:
3131
- id: mixed-line-ending
3232
- id: trailing-whitespace
3333
- repo: https://github.com/PyCQA/flake8
34-
rev: 5.0.4
34+
rev: 6.0.0
3535
hooks:
3636
- id: flake8
3737
args:
3838
- --max-line-length=100
3939
# https://github.com/PyCQA/pycodestyle/issues/373
4040
- --extend-ignore=E203
4141
- repo: https://github.com/PyCQA/isort
42-
rev: 5.10.1
42+
rev: 5.11.5
4343
hooks:
4444
- id: isort
4545
args: [--profile, black]
4646
- repo: https://github.com/pre-commit/mirrors-mypy
47-
rev: v0.982
47+
rev: v0.991
4848
hooks:
4949
- id: mypy
5050
args: [--show-error-codes, --ignore-missing-imports]

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.13.2
2+
3+
- Fixed infinite loop that occured when section options were followed by whitespace. (#197)
4+
15
# 0.13.1
26

37
- 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)

fedora/python-specfile.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ in a minimal diff.}
1313

1414

1515
Name: python-specfile
16-
Version: 0.13.1
16+
Version: 0.13.2
1717
Release: 1%{?dist}
1818

1919
Summary: A library for parsing and manipulating RPM spec files
@@ -69,6 +69,9 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg
6969

7070

7171
%changelog
72+
* Mon Jan 30 2023 Packit Team <[email protected]> - 0.13.2-1
73+
- New upstream release 0.13.2
74+
7275
* Mon Jan 23 2023 Packit Team <[email protected]> - 0.13.1-1
7376
- New upstream release 0.13.1
7477

specfile/tags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@ def delete(index):
380380
reversed(
381381
list(
382382
itertools.dropwhile(
383-
lambda l: not l, reversed(preceding_lines)
383+
lambda line: not line, reversed(preceding_lines)
384384
)
385385
)
386386
)
387387
)
388388
+ delimiter
389-
+ list(itertools.dropwhile(lambda l: not l, lines))
389+
+ list(itertools.dropwhile(lambda line: not line, lines))
390390
)
391391

392392
if isinstance(i, slice):

0 commit comments

Comments
 (0)