summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2014-07-11 14:34:37 -0400
committerGravatar Jon Bernard <jbernard@tuxion.com> 2014-07-11 14:47:14 -0400
commit9188de595ff2e6ee9f06469dd4d708510930eafa (patch)
tree86e9877347a51bf2e31d427264998208a0032c81 /setup.py
parentb8a9784d79ab3a0ddfe8a59908f767dda2dc5ea2 (diff)
downloaddotfiles-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.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/setup.py b/setup.py
index 9c60ef7..1b295d5 100644
--- a/setup.py
+++ b/setup.py
@@ -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',