blob: ca44e100e427ecf5424bacb84d5eb6f5c712f231 [file] [log] [blame]
Keun Soo Yim3b10a5a2017-12-22 19:03:44 -08001# Copyright (c) 2010-2017 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
23# Six is a dependency of setuptools, so using setuptools creates a
24# circular dependency when building a Python stack from source. We
25# therefore allow falling back to distutils to install six.
26try:
27 from setuptools import setup
28except ImportError:
29 from distutils.core import setup
30
31import six
32
33six_classifiers = [
34 "Programming Language :: Python :: 2",
35 "Programming Language :: Python :: 3",
36 "Intended Audience :: Developers",
37 "License :: OSI Approved :: MIT License",
38 "Topic :: Software Development :: Libraries",
39 "Topic :: Utilities",
40]
41
42with open("README.rst", "r") as fp:
43 six_long_description = fp.read()
44
45setup(name="six",
46 version=six.__version__,
47 author="Benjamin Peterson",
48 author_email="benjamin@python.org",
49 url="http://pypi.python.org/pypi/six/",
50 tests_require=["pytest"],
51 py_modules=["six"],
52 description="Python 2 and 3 compatibility utilities",
53 long_description=six_long_description,
54 license="MIT",
55 classifiers=six_classifiers
56 )