mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +00:00
fix package long description, fixes #3854
This commit is contained in:
parent
1ac2bbb434
commit
a318c3bb66
1 changed files with 4 additions and 2 deletions
6
setup.py
6
setup.py
|
@ -215,10 +215,12 @@ def detect_openssl(prefixes):
|
|||
|
||||
with open('README.rst', 'r') as fd:
|
||||
long_description = fd.read()
|
||||
# remove header, but have one \n before first headline
|
||||
start = long_description.find('What is BorgBackup?')
|
||||
assert start >= 0
|
||||
long_description = '\n' + long_description[start:]
|
||||
# remove badges
|
||||
long_description = re.compile(r'^\.\. start-badges.*^\.\. end-badges', re.M | re.S).sub('', long_description)
|
||||
# remove |substitutions|
|
||||
long_description = re.compile(r'\|screencast\|').sub('', long_description)
|
||||
# remove unknown directives
|
||||
long_description = re.compile(r'^\.\. highlight:: \w+$', re.M).sub('', long_description)
|
||||
|
||||
|
|
Loading…
Reference in a new issue