Skip to content
Myr

setup.py

This file

Path

setup.py

66 lines · 1.8 KiB · Python

Last changed by

reqs fixesKenneth Reitzbefore adoption9fd2d07

History of this file

Take it

The walk stopped after 200 commits: lines older than 2384286 point at it.

readme updateKenneth Reitzbefore adoption2384286

lines 1–5why, one step back
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-34import os5import sys

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

line 6why, one step back
6import requests

reqs fixesKenneth Reitzbefore adoption9fd2d07

line 7why, one step back
7from requests.compat import is_py3

readme updateKenneth Reitzbefore adoption2384286

line 8why, one step back
8

Merge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7

lines 9–12why, one step back
9try:
10 from setuptools import setup11except ImportError:12 from distutils.core import setup

readme updateKenneth Reitzbefore adoption2384286

lines 13–14why, one step back
13
14

Merge branch 'release/0.3.2'Kenneth Reitzbefore adoption642c667

line 15why, one step back
15

Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d

lines 16–17why, one step back
16if 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 back
18 sys.exit()

readme updateKenneth Reitzbefore adoption2384286

line 19why, one step back
19

Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d

lines 20–21why, one step back
20if sys.argv[-1] == 'test':
21 os.system('python test_requests.py')

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

line 22why, one step back
22 sys.exit()

Merge branch 'release/0.3.2'Kenneth Reitzbefore adoption642c667

line 23why, one step back
23

reqs fixesKenneth Reitzbefore adoption9fd2d07

line 24why, one step back
24required = ['certifi>=0.0.4',]

readme updateKenneth Reitzbefore adoption2384286

line 25why, one step back
25

reqs fixesKenneth Reitzbefore adoption9fd2d07

lines 26–29why, one step back
26if is_py3:
27 required.append('chardet2')28else:29 required.append('chardet>=1.0.0')

readme updateKenneth Reitzbefore adoption2384286

line 30why, one step back
30

reqs fixesKenneth Reitzbefore adoption9fd2d07

line 31why, one step back
31

readme updateKenneth Reitzbefore adoption2384286

line 32why, one step back
32setup(

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

line 33why, one step back
33 name='requests',

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

line 34why, one step back
34 version=requests.__version__,

Merge branch 'release/0.5.1'Kenneth Reitzbefore adoption95ba6fc

line 35why, one step back
35 description='Python HTTP for Humans.',

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 36–39why, one step back
36 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 back
40 url='http://python-requests.org',

Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d

line 41why, one step back
41 packages=[

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 42–43why, one step back
42 'requests',
43 'requests.packages',

Merge branch 'develop'Kenneth Reitzbefore adoptiond1dfa02

line 44why, one step back
44 'requests.packages.urllib3',

packagingKenneth Reitzbefore adoption082f4d8

line 45why, one step back
45 'requests.packages.urllib3.packages',

ssl hostnameKenneth Reitzbefore adoptioncfb1a47

line 46why, one step back
46 'requests.packages.urllib3.packages.ssl_match_hostname',

reqs fixesKenneth Reitzbefore adoption9fd2d07

lines 47–48why, one step back
47 'requests.packages.urllib3.packages.mimetools_choose_boundary',
48 'requests.packages.urllib3.packages.six',

Merge branch 'develop'Kenneth Reitzbefore adoptiond1dfa02

line 49why, one step back
49 'requests.packages.oreos'

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

line 50why, one step back
50 ],

Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d

lines 51–52why, one step back
51 package_data={'': ['LICENSE', 'NOTICE']},
52 include_package_data=True,

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 53–55why, one step back
53 install_requires=required,
54 license='ISC',55 classifiers=(

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

line 56why, one step back
56 'Development Status :: 5 - Production/Stable',

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 57–60why, one step back
57 'Intended Audience :: Developers',
58 'Natural Language :: English',59 'License :: OSI Approved :: ISC License (ISCL)',60 'Programming Language :: Python',

readme updateKenneth Reitzbefore adoption2384286

line 61why, one step back
61 'Programming Language :: Python :: 2.6',

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

line 62why, one step back
62 'Programming Language :: Python :: 2.7',

reqs fixesKenneth Reitzbefore adoption9fd2d07

lines 63–64why, one step back
63 'Programming Language :: Python :: 3.0',
64 'Programming Language :: Python :: 3.1',

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

line 65why, one step back
65 ),

readme updateKenneth Reitzbefore adoption2384286

line 66why, one step back
66)