Bläddra i källkod

fix package long description, fixes #3854

(cherry picked from commit a318c3bb66368d396b32ca0e982a7928c8d49555)
Thomas Waldmann 7 år sedan
förälder
incheckning
89c7093048
1 ändrade filer med 4 tillägg och 2 borttagningar
  1. 4 2
      setup.py

+ 4 - 2
setup.py

@@ -190,10 +190,12 @@ else:
 
 
 with open('README.rst', 'r') as fd:
 with open('README.rst', 'r') as fd:
     long_description = fd.read()
     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
     # remove badges
     long_description = re.compile(r'^\.\. start-badges.*^\.\. end-badges', re.M | re.S).sub('', long_description)
     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
     # remove unknown directives
     long_description = re.compile(r'^\.\. highlight:: \w+$', re.M).sub('', long_description)
     long_description = re.compile(r'^\.\. highlight:: \w+$', re.M).sub('', long_description)