1# Copyright (c) 2010-2020 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    "Development Status :: 5 - Production/Stable",
35    "Programming Language :: Python :: 2",
36    "Programming Language :: Python :: 3",
37    "Intended Audience :: Developers",
38    "License :: OSI Approved :: MIT License",
39    "Topic :: Software Development :: Libraries",
40    "Topic :: Utilities",
41]
42
43with open("README.rst", "r") as fp:
44    six_long_description = fp.read()
45
46setup(name="six",
47      version=six.__version__,
48      author="Benjamin Peterson",
49      author_email="[email protected]",
50      url="https://github.com/benjaminp/six",
51      tests_require=["pytest"],
52      py_modules=["six"],
53      description="Python 2 and 3 compatibility utilities",
54      long_description=six_long_description,
55      license="MIT",
56      classifiers=six_classifiers,
57      python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
58      )
59