Skip to content
Myr

Added __version__ attribute

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent bda39db · Browse files · 2 files+14 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+14 added−1 removed

  • other:+14 added−1 removed

2 files+14 added−1 removed

modified:click/__init__.py+3 added
76 unmodified lines
7778 # Parsing79 'OptionParser',80]818283__version__ = '2.0-dev'
modified:setup.py+11 added-1 removed
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',8 version='2.0-dev',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.',
6 unmodified lines