setup.py
This file
Path
setup.py
67 lines · 1.8 KiB · Python
Last changed by
blahKenneth Reitzbefore adoptionbcbc1be
History of this fileTake it
The walk stopped after 200 commits: lines older than f3ba022 point at it.
Merge branch 'streaming' of https://github.com/RonnyPfannschmidt/requests into developKenneth Reitzbefore adoptionf3ba022
lines 1–6why, one step back1#!/usr/bin/env python2# -*- coding: utf-8 -*-34import os5import sys6import requestsonly do oreos for 2Kenneth Reitzbefore adoptione695941
line 7why, one step back7from requests.compat import is_py3, is_py2Merge branch 'streaming' of https://github.com/RonnyPfannschmidt/requests into developKenneth Reitzbefore adoptionf3ba022
lines 8–23why, one step back89try:10 from setuptools import setup11except ImportError:12 from distutils.core import setup13141516if sys.argv[-1] == 'publish':17 os.system('python setup.py sdist upload')18 sys.exit()1920if sys.argv[-1] == 'test':21 os.system('python test_requests.py')22 sys.exit()23new certifiKenneth Reitzbefore adoption38c2532
line 24why, one step back24required = ['certifi>=0.0.7',]only do oreos for 2Kenneth Reitzbefore adoptione695941
lines 25–32why, one step back25packages = [26 'requests',27 'requests.packages',28 'requests.packages.urllib3',29 'requests.packages.urllib3.packages',30 'requests.packages.urllib3.packages.ssl_match_hostname',31 'requests.packages.urllib3.packages.mimetools_choose_boundary',32]Merge branch 'streaming' of https://github.com/RonnyPfannschmidt/requests into developKenneth Reitzbefore adoptionf3ba022
line 33why, one step back33reqs fixesKenneth Reitzbefore adoption9fd2d07
lines 34–37why, one step back34if is_py3:35 required.append('chardet2')36else:37 required.append('chardet>=1.0.0')only do oreos for 2Kenneth Reitzbefore adoptione695941
line 38why, one step back38 packages.append('requests.packages.oreos')Merge branch 'streaming' of https://github.com/RonnyPfannschmidt/requests into developKenneth Reitzbefore adoptionf3ba022
line 39why, one step back39reqs fixesKenneth Reitzbefore adoption9fd2d07
line 40why, one step back40Merge branch 'streaming' of https://github.com/RonnyPfannschmidt/requests into developKenneth Reitzbefore adoptionf3ba022
lines 41–49why, one step back41setup(42 name='requests',43 version=requests.__version__,44 description='Python HTTP for Humans.',45 long_description=open('README.rst').read() + '\n\n' +46 open('HISTORY.rst').read(),47 author='Kenneth Reitz',48 author_email='me@kennethreitz.com',49 url='http://python-requests.org',only do oreos for 2Kenneth Reitzbefore adoptione695941
line 50why, one step back50 packages=packages,Merge branch 'streaming' of https://github.com/RonnyPfannschmidt/requests into developKenneth Reitzbefore adoptionf3ba022
lines 51–53why, one step back51 package_data={'': ['LICENSE', 'NOTICE']},52 include_package_data=True,53 install_requires=required,blahKenneth Reitzbefore adoptionbcbc1be
line 54why, one step back54 license=open("LICENSE").read(),Merge branch 'streaming' of https://github.com/RonnyPfannschmidt/requests into developKenneth Reitzbefore adoptionf3ba022
lines 55–62why, one step back55 classifiers=(56 'Development Status :: 5 - Production/Stable',57 'Intended Audience :: Developers',58 'Natural Language :: English',59 'License :: OSI Approved :: ISC License (ISCL)',60 'Programming Language :: Python',61 'Programming Language :: Python :: 2.6',62 'Programming Language :: Python :: 2.7',PYTHON 3Kenneth Reitzbefore adoption8493d83
line 63why, one step back63 'Programming Language :: Python :: 3',reqs fixesKenneth Reitzbefore adoption9fd2d07
lines 64–65why, one step back64 'Programming Language :: Python :: 3.0',65 'Programming Language :: Python :: 3.1',Merge branch 'streaming' of https://github.com/RonnyPfannschmidt/requests into developKenneth Reitzbefore adoptionf3ba022
lines 66–67why, one step back66 ),67)