Skip to content

Commit

Permalink
Clean up setup.py (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHjelmare authored Apr 5, 2018
1 parent 980f559 commit 76fba0f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

os.system('make rst')
try:
readme = open('README.rst').read()
README = open('README.rst').read()
except FileNotFoundError:
readme = ''
README = ''

with open(os.path.join('leicacam', 'VERSION')) as version_file:
VERSION = version_file.read().strip()
Expand All @@ -17,7 +17,7 @@
name='leicacam',
version=VERSION,
description='Control Leica microscopes with python',
long_description=readme,
long_description=README,
author='Arve Seljebu',
author_email='arve.seljebu@gmail.com',
url='https://github.com/arve0/leicacam',
Expand All @@ -42,5 +42,7 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)

0 comments on commit 76fba0f

Please sign in to comment.