setup.py
This file
Path
setup.py
57 lines · 1.4 KiB · Python
Last changed by
packageKenneth Reitzbefore adoption9d8d1d1
History of this fileTake it
The walk stopped after 200 commits: lines older than 871de2a point at it.
HEAD SupportKenneth Reitzbefore adoption871de2a
lines 1–5why, one step back1#!/usr/bin/env python2# -*- coding: utf-8 -*-34import os5import sysMerge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
line 6why, one step back6import requestsHEAD SupportKenneth Reitzbefore adoption871de2a
line 7why, one step back7Merge branch 'release/0.5.0'Kenneth Reitzbefore adoption2d98ca7
lines 8–11why, one step back8try:9 from setuptools import setup10except ImportError:11 from distutils.core import setupHEAD SupportKenneth Reitzbefore adoption871de2a
lines 12–13why, one step back1213Merge branch 'release/0.3.2'Kenneth Reitzbefore adoption642c667
line 14why, one step back14HEAD SupportKenneth Reitzbefore adoption871de2a
line 15why, one step back15if sys.argv[-1] == "publish":Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 16–17why, one step back16 os.system("python setup.py sdist upload")17 sys.exit()HEAD SupportKenneth Reitzbefore adoption871de2a
line 18why, one step back18Merge branch 'release/0.2.1'Kenneth Reitzbefore adoptione09efc4
line 19why, one step back19if sys.argv[-1] == "test":Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 20–21why, one step back20 os.system("python test_requests.py")21 sys.exit()Merge branch 'release/0.3.2'Kenneth Reitzbefore adoption642c667
line 22why, one step back22HEAD SupportKenneth Reitzbefore adoption871de2a
lines 23–24why, one step back23required = []24Merge branch 'release/0.3.2'Kenneth Reitzbefore adoption642c667
lines 25–26why, one step back25if sys.version_info[:2] < (2,6):26 required.append('simplejson')HEAD SupportKenneth Reitzbefore adoption871de2a
lines 27–28why, one step back2728setup(Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
line 29why, one step back29 name='requests',Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
line 30why, one step back30 version=requests.__version__,Merge branch 'release/0.5.1'Kenneth Reitzbefore adoption95ba6fc
line 31why, one step back31 description='Python HTTP for Humans.',Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 32–35why, 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',Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 36why, one step back36 url='http://python-requests.org',Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 37–39why, one step back37 packages= [38 'requests',39 'requests.packages',packageKenneth Reitzbefore adoption9d8d1d1
lines 40–41why, one step back40 'requests.packages.urllib3',41 'requests.packages.oreos'Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 42–45why, one step back42 ],43 install_requires=required,44 license='ISC',45 classifiers=(Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
line 46why, one step back46 'Development Status :: 5 - Production/Stable',Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 47–50why, one step back47 'Intended Audience :: Developers',48 'Natural Language :: English',49 'License :: OSI Approved :: ISC License (ISCL)',50 'Programming Language :: Python',Merge branch 'release/0.2.4'Kenneth Reitzbefore adoptiond2cdefa
line 51why, one step back51 'Programming Language :: Python :: 2.5',HEAD SupportKenneth Reitzbefore adoption871de2a
line 52why, one step back52 'Programming Language :: Python :: 2.6',Merge branch 'release/0.9.4'Kenneth Reitzbefore adoption952970f
lines 53–56why, one step back53 'Programming Language :: Python :: 2.7',54 # 'Programming Language :: Python :: 3.0',55 # 'Programming Language :: Python :: 3.1',56 ),HEAD SupportKenneth Reitzbefore adoption871de2a
line 57why, one step back57)