From 9188de595ff2e6ee9f06469dd4d708510930eafa Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Fri, 11 Jul 2014 14:34:37 -0400 Subject: Cleanup imports and move __version__ to __init__.py --- setup.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'setup.py') 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', -- cgit v1.2.3