setup.py
This file
Path
setup.py
39 lines · 1.2 KiB · Python
Last changed by
Merge pull request #976 from lepture/patch-versionsDavid Lordbefore adoption6149432
History of this fileTake 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 version=version,17 url='https://www.palletsprojects.com/p/click/',18 author='Armin Ronacher',19 author_email='armin.ronacher@active-4.com',20 maintainer='Pallets team',21 maintainer_email='contact@palletsprojects.com',22 packages=['click'],23 description='A simple wrapper around optparse for '24 'powerful command line utilities.',25 license='BSD',26 classifiers=[27 'Development Status :: 5 - Production/Stable',28 'Intended Audience :: Developers',29 'License :: OSI Approved :: BSD License',30 'Operating System :: OS Independent'31 'Programming Language :: Python',32 'Programming Language :: Python :: 2',33 'Programming Language :: Python :: 2.7',34 'Programming Language :: Python :: 3',35 'Programming Language :: Python :: 3.4',36 'Programming Language :: Python :: 3.5',37 'Programming Language :: Python :: 3.6',38 ],39)