X-Git-Url: https://wylark.com/src/munter.git/blobdiff_plain/38861e87d58b94b570c6f14da888237b4b1112c2..907420b3d4e3cab64e49acc3c2591996527b6278:/setup.py?ds=sidebyside diff --git a/setup.py b/setup.py index ac9ff30..b6e888b 100644 --- a/setup.py +++ b/setup.py @@ -4,23 +4,24 @@ import os import re from setuptools import setup -cur_dir = os.path.dirname(__file__) -version = re.search( - '^__version__\s*=\s*"(.*)"', - open(os.path.join(cur_dir, 'munter/__init__.py')).read(), +CUR_DIR = os.path.dirname(__file__) +VERSION = re.search( + "^__version__\\s*=\\s*'(.*)'", + open(os.path.join(CUR_DIR, 'munter/__init__.py')).read(), re.M ).group(1) +README = "" -with open(os.path.join(cur_dir, 'README.md'), encoding='utf-8') as readme_file: - readme = readme_file.read() +with open(os.path.join(CUR_DIR, 'README.md'), encoding='utf-8') as readme_file: + README = readme_file.read() setup( name='munter.py', - version=version, + version=VERSION, description=( 'An easy-to-use implementation of the Munter time calculation' ), - long_description=readme, + long_description=README, long_description_content_type='text/markdown', author='Alexander Vasarab', author_email='alexander@wylark.com',