wylark
/
munter.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Complete pylint(1) fixes for GUI
[munter.git]
/
setup.py
diff --git
a/setup.py
b/setup.py
index 7ab2665b18c9ad68df28a3976855cfde08a6a04a..b6e888b0becff4b08ff62e1d19d2b88efb20392d 100644
(file)
--- a/
setup.py
+++ b/
setup.py
@@
-1,26
+1,37
@@
#!/usr/bin/env python
"""munter.py distutils configuration."""
#!/usr/bin/env python
"""munter.py distutils configuration."""
+import os
+import re
from setuptools import setup
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)
+README = ""
-with open(
'README'
, 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',
setup(
name='munter.py',
- version=
version
,
+ version=
VERSION
,
description=(
'An easy-to-use implementation of the Munter time calculation'
),
description=(
'An easy-to-use implementation of the Munter time calculation'
),
- long_description=
readme
,
- long_description_content_type='text/
plai
n',
+ long_description=
README
,
+ long_description_content_type='text/
markdow
n',
author='Alexander Vasarab',
author_email='alexander@wylark.com',
url='https://wylark.com/munter',
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'},
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',
include_package_data=True,
python_requires='>=3.6',
license='ISC',