diff --git a/setup.py b/setup.py index 2e7bb52..1fd930c 100644 --- a/setup.py +++ b/setup.py @@ -15,29 +15,8 @@ # # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . -import ast -import io import os -import re -from setuptools import setup, find_packages - - -class VersionFinder(ast.NodeVisitor): - - def __init__(self): - self.version = None - - def visit_Assign(self, node): - if node.targets[0].id == 'version': - self.version = node.value.s - - -def read_version(): - """Read version from httpretty/version.py without loading any files""" - finder = VersionFinder() - finder.visit( - ast.parse(local_file('couleur', '__init__.py').encode('utf-8'))) - return finder.version +from setuptools import setup def get_packages(): @@ -50,10 +29,13 @@ def get_packages(): return packages -setup(name='couleur', - version=read_version(), - description=(u'ANSI terminal tool for python, colored shell and other ' - 'handy fancy features'), +setup( + name='couleur', + version='0.6.1', + description=( + 'ANSI terminal tool for python, colored shell and other ' + 'handy fancy features' + ), author='Gabriel Falcao', author_email='gabriel@nacaolivre.org', url='http://github.com/gabrielfalcao/couleur',