Skip to content

Commit 5657f74

Browse files
committed
setup.py clenaup
1 parent a6e025c commit 5657f74

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

setup.py

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
from distutils.core import setup
22

3-
readmeContents = open("README").read()
4-
parastart = readmeContents.find('=\n')+3 # index where the first paragraph starts
5-
6-
setup(name='cluster',
7-
version='1.1.1b3',
8-
author='Michel Albert',
9-
author_email='[email protected]',
10-
url='http://python-cluster.sourceforge.net/',
11-
py_modules=['cluster'],
12-
license='LGPL',
13-
description=readmeContents[parastart: readmeContents.find('.', parastart)], # first sentence of first paragraph
14-
long_description = readmeContents
15-
)
3+
readme_contents = open("README").read()
4+
5+
# index where the first paragraph starts
6+
parastart = readme_contents.find('=\n') + 3
7+
8+
# first sentence of first paragraph
9+
sentence_end = readme_contents.find('.', parastart)
10+
11+
setup(
12+
name='cluster',
13+
version='1.1.1b3',
14+
author='Michel Albert',
15+
author_email='[email protected]',
16+
url='http://python-cluster.sourceforge.net/',
17+
py_modules=['cluster'],
18+
license='LGPL',
19+
description=readme_contents[parastart:sentence_end],
20+
long_description=readme_contents)

0 commit comments

Comments
 (0)