Skip to content
Myr

setup.py

This file

Path

setup.py

65 lines · 1.7 KiB · Python

Last changed by

cchch changesKenneth Reitzbefore adoption1fb4bd8

History of this file

Take it

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

temp "tests"Kenneth Reitzbefore adoption49f915f

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

temp "tests"Kenneth Reitzbefore adoption49f915f

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

temp "tests"Kenneth Reitzbefore adoption49f915f

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()

temp "tests"Kenneth Reitzbefore adoption49f915f

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

new certifiKenneth Reitzbefore adoption38c2532

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

temp "tests"Kenneth Reitzbefore adoption49f915f

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')

temp "tests"Kenneth Reitzbefore adoption49f915f

line 30why, one step back
30

reqs fixesKenneth Reitzbefore adoption9fd2d07

line 31why, one step back
31

temp "tests"Kenneth Reitzbefore adoption49f915f

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

line 47why, one step back
47 'requests.packages.urllib3.packages.mimetools_choose_boundary',

Merge branch 'develop'Kenneth Reitzbefore adoptiond1dfa02

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

line 49why, one step back
49 ],

Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 56–59why, one step back
56 '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 back
60 'Programming Language :: Python :: 2.6',

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

reqs fixesKenneth Reitzbefore adoption9fd2d07

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

line 64why, one step back
64 ),

temp "tests"Kenneth Reitzbefore adoption49f915f

line 65why, one step back
65)