blob: d90958b69d399aeda2c298b89843cbb760d4e164 [file] [log] [blame]
Benjamin Petersona4d9af92020-01-06 18:42:54 -08001# Copyright (c) 2010-2020 Benjamin Peterson
Benjamin Peterson78833c72015-10-20 21:34:23 -07002#
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
Benjamin Peterson5b59a782014-01-04 18:29:44 -060021from __future__ import with_statement
22
Eli Schwartz73859122019-11-04 22:02:10 -050023# 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
Benjamin Petersondfc800b2010-11-20 15:52:32 -060030
31import six
32
33six_classifiers = [
Jon Dufresne5d0bb5b2018-01-06 12:31:26 -080034 "Development Status :: 5 - Production/Stable",
Benjamin Petersondfc800b2010-11-20 15:52:32 -060035 "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
Sviatoslav Sydorenkoc28fa792017-08-27 06:45:36 +030043with open("README.rst", "r") as fp:
Benjamin Petersondfc800b2010-11-20 15:52:32 -060044 six_long_description = fp.read()
Benjamin Petersondfc800b2010-11-20 15:52:32 -060045
46setup(name="six",
47 version=six.__version__,
48 author="Benjamin Peterson",
49 author_email="benjamin@python.org",
Benjamin Peterson8f261102018-07-07 11:51:00 -070050 url="https://github.com/benjaminp/six",
Thomas Bechtold490148d2017-03-01 08:11:00 +010051 tests_require=["pytest"],
Benjamin Petersondfc800b2010-11-20 15:52:32 -060052 py_modules=["six"],
53 description="Python 2 and 3 compatibility utilities",
54 long_description=six_long_description,
Benjamin Peterson196bfb92014-01-04 23:37:35 -060055 license="MIT",
Jon Dufresne34506dc2018-01-21 23:08:50 -080056 classifiers=six_classifiers,
Hugo van Kemenadeac4bdc52020-01-08 04:13:50 +020057 python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
Benjamin Petersondfc800b2010-11-20 15:52:32 -060058 )