Skip to content
Myr

setup.py

This file

Path

setup.py

73 lines · 2.1 KiB · Python

Last changed by

new classifiers for 3.2+Kenneth Reitzbefore adoption7c520ec

History of this file

Take it

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

update documentation to correspond to new cookie APIShivaram Lingamnenibefore adoptionfdd0821

lines 1–2why, one step back
1#!/usr/bin/env python
2

Merge pull request #572 from slingamn/chardet_2Kenneth Reitzbefore adoptiona3e5563

line 3why, one step back
3import os

update documentation to correspond to new cookie APIShivaram Lingamnenibefore adoptionfdd0821

line 4why, one step back
4import sys

Change setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f

line 5why, one step back
5

update documentation to correspond to new cookie APIShivaram Lingamnenibefore adoptionfdd0821

line 6why, one step back
6import requests

syntax errorKenneth Reitzbefore adoptiond983cfa

line 7why, one step back
7from requests.compat import is_py2

update documentation to correspond to new cookie APIShivaram Lingamnenibefore adoptionfdd0821

lines 8–17why, one step back
8
9try:10 from setuptools import setup11except ImportError:12 from distutils.core import setup1314if sys.argv[-1] == 'publish':15 os.system('python setup.py sdist upload')16 sys.exit()17

setup.pyKenneth Reitzbefore adoptionca7ee68

lines 18–19why, one step back
18os.environ['PYTHONDONTWRITEBYTECODE'] = '1'
19

update documentation to correspond to new cookie APIShivaram Lingamnenibefore adoptionfdd0821

lines 20–24why, one step back
20packages = [
21 'requests',22 'requests.packages',23 'requests.packages.urllib3',24 'requests.packages.urllib3.packages',

oauthlibKenneth Reitzbefore adoption9576518

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

update documentation to correspond to new cookie APIShivaram Lingamnenibefore adoptionfdd0821

line 26why, one step back
26]

version-dependent package includesKenneth Reitzbefore adoption254adf9

lines 27–38why, one step back
27
28if is_py2:29 packages.extend([30 'requests.packages.oauthlib',31 'requests.packages.oauthlib.oauth1',32 'requests.packages.oauthlib.oauth1.rfc5849',33 'requests.packages.oauthlib.oauth2',34 'requests.packages.oauthlib.oauth2.draft25',35 'requests.packages.chardet',36 ])37else:38 packages.append('requests.packages.chardet2')

update documentation to correspond to new cookie APIShivaram Lingamnenibefore adoptionfdd0821

line 39why, one step back
39

new vendored libsKenneth Reitzbefore adoption35f6671

line 40why, one step back
40requires = []

oauthlibKenneth Reitzbefore adoption9324c2a

line 41why, one step back
41

update documentation to correspond to new cookie APIShivaram Lingamnenibefore adoptionfdd0821

lines 42–51why, one step back
42setup(
43 name='requests',44 version=requests.__version__,45 description='Python HTTP for Humans.',46 long_description=open('README.rst').read() + '\n\n' +47 open('HISTORY.rst').read(),48 author='Kenneth Reitz',49 author_email='me@kennethreitz.com',50 url='http://python-requests.org',51 packages=packages,

new vendored libsKenneth Reitzbefore adoption35f6671

lines 52–53why, one step back
52 package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},
53 package_dir={'requests': 'requests'},

update documentation to correspond to new cookie APIShivaram Lingamnenibefore adoptionfdd0821

line 54why, one step back
54 include_package_data=True,

Change setup.py to reflect required/optional dependenciesShivaram Lingamnenibefore adoptionbdd7f8f

line 55why, one step back
55 install_requires=requires,

v0.13.2Kenneth Reitzbefore adoptionfb2ce4f

line 56why, one step back
56 license=open('LICENSE').read(),

update documentation to correspond to new cookie APIShivaram Lingamnenibefore adoptionfdd0821

lines 57–67why, one step back
57 classifiers=(
58 'Development Status :: 5 - Production/Stable',59 'Intended Audience :: Developers',60 'Natural Language :: English',61 'License :: OSI Approved :: ISC License (ISCL)',62 'Programming Language :: Python',63 'Programming Language :: Python :: 2.6',64 'Programming Language :: Python :: 2.7',65 'Programming Language :: Python :: 3',66 'Programming Language :: Python :: 3.0',67 'Programming Language :: Python :: 3.1',

new classifiers for 3.2+Kenneth Reitzbefore adoption7c520ec

lines 68–69why, one step back
68 'Programming Language :: Python :: 3.2',
69 'Programming Language :: Python :: 3.3',

update documentation to correspond to new cookie APIShivaram Lingamnenibefore adoptionfdd0821

lines 70–71why, one step back
70 ),
71)

Merge remote-tracking branch 'origin/develop' into developKenneth Reitzbefore adoptionffc72ac

lines 72–73why, one step back
72
73del os.environ['PYTHONDONTWRITEBYTECODE']