Home | History | Annotate | Download | only in futures
      1 #!/usr/bin/env python
      2 # coding: utf-8
      3 from warnings import warn
      4 import os.path
      5 import sys
      6 
      7 if 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 
     12 extras = {}
     13 try:
     14     from setuptools import setup
     15     extras['zip_safe'] = False
     16 except ImportError:
     17     from distutils.core import setup
     18 
     19 here = os.path.dirname(__file__)
     20 with open(os.path.join(here, 'README.rst')) as f:
     21     readme = f.read()
     22 
     23 setup(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 (at] sweetapp.com',
     29       maintainer=u'Alex Grnholm',
     30       maintainer_email='alex.gronholm (at] 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