Skip to content
Myr

setup.py

This file

Path

setup.py

28 lines · 715 bytes · Python

Last changed by

Merge pull request #550 from quobit/pallets-reallocationMarkus Unterwaditzerbefore adoption2489a7e

History of this file

Take it

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

Disallow empty options to help users find options that should be arguments.Armin Ronacherbefore adoption1646647

lines 1–18why, one step back
1import re
2import 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,

Merge pull request #550 from quobit/pallets-reallocationMarkus Unterwaditzerbefore adoption2489a7e

line 19why, one step back
19 url='http://github.com/pallets/click',

Disallow empty options to help users find options that should be arguments.Armin Ronacherbefore adoption1646647

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