Skip to content

Commit bc586de

Browse files
artofhumanaleneum
authored andcommitted
Fix setup
1 parent 78fe295 commit bc586de

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
exec(f.read())
77

88
with codecs.open('README.md', 'r', 'utf-8') as f:
9+
import re
910
# cut the badges from the description and also the TOC which is currently not working on PyPi
10-
long_description = ''.join(f.readlines()[51:])
11-
assert long_description[:3] == '## ' # Description should start with a headline (## Quickstart)
11+
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)
1216

1317
if len(set(('test', 'easy_install')).intersection(sys.argv)) > 0:
1418
import setuptools

0 commit comments

Comments
 (0)