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

The walk stopped after 200 commits: lines older than 12f50b4 point at it.

Added __version__ attributeArmin Ronacherbefore adoption0df815a

lines 1–2why, one step back
1import re
2import ast

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

lines 3–5why, one step back
3from setuptools import setup
45

Added __version__ attributeArmin Ronacherbefore adoption0df815a

lines 6–13why, one step back
6_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)))1213

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

lines 14–17why, one step back
14setup(
15 name='click',16 author='Armin Ronacher',17 author_email='armin.ronacher@active-4.com',

Added __version__ attributeArmin Ronacherbefore adoption0df815a

line 18why, one step back
18 version=version,

Added changelog entry and docsArmin Ronacherbefore adoption12f50b4

lines 19–28why, one step back
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)