1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 22:04:44 +00:00

better handle import and move version to its own file

This commit is contained in:
deadc0de6
2018-07-17 21:35:34 +02:00
parent 5293acadd4
commit b4e7e775ba
4 changed files with 17 additions and 20 deletions

View File

@@ -13,7 +13,10 @@ except ImportError:
print('\n[WARNING] pypandoc not found, could not convert \"{}\"\n'.format(readme))
read_readme = lambda f: open(f, 'r').read()
VERSION = dotdrop.__version__
try:
VERSION = open('dotdrop/version.py', "rt").read()
except:
raise('cannot find version module')
REQUIRES_PYTHON = '>=3'
setup(