wylark
/
munter.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Import to export
[munter.git]
/
setup.py
diff --git
a/setup.py
b/setup.py
index 7ab2665b18c9ad68df28a3976855cfde08a6a04a..55047cc489d00f102fdfe145e02096ae3bc02707 100644
(file)
--- a/
setup.py
+++ b/
setup.py
@@
-1,10
+1,17
@@
#!/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)
-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(
readme = readme_file.read()
setup(
@@
-20,7
+27,7
@@
setup(
url='https://wylark.com/munter',
packages=['munter'],
package_dir={'munter': 'munter'},
url='https://wylark.com/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',