Skip to content
Myr

setup.py

This file

Path

setup.py

62 lines · 1.7 KiB · Python

Last changed by

oauthlibKenneth Reitzbefore adoption9576518

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

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

lines 3–6why, one step back
3"""
4distutils/setuptools install script. See inline comments for packaging documentation.5"""6

Merge pull request #572 from slingamn/chardet_2Kenneth Reitzbefore adoptiona3e5563

line 7why, one step back
7import os

nose not found :(Kenneth Reitzbefore adoptionec979dc

line 8why, one step back
8import sys

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

line 9why, one step back
9

nose not found :(Kenneth Reitzbefore adoptionec979dc

lines 10–13why, one step back
10import requests
1112try:13 from setuptools import setup

Merge pull request #579 from slingamn/pyflakes.releaseKenneth Reitzbefore adoption3d373e2

lines 14–15why, one step back
14 # hush pyflakes
15 setup

nose not found :(Kenneth Reitzbefore adoptionec979dc

lines 16–25why, one step back
16except ImportError:
17 from distutils.core import setup1819if sys.argv[-1] == 'publish':20 os.system('python setup.py sdist upload')21 sys.exit()2223packages = [24 'requests',25 'requests.packages',

new vendored libsKenneth Reitzbefore adoption35f6671

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

nose not found :(Kenneth Reitzbefore adoptionec979dc

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

oauthlibKenneth Reitzbefore adoption9576518

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

nose not found :(Kenneth Reitzbefore adoptionec979dc

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

new vendored libsKenneth Reitzbefore adoption35f6671

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

oauthlibKenneth Reitzbefore adoption9324c2a

line 34why, one step back
34

nose not found :(Kenneth Reitzbefore adoptionec979dc

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

new vendored libsKenneth Reitzbefore adoption35f6671

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

nose not found :(Kenneth Reitzbefore adoptionec979dc

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

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

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

blahKenneth Reitzbefore adoptionbcbc1be

line 49why, one step back
49 license=open("LICENSE").read(),

nose not found :(Kenneth Reitzbefore adoptionec979dc

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