Skip to content
Myr

setup.py

This file

Path

setup.py

52 lines · 1.4 KiB · Python

Last changed by

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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.9.4'Kenneth Reitzbefore adoption952970f

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–19why, one step back
17 os.system("python test_requests.py")
18 sys.exit()19

easy setup.pyKenneth Reitzbefore adoption0477018

lines 20–24why, one step back
20required = []
2122# if python > 2.6, require simplejson2324setup(

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

easy setup.pyKenneth Reitzbefore adoption0477018

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

easy setup.pyKenneth Reitzbefore adoption0477018

line 52why, one step back
52)