Skip to content
Myr

setup.py

This file

Path

setup.py

64 lines · 1.7 KiB · Python

Last changed by

chardetKenneth Reitzbefore adoption47e96b8

History of this file

Take it

easy setup.pyKenneth Reitzbefore adoption0477018

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

easy setup.pyKenneth Reitzbefore adoption0477018

line 7why, one step back
7

Merge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7

lines 8–11why, one step back
8try:
9 from setuptools import setup10except ImportError:11 from distutils.core import setup

easy setup.pyKenneth Reitzbefore adoption0477018

lines 12–13why, one step back
12
13

Merge branch 'release/0.3.2'Kenneth Reitzbefore adoption642c667

line 14why, one step back
14

Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d

lines 15–16why, one step back
15if sys.argv[-1] == 'publish':
16 os.system('python setup.py sdist upload')

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

easy setup.pyKenneth Reitzbefore adoption0477018

line 18why, one step back
18

Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.3.2'Kenneth Reitzbefore adoption642c667

line 22why, one step back
22

certifiKenneth Reitzbefore adoption31d495f

line 23why, one step back
23required = [

chardetKenneth Reitzbefore adoption47e96b8

lines 24–25why, one step back
24 'certifi>=0.0.4',
25 'chardet>=1.0.0'

certifiKenneth Reitzbefore adoption31d495f

line 26why, one step back
26]

easy setup.pyKenneth Reitzbefore adoption0477018

line 27why, one step back
27

Merge branch 'release/0.3.2'Kenneth Reitzbefore adoption642c667

lines 28–29why, one step back
28if sys.version_info[:2] < (2,6):
29 required.append('simplejson')

easy setup.pyKenneth Reitzbefore adoption0477018

lines 30–31why, one step back
30
31setup(

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

Merge branch 'release/0.5.1'Kenneth Reitzbefore adoption95ba6fc

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 35–38why, one step back
35 long_description=open('README.rst').read() + '\n\n' +
36 open('HISTORY.rst').read(),37 author='Kenneth Reitz',38 author_email='me@kennethreitz.com',

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 39why, one step back
39 url='http://python-requests.org',

Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d

line 40why, one step back
40 packages=[

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'develop'Kenneth Reitzbefore adoptiond1dfa02

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

packagingKenneth Reitzbefore adoption082f4d8

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

ssl hostnameKenneth Reitzbefore adoptioncfb1a47

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

Merge branch 'develop'Kenneth Reitzbefore adoptiond1dfa02

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

line 47why, one step back
47 ],

Merge branch 'develop'Kenneth Reitzbefore adoption8c1fd5d

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

line 58why, one step back
58 'Programming Language :: Python :: 2.5',

easy setup.pyKenneth Reitzbefore adoption0477018

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 60–63why, one step back
60 'Programming Language :: Python :: 2.7',
61 # 'Programming Language :: Python :: 3.0',62 # 'Programming Language :: Python :: 3.1',63 ),

easy setup.pyKenneth Reitzbefore adoption0477018

line 64why, one step back
64)