diff options
author | Jon Bernard <jbernard@tuxion.com> | 2014-07-11 14:34:37 -0400 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2014-07-11 14:47:14 -0400 |
commit | 9188de595ff2e6ee9f06469dd4d708510930eafa (patch) | |
tree | 86e9877347a51bf2e31d427264998208a0032c81 /setup.py | |
parent | b8a9784d79ab3a0ddfe8a59908f767dda2dc5ea2 (diff) | |
download | dotfiles-9188de595ff2e6ee9f06469dd4d708510930eafa.tar.gz dotfiles-9188de595ff2e6ee9f06469dd4d708510930eafa.tar.bz2 dotfiles-9188de595ff2e6ee9f06469dd4d708510930eafa.zip |
Cleanup imports and move __version__ to __init__.py
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -1,21 +1,13 @@ -import re -import ast +# -*- coding: utf-8 -*- from setuptools import setup - - -_version_re = re.compile(r'__version__\s+=\s+(.*)') - - -with open('dotfiles/core.py', 'rb') as f: - version = str(ast.literal_eval(_version_re.search( - f.read().decode('utf-8')).group(1))) +from dotfiles import __version__ setup( name='dotfiles', + version=__version__, author='Jon Bernard', author_email='jbernard@tuxion.com', - version=version, url='https://github.com/jbernard/dotfiles', packages=['dotfiles'], description='Easily manage your dotfiles', |