Skip to content
Myr

setup.py

This file

Path

setup.py

61 lines · 1.8 KiB · Python

Last changed by

v0.13.2Kenneth Reitzbefore adoptionfb2ce4f

History of this file

Take it

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

nose not found :(Kenneth Reitzbefore adoptionec979dc

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

nose not found :(Kenneth Reitzbefore adoptionec979dc

line 4why, one step back
4import sys

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

line 5why, one step back
5

nose not found :(Kenneth Reitzbefore adoptionec979dc

lines 6–19why, one step back
6import requests
78try:9 from setuptools import setup10except ImportError:11 from distutils.core import setup1213if sys.argv[-1] == 'publish':14 os.system('python setup.py sdist upload')15 sys.exit()1617packages = [18 'requests',19 'requests.packages',

v0.13.2Kenneth Reitzbefore adoptionfb2ce4f

lines 20–24why, one step back
20 'requests.packages.oauthlib',
21 'requests.packages.oauthlib.oauth1',22 'requests.packages.oauthlib.oauth1.rfc5849',23 'requests.packages.oauthlib.oauth2',24 'requests.packages.oauthlib.oauth2.draft25',

new vendored libsKenneth Reitzbefore adoption35f6671

lines 25–26why, one step back
25 'requests.packages.chardet',
26 'requests.packages.chardet2',

nose not found :(Kenneth Reitzbefore adoptionec979dc

lines 27–28why, one step back
27 'requests.packages.urllib3',
28 'requests.packages.urllib3.packages',

oauthlibKenneth Reitzbefore adoption9576518

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

nose not found :(Kenneth Reitzbefore adoptionec979dc

lines 30–31why, one step back
30]
31

new vendored libsKenneth Reitzbefore adoption35f6671

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

oauthlibKenneth Reitzbefore adoption9324c2a

line 33why, one step back
33

nose not found :(Kenneth Reitzbefore adoptionec979dc

lines 34–43why, one step back
34setup(
35 name='requests',36 version=requests.__version__,37 description='Python HTTP for Humans.',38 long_description=open('README.rst').read() + '\n\n' +39 open('HISTORY.rst').read(),40 author='Kenneth Reitz',41 author_email='me@kennethreitz.com',42 url='http://python-requests.org',43 packages=packages,

new vendored libsKenneth Reitzbefore adoption35f6671

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

nose not found :(Kenneth Reitzbefore adoptionec979dc

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

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

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

v0.13.2Kenneth Reitzbefore adoptionfb2ce4f

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

nose not found :(Kenneth Reitzbefore adoptionec979dc

lines 49–61why, one step back
49 classifiers=(
50 'Development Status :: 5 - Production/Stable',51 'Intended Audience :: Developers',52 'Natural Language :: English',53 'License :: OSI Approved :: ISC License (ISCL)',54 'Programming Language :: Python',55 'Programming Language :: Python :: 2.6',56 'Programming Language :: Python :: 2.7',57 'Programming Language :: Python :: 3',58 'Programming Language :: Python :: 3.0',59 'Programming Language :: Python :: 3.1',60 ),61)