Skip to content
Myr

setup.py

This file

Path

setup.py

56 lines · 1.4 KiB · Python

Last changed by

Added setuptools management to setup.py to allow to install in develop modeAlberto Parobefore adoptionbcd30f0

History of this file

Take it

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

AuthAuthsKenneth Reitzbefore adoptionb72e1d1

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

AuthAuthsKenneth Reitzbefore adoptionb72e1d1

line 7why, one step back
7

Added setuptools management to setup.py to allow to install in develop modeAlberto Parobefore adoptionbcd30f0

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

AuthAuthsKenneth Reitzbefore adoptionb72e1d1

lines 12–13why, one step back
12
13

Merge branch 'release/0.3.2' into developKenneth Reitzbefore adoptionea86602

line 14why, one step back
14

AuthAuthsKenneth Reitzbefore adoptionb72e1d1

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

AuthAuthsKenneth Reitzbefore adoptionb72e1d1

line 18why, one step back
18

Merge branch 'release/0.2.1'Kenneth Reitzbefore adoptione09efc4

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.3.2' into developKenneth Reitzbefore adoptionea86602

line 22why, one step back
22

AuthAuthsKenneth Reitzbefore adoptionb72e1d1

lines 23–24why, one step back
23required = []
24

Merge branch 'release/0.3.2' into developKenneth Reitzbefore adoptionea86602

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

AuthAuthsKenneth Reitzbefore adoptionb72e1d1

lines 27–28why, one step back
27
28setup(

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 31–35why, one step back
31 description='Awesome Python HTTP Library that\'s actually usable.',
32 long_description=open('README.rst').read() + '\n\n' +33 open('HISTORY.rst').read(),34 author='Kenneth Reitz',35 author_email='me@kennethreitz.com',

home page url changeKenneth Reitzbefore adoption8ffb246

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 37–44why, one step back
37 packages= [
38 'requests',39 'requests.packages',40 'requests.packages.poster'41 ],42 install_requires=required,43 license='ISC',44 classifiers=(

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

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

Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa

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

AuthAuthsKenneth Reitzbefore adoptionb72e1d1

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

Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f

lines 52–55why, one step back
52 'Programming Language :: Python :: 2.7',
53 # 'Programming Language :: Python :: 3.0',54 # 'Programming Language :: Python :: 3.1',55 ),

AuthAuthsKenneth Reitzbefore adoptionb72e1d1

line 56why, one step back
56)