Skip to content
Myr

setup.py

This file

Path

setup.py

53 lines · 1.4 KiB · Python

Last changed by

Merge branch 'release/0.3.2' into developKenneth Reitzbefore adoptionea86602

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

lines 7–10why, one step back
7
8from distutils.core import setup910

Merge branch 'release/0.3.2' into developKenneth Reitzbefore adoptionea86602

line 11why, one step back
11

easy setup.pyKenneth Reitzbefore adoption0477018

line 12why, one step back
12if sys.argv[-1] == "publish":

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 13–14why, one step back
13 os.system("python setup.py sdist upload")
14 sys.exit()

easy setup.pyKenneth Reitzbefore adoption0477018

line 15why, one step back
15

Merge branch 'release/0.2.1'Kenneth Reitzbefore adoptione09efc4

line 16why, one step back
16if sys.argv[-1] == "test":

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 17–18why, one step back
17 os.system("python test_requests.py")
18 sys.exit()

Merge branch 'release/0.3.2' into developKenneth Reitzbefore adoptionea86602

line 19why, one step back
19

easy setup.pyKenneth Reitzbefore adoption0477018

lines 20–21why, one step back
20required = []
21

Merge branch 'release/0.3.2' into developKenneth Reitzbefore adoptionea86602

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

easy setup.pyKenneth Reitzbefore adoption0477018

lines 24–25why, one step back
24
25setup(

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 28–41why, one step back
28 description='Awesome Python HTTP Library that\'s actually usable.',
29 long_description=open('README.rst').read() + '\n\n' +30 open('HISTORY.rst').read(),31 author='Kenneth Reitz',32 author_email='me@kennethreitz.com',33 url='https://github.com/kennethreitz/requests',34 packages= [35 'requests',36 'requests.packages',37 'requests.packages.poster'38 ],39 install_requires=required,40 license='ISC',41 classifiers=(

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 43–46why, one step back
43 'Intended Audience :: Developers',
44 'Natural Language :: English',45 'License :: OSI Approved :: ISC License (ISCL)',46 'Programming Language :: Python',

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

easy setup.pyKenneth Reitzbefore adoption0477018

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 49–52why, one step back
49 'Programming Language :: Python :: 2.7',
50 # 'Programming Language :: Python :: 3.0',51 # 'Programming Language :: Python :: 3.1',52 ),

easy setup.pyKenneth Reitzbefore adoption0477018

line 53why, one step back
53)