1# Copyright (c) 2010-2015 Benjamin Peterson 2# 3# Permission is hereby granted, free of charge, to any person obtaining a copy 4# of this software and associated documentation files (the "Software"), to deal 5# in the Software without restriction, including without limitation the rights 6# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7# copies of the Software, and to permit persons to whom the Software is 8# furnished to do so, subject to the following conditions: 9# 10# The above copyright notice and this permission notice shall be included in all 11# copies or substantial portions of the Software. 12# 13# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19# SOFTWARE. 20 21from __future__ import with_statement 22 23try: 24 from setuptools import setup 25except ImportError: 26 from distutils.core import setup 27 28import six 29 30six_classifiers = [ 31 "Programming Language :: Python :: 2", 32 "Programming Language :: Python :: 3", 33 "Intended Audience :: Developers", 34 "License :: OSI Approved :: MIT License", 35 "Topic :: Software Development :: Libraries", 36 "Topic :: Utilities", 37] 38 39with open("README", "r") as fp: 40 six_long_description = fp.read() 41 42setup(name="six", 43 version=six.__version__, 44 author="Benjamin Peterson", 45 author_email="benjamin@python.org", 46 url="http://pypi.python.org/pypi/six/", 47 py_modules=["six"], 48 description="Python 2 and 3 compatibility utilities", 49 long_description=six_long_description, 50 license="MIT", 51 classifiers=six_classifiers 52 ) 53