From 02d14c9ce5647d7d9837d979b1e38a967298b874 Mon Sep 17 00:00:00 2001 From: Joel Dunham Date: Thu, 9 Nov 2017 13:06:56 -0800 Subject: [PATCH] fix --- setup.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 1eed4fb..939b3a1 100644 --- a/setup.py +++ b/setup.py @@ -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() @@ -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(),