setup.py
This file
Path
setup.py
56 lines · 1.4 KiB · Python
Last changed by
playing nice.Kenneth Reitzbefore adoption8521075
History of this fileTake it
The walk stopped after 200 commits: lines older than 3d1444b point at it.
Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
lines 1–7why, one step back1#!/usr/bin/env python2# -*- coding: utf-8 -*-34import os5import sys6import requests7Added setuptools management to setup.py to allow to install in develop modeAlberto Parobefore adoptionbcd30f0
lines 8–11why, one step back8try:9 from setuptools import setup10except ImportError:11 from distutils.core import setupUpdate documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
lines 12–30why, one step back12131415if sys.argv[-1] == "publish":16 os.system("python setup.py sdist upload")17 sys.exit()1819if sys.argv[-1] == "test":20 os.system("python test_requests.py")21 sys.exit()2223required = []2425if sys.version_info[:2] < (2,6):26 required.append('simplejson')2728setup(29 name='requests',30 version=requests.__version__,playing nice.Kenneth Reitzbefore adoption8521075
line 31why, one step back31 description='Python HTTP for Humans.',Update documentation of the "data" parameter for requests.post() to indicate that it allows bytes. Update documentation of requests.put() to refer to the "data" parameter rather than the (hidden, but functional) "params" parameter, and note that that also allows both bytes and dictionaries.Richard Boultonbefore adoption3d1444b
lines 32–56why, one step back32 long_description=open('README.rst').read() + '\n\n' +33 open('HISTORY.rst').read(),34 author='Kenneth Reitz',35 author_email='me@kennethreitz.com',36 url='http://python-requests.org',37 packages= [38 'requests',39 'requests.packages',40 'requests.packages.poster'41 ],42 install_requires=required,43 license='ISC',44 classifiers=(45 'Development Status :: 5 - Production/Stable',46 'Intended Audience :: Developers',47 'Natural Language :: English',48 'License :: OSI Approved :: ISC License (ISCL)',49 'Programming Language :: Python',50 'Programming Language :: Python :: 2.5',51 'Programming Language :: Python :: 2.6',52 'Programming Language :: Python :: 2.7',53 # 'Programming Language :: Python :: 3.0',54 # 'Programming Language :: Python :: 3.1',55 ),56)