Skip to content
Myr

setup.py

This file

Path

setup.py

28 lines · 717 bytes · Python

Last changed by

Added __version__ attributeArmin Ronacherbefore adoption0df815a

History of this file

Take it

1import re2import ast3from setuptools import setup456_version_re = re.compile(r'__version__\s+=\s+(.*)')789with open('click/__init__.py', 'rb') as f:10    version = str(ast.literal_eval(_version_re.search(11        f.read().decode('utf-8')).group(1)))121314setup(15    name='click',16    author='Armin Ronacher',17    author_email='armin.ronacher@active-4.com',18    version=version,19    url='http://github.com/mitsuhiko/click',20    packages=['click'],21    description='A simple wrapper around optparse for '22                'powerful command line utilities.',23    classifiers=[24        'License :: OSI Approved :: BSD License',25        'Programming Language :: Python',26        'Programming Language :: Python :: 3',27    ],28)