We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78fe295 commit bc586deCopy full SHA for bc586de
setup.py
@@ -6,9 +6,13 @@
6
exec(f.read())
7
8
with codecs.open('README.md', 'r', 'utf-8') as f:
9
+ import re
10
# cut the badges from the description and also the TOC which is currently not working on PyPi
- long_description = ''.join(f.readlines()[51:])
11
- assert long_description[:3] == '## ' # Description should start with a headline (## Quickstart)
+ regex = r"([\s\S]*)## Quickstart"
12
+ readme = f.read()
13
+
14
+ long_description = re.sub(regex, "## Quickstart", readme, 1)
15
+ assert long_description[:13] == '## Quickstart' # Description should start with a headline (## Quickstart)
16
17
if len(set(('test', 'easy_install')).intersection(sys.argv)) > 0:
18
import setuptools
0 commit comments