Skip to content
Myr

setup.py

This file

Path

setup.py

61 lines · 1.8 KiB · Python

Last changed by

v0.13.2Kenneth Reitzbefore adoptionfb2ce4f

History of this file

Take it

1#!/usr/bin/env python23import os4import sys56import requests78try:9    from setuptools import setup10except ImportError:11    from distutils.core import setup1213if sys.argv[-1] == 'publish':14    os.system('python setup.py sdist upload')15    sys.exit()1617packages = [18    'requests',19    'requests.packages',20    'requests.packages.oauthlib',21    'requests.packages.oauthlib.oauth1',22    'requests.packages.oauthlib.oauth1.rfc5849',23    'requests.packages.oauthlib.oauth2',24    'requests.packages.oauthlib.oauth2.draft25',25    'requests.packages.chardet',26    'requests.packages.chardet2',27    'requests.packages.urllib3',28    'requests.packages.urllib3.packages',29    'requests.packages.urllib3.packages.ssl_match_hostname'30]3132requires = []3334setup(35    name='requests',36    version=requests.__version__,37    description='Python HTTP for Humans.',38    long_description=open('README.rst').read() + '\n\n' +39                     open('HISTORY.rst').read(),40    author='Kenneth Reitz',41    author_email='me@kennethreitz.com',42    url='http://python-requests.org',43    packages=packages,44    package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},45    package_dir={'requests': 'requests'},46    include_package_data=True,47    install_requires=requires,48    license=open('LICENSE').read(),49    classifiers=(50        'Development Status :: 5 - Production/Stable',51        'Intended Audience :: Developers',52        'Natural Language :: English',53        'License :: OSI Approved :: ISC License (ISCL)',54        'Programming Language :: Python',55        'Programming Language :: Python :: 2.6',56        'Programming Language :: Python :: 2.7',57        'Programming Language :: Python :: 3',58        'Programming Language :: Python :: 3.0',59        'Programming Language :: Python :: 3.1',60    ),61)