X-Git-Url: https://wylark.com/src/munter.git/blobdiff_plain/f25f263a1358af89de1ebb90dae33b4a7ca2bab3..0b8de1afc758a308cb5a2cc27f106c635c6f546a:/setup.py?ds=sidebyside diff --git a/setup.py b/setup.py index 7ab2665..ac9ff30 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,17 @@ #!/usr/bin/env python """munter.py distutils configuration.""" +import os +import re from setuptools import setup -version = "1.0.2" +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) -with open('README', encoding='utf-8') as readme_file: +with open(os.path.join(cur_dir, 'README.md'), encoding='utf-8') as readme_file: readme = readme_file.read() setup( @@ -14,13 +21,16 @@ setup( 'An easy-to-use implementation of the Munter time calculation' ), long_description=readme, - long_description_content_type='text/plain', + long_description_content_type='text/markdown', author='Alexander Vasarab', author_email='alexander@wylark.com', url='https://wylark.com/munter', + project_urls={ + 'Source Code': 'https://wylark.com/git/munter.git' + }, packages=['munter'], package_dir={'munter': 'munter'}, - entry_points={'console_scripts': ['munter = munter.__main__:main']}, + entry_points={'console_scripts': ['munter = munter.munter:main']}, include_package_data=True, python_requires='>=3.6', license='ISC',