blob: c96a2d9d2c6c48fd2708462a6eafc4914f11c6f3 [file] [log] [blame]
Jason R. Coombs0dbe2752011-08-09 10:42:31 -04001try:
2 from setuptools import setup
3except ImportError:
4 from distutils.core import setup
Joe Gregorioefc86722009-12-09 10:07:06 -05005import sys
6
7pkgdir = {'': 'python%s' % sys.version_info[0]}
Joe Gregorio9551feb2012-03-02 10:52:45 -05008VERSION = '0.7.3'
Joe Gregorioefc86722009-12-09 10:07:06 -05009
jcgregorio2d66d4f2006-02-07 05:34:14 +000010setup(name='httplib2',
jcgregoriof79d94f2006-02-15 19:32:11 +000011 version=VERSION,
jcgregorio2d66d4f2006-02-07 05:34:14 +000012 author='Joe Gregorio',
13 author_email='joe@bitworking.org',
Joe Gregorio66611ff2009-07-19 01:32:17 -040014 url='http://code.google.com/p/httplib2/',
15 download_url='http://httplib2.googlecode.com/files/httplib2-%s.tar.gz' % VERSION,
jcgregorio2d66d4f2006-02-07 05:34:14 +000016 description='A comprehensive HTTP client library.',
jcgregoriof79d94f2006-02-15 19:32:11 +000017 license='MIT',
jcgregorio2d66d4f2006-02-07 05:34:14 +000018 long_description="""
jcgregorio2d66d4f2006-02-07 05:34:14 +000019
jcgregoriof79d94f2006-02-15 19:32:11 +000020A comprehensive HTTP client library, ``httplib2`` supports many features left out of other HTTP libraries.
jcgregorio2d66d4f2006-02-07 05:34:14 +000021
jcgregoriof79d94f2006-02-15 19:32:11 +000022**HTTP and HTTPS**
23 HTTPS support is only available if the socket module was compiled with SSL support.
24
jcgregorio2d66d4f2006-02-07 05:34:14 +000025
jcgregoriof79d94f2006-02-15 19:32:11 +000026**Keep-Alive**
27 Supports HTTP 1.1 Keep-Alive, keeping the socket open and performing multiple requests over the same connection if possible.
jcgregorio2d66d4f2006-02-07 05:34:14 +000028
29
jcgregoriof79d94f2006-02-15 19:32:11 +000030**Authentication**
31 The following three types of HTTP Authentication are supported. These can be used over both HTTP and HTTPS.
32
33 * Digest
34 * Basic
35 * WSSE
36
37**Caching**
38 The module can optionally operate with a private cache that understands the Cache-Control:
jcgregorio17948c02006-06-29 05:31:17 +000039 header and uses both the ETag and Last-Modified cache validators. Both file system
40 and memcached based caches are supported.
jcgregorio2d66d4f2006-02-07 05:34:14 +000041
42
jcgregoriof79d94f2006-02-15 19:32:11 +000043**All Methods**
44 The module can handle any HTTP request method, not just GET and POST.
jcgregorio2d66d4f2006-02-07 05:34:14 +000045
46
jcgregoriof79d94f2006-02-15 19:32:11 +000047**Redirects**
48 Automatically follows 3XX redirects on GETs.
jcgregorio2d66d4f2006-02-07 05:34:14 +000049
50
jcgregoriof79d94f2006-02-15 19:32:11 +000051**Compression**
jcgregorio17948c02006-06-29 05:31:17 +000052 Handles both 'deflate' and 'gzip' types of compression.
jcgregorio2d66d4f2006-02-07 05:34:14 +000053
54
jcgregoriof79d94f2006-02-15 19:32:11 +000055**Lost update support**
56 Automatically adds back ETags into PUT requests to resources we have already cached. This implements Section 3.2 of Detecting the Lost Update Problem Using Unreserved Checkout
57
58
59**Unit Tested**
60 A large and growing set of unit tests.
Joe Gregorioe0a39932011-06-13 14:47:34 -040061
62http://httplib2.googlecode.com/svn/trunk/#egg=httplib2-dev
jcgregorio2d66d4f2006-02-07 05:34:14 +000063 """,
Joe Gregorioefc86722009-12-09 10:07:06 -050064 package_dir=pkgdir,
jcgregorio30896112006-03-10 02:39:56 +000065 packages=['httplib2'],
Joe Gregorioe34c25d2011-06-16 10:08:15 -040066 package_data={'httplib2': ['*.txt']},
jcgregorio2d66d4f2006-02-07 05:34:14 +000067 classifiers=[
jcgregorio0dafc142007-03-09 04:06:08 +000068 'Development Status :: 4 - Beta',
jcgregorio2d66d4f2006-02-07 05:34:14 +000069 'Environment :: Web Environment',
70 'Intended Audience :: Developers',
71 'License :: OSI Approved :: MIT License',
72 'Operating System :: OS Independent',
73 'Programming Language :: Python',
Joe Gregorio66611ff2009-07-19 01:32:17 -040074 'Programming Language :: Python :: 3',
jcgregorio2d66d4f2006-02-07 05:34:14 +000075 'Topic :: Internet :: WWW/HTTP',
76 'Topic :: Software Development :: Libraries',
77 ],
78 )