Skip to content
Myr

setup.py

This file

Path

setup.py

44 lines · 1.4 KiB · Python

Last changed by

Merge pull request #990 from dougharris/click-readmeDavid Lordbefore adoptiondf1a8f5

History of this file

Take it

1#!/usr/bin/env python2# -*- coding: utf-8 -*-3import io4import re5from setuptools import setup678_version_re = re.compile(r'__version__\s+=\s+(.*)')91011with io.open('README.rst', 'rt', encoding='utf8') as f:12    readme = f.read()1314with io.open('click/__init__.py', 'rt', encoding='utf8') as f:15    version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)1617setup(18    name='click',19    version=version,20    url='https://www.palletsprojects.com/p/click/',21    author='Armin Ronacher',22    author_email='armin.ronacher@active-4.com',23    maintainer='Pallets team',24    maintainer_email='contact@palletsprojects.com',25    long_description=readme,26    packages=['click'],27    description='A simple wrapper around optparse for '28                'powerful command line utilities.',29    license='BSD',30    classifiers=[31        'Development Status :: 5 - Production/Stable',32        'Intended Audience :: Developers',33        'License :: OSI Approved :: BSD License',34        'Operating System :: OS Independent'35        'Programming Language :: Python',36        'Programming Language :: Python :: 2',37        'Programming Language :: Python :: 2.7',38        'Programming Language :: Python :: 3',39        'Programming Language :: Python :: 3.4',40        'Programming Language :: Python :: 3.5',41        'Programming Language :: Python :: 3.6',42    ],43    python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",44)