fixing install

This commit is contained in:
Gabriel Falcão
2015-12-13 07:48:39 -02:00
parent 7ae39b078b
commit 890edcbd34

View File

@@ -15,29 +15,8 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
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',