From 890edcbd3491952112cb4b6ca4f339eeb5011005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Falc=C3=A3o?= Date: Sun, 13 Dec 2015 07:48:39 -0200 Subject: [PATCH] fixing install --- setup.py | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) 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',