Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwdunham committed Nov 9, 2017
1 parent a6580d5 commit 02d14c9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,17 @@
from os import path



HERE = path.abspath(path.dirname(__file__))

# Get the long description from the relevant file
with open(path.join(HERE, 'README.md'), encoding='utf-8') as f:
long_description = f.read()


def get_version():
version = '0.1.0'
with open('metsrw/__init__.py') as fi:
with open(path.join(HERE, 'metsrw', '__init__.py')) as fi:
for line in fi:
if line.startswith('__version__'):
parts = line.strip().split()
Expand All @@ -25,13 +33,6 @@ def get_version():
return version


here = path.abspath(path.dirname(__file__))

# Get the long description from the relevant file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()


setup(
name='metsrw',
version=get_version(),
Expand Down

0 comments on commit 02d14c9

Please sign in to comment.