1
0
Fork 0

Removing upstream changelog trimming now that a dedicated changelog file is included upstream.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-12 13:07:33 +01:00
parent 56f5b83541
commit 1505404d53
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
2 changed files with 1 additions and 9 deletions

1
debian/clean vendored
View file

@ -1,3 +1,2 @@
*.egg-info/*
.cache/
debian/upstream-changelog

9
debian/rules vendored
View file

@ -20,11 +20,4 @@ override_dh_compress:
dh_compress -X example1.py -X example2.py -X example3.py -X html/
override_dh_installchangelogs:
# Trim the changelog section out of the README file. Note that this will
# hang if the changelog-section-{start,end} strings don't appear exactly as
# they are in the README file.
python3 -c "with open('README.rst', encoding='utf-8') as r: print(''.join( \
['' for x in iter(r.readline, '.. changelog-section-start\n')] + \
[x for x in iter(r.readline, '.. changelog-section-end\n')]))" \
> debian/upstream-changelog
dh_installchangelogs debian/upstream-changelog
dh_installchangelogs CHANGELOG.md