1#!/usr/bin/env python 2# coding: utf-8 3from warnings import warn 4import os.path 5import sys 6 7if sys.version_info[0] > 2: 8 warn('This backport is meant only for Python 2.\n' 9 'Python 3 users do not need it, as the concurrent.futures ' 10 'package is available in the standard library.') 11 12extras = {} 13try: 14 from setuptools import setup 15 extras['zip_safe'] = False 16except ImportError: 17 from distutils.core import setup 18 19here = os.path.dirname(__file__) 20with open(os.path.join(here, 'README.rst')) as f: 21 readme = f.read() 22 23setup(name='futures', 24 version='3.2.0', 25 description='Backport of the concurrent.futures package from Python 3', 26 long_description=readme, 27 author='Brian Quinlan', 28 author_email='brian@sweetapp.com', 29 maintainer=u'Alex Grönholm', 30 maintainer_email='alex.gronholm@nextday.fi', 31 url='https://github.com/agronholm/pythonfutures', 32 packages=['concurrent', 'concurrent.futures'], 33 python_requires='>=2.6, <3', 34 license='PSF', 35 classifiers=['License :: OSI Approved :: Python Software Foundation License', 36 'Development Status :: 5 - Production/Stable', 37 'Intended Audience :: Developers', 38 'Programming Language :: Python :: 2.6', 39 'Programming Language :: Python :: 2.7', 40 'Programming Language :: Python :: 2 :: Only'], 41 **extras 42 ) 43