setup.py
This file
Path
setup.py
66 lines · 1.7 KiB · Python
Last changed by
PYTHON 3Kenneth Reitzbefore adoption8493d83
History of this fileTake it
The walk stopped after 200 commits: lines older than 49f915f point at it.
temp "tests"Kenneth Reitzbefore adoption49f915f
lines 1–5why, one step back1#!/usr/bin/env python2# -*- coding: utf-8 -*-34import os5import sysMerge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
line 6why, one step back6import requestsreqs fixesKenneth Reitzbefore adoption9fd2d07
line 7why, one step back7from requests.compat import is_py3temp "tests"Kenneth Reitzbefore adoption49f915f
line 8why, one step back8Merge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7
lines 9–12why, one step back9try:10 from setuptools import setup11except ImportError:12 from distutils.core import setuptemp "tests"Kenneth Reitzbefore adoption49f915f
lines 13–14why, one step back1314Merge branch 'release/0.3.2'Kenneth Reitzbefore adoption642c667
line 15why, one step back15Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d
lines 16–17why, one step back16if sys.argv[-1] == 'publish':17 os.system('python setup.py sdist upload')Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
line 18why, one step back18 sys.exit()temp "tests"Kenneth Reitzbefore adoption49f915f
line 19why, one step back19Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d
lines 20–21why, one step back20if sys.argv[-1] == 'test':21 os.system('python test_requests.py')Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
line 22why, one step back22 sys.exit()Merge branch 'release/0.3.2'Kenneth Reitzbefore adoption642c667
line 23why, one step back23new certifiKenneth Reitzbefore adoption38c2532
line 24why, one step back24required = ['certifi>=0.0.7',]temp "tests"Kenneth Reitzbefore adoption49f915f
line 25why, one step back25reqs fixesKenneth Reitzbefore adoption9fd2d07
lines 26–29why, one step back26if is_py3:27 required.append('chardet2')28else:29 required.append('chardet>=1.0.0')temp "tests"Kenneth Reitzbefore adoption49f915f
line 30why, one step back30reqs fixesKenneth Reitzbefore adoption9fd2d07
line 31why, one step back31temp "tests"Kenneth Reitzbefore adoption49f915f
line 32why, one step back32setup(Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
line 33why, one step back33 name='requests',Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
line 34why, one step back34 version=requests.__version__,Merge branch 'release/0.5.1'Kenneth Reitzbefore adoption95ba6fc
line 35why, one step back35 description='Python HTTP for Humans.',Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 36–39why, one step back36 long_description=open('README.rst').read() + '\n\n' +37 open('HISTORY.rst').read(),38 author='Kenneth Reitz',39 author_email='me@kennethreitz.com',Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 40why, one step back40 url='http://python-requests.org',Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d
line 41why, one step back41 packages=[Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 42–43why, one step back42 'requests',43 'requests.packages',Merge branch 'develop'Kenneth Reitzbefore adoptiond1dfa02
line 44why, one step back44 'requests.packages.urllib3',packagingKenneth Reitzbefore adoption082f4d8
line 45why, one step back45 'requests.packages.urllib3.packages',ssl hostnameKenneth Reitzbefore adoptioncfb1a47
line 46why, one step back46 'requests.packages.urllib3.packages.ssl_match_hostname',reqs fixesKenneth Reitzbefore adoption9fd2d07
line 47why, one step back47 'requests.packages.urllib3.packages.mimetools_choose_boundary',Merge branch 'develop'Kenneth Reitzbefore adoptiond1dfa02
line 48why, one step back48 'requests.packages.oreos'Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
line 49why, one step back49 ],Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d
lines 50–51why, one step back50 package_data={'': ['LICENSE', 'NOTICE']},51 include_package_data=True,Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 52–54why, one step back52 install_requires=required,53 license='ISC',54 classifiers=(Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
line 55why, one step back55 'Development Status :: 5 - Production/Stable',Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 56–59why, one step back56 'Intended Audience :: Developers',57 'Natural Language :: English',58 'License :: OSI Approved :: ISC License (ISCL)',59 'Programming Language :: Python',temp "tests"Kenneth Reitzbefore adoption49f915f
line 60why, one step back60 'Programming Language :: Python :: 2.6',Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
line 61why, one step back61 'Programming Language :: Python :: 2.7',PYTHON 3Kenneth Reitzbefore adoption8493d83
line 62why, one step back62 'Programming Language :: Python :: 3',reqs fixesKenneth Reitzbefore adoption9fd2d07
lines 63–64why, one step back63 'Programming Language :: Python :: 3.0',64 'Programming Language :: Python :: 3.1',Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
line 65why, one step back65 ),temp "tests"Kenneth Reitzbefore adoption49f915f
line 66why, one step back66)