blob: b8ba01e592ed5ce6735d3e6526e3fb986ea4bb14 [file] [log] [blame]
jcgregorio2d66d4f2006-02-07 05:34:14 +00001from distutils.core import setup
Joe Gregorioefc86722009-12-09 10:07:06 -05002import sys
3
4pkgdir = {'': 'python%s' % sys.version_info[0]}
Joe Gregorio0aa16cd2011-11-14 12:35:44 -05005VERSION = '0.7.2'
Joe Gregorioefc86722009-12-09 10:07:06 -05006
jcgregorio2d66d4f2006-02-07 05:34:14 +00007setup(name='httplib2',
jcgregoriof79d94f2006-02-15 19:32:11 +00008 version=VERSION,
jcgregorio2d66d4f2006-02-07 05:34:14 +00009 author='Joe Gregorio',
10 author_email='joe@bitworking.org',
Joe Gregorio66611ff2009-07-19 01:32:17 -040011 url='http://code.google.com/p/httplib2/',
12 download_url='http://httplib2.googlecode.com/files/httplib2-%s.tar.gz' % VERSION,
jcgregorio2d66d4f2006-02-07 05:34:14 +000013 description='A comprehensive HTTP client library.',
jcgregoriof79d94f2006-02-15 19:32:11 +000014 license='MIT',
jcgregorio2d66d4f2006-02-07 05:34:14 +000015 long_description="""
jcgregorio2d66d4f2006-02-07 05:34:14 +000016
jcgregoriof79d94f2006-02-15 19:32:11 +000017A comprehensive HTTP client library, ``httplib2`` supports many features left out of other HTTP libraries.
jcgregorio2d66d4f2006-02-07 05:34:14 +000018
jcgregoriof79d94f2006-02-15 19:32:11 +000019**HTTP and HTTPS**
20 HTTPS support is only available if the socket module was compiled with SSL support.
21
jcgregorio2d66d4f2006-02-07 05:34:14 +000022
jcgregoriof79d94f2006-02-15 19:32:11 +000023**Keep-Alive**
24 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 +000025
26
jcgregoriof79d94f2006-02-15 19:32:11 +000027**Authentication**
28 The following three types of HTTP Authentication are supported. These can be used over both HTTP and HTTPS.
29
30 * Digest
31 * Basic
32 * WSSE
33
34**Caching**
35 The module can optionally operate with a private cache that understands the Cache-Control:
jcgregorio17948c02006-06-29 05:31:17 +000036 header and uses both the ETag and Last-Modified cache validators. Both file system
37 and memcached based caches are supported.
jcgregorio2d66d4f2006-02-07 05:34:14 +000038
39
jcgregoriof79d94f2006-02-15 19:32:11 +000040**All Methods**
41 The module can handle any HTTP request method, not just GET and POST.
jcgregorio2d66d4f2006-02-07 05:34:14 +000042
43
jcgregoriof79d94f2006-02-15 19:32:11 +000044**Redirects**
45 Automatically follows 3XX redirects on GETs.
jcgregorio2d66d4f2006-02-07 05:34:14 +000046
47
jcgregoriof79d94f2006-02-15 19:32:11 +000048**Compression**
jcgregorio17948c02006-06-29 05:31:17 +000049 Handles both 'deflate' and 'gzip' types of compression.
jcgregorio2d66d4f2006-02-07 05:34:14 +000050
51
jcgregoriof79d94f2006-02-15 19:32:11 +000052**Lost update support**
53 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
54
55
56**Unit Tested**
57 A large and growing set of unit tests.
Joe Gregoriof6378222011-06-13 14:47:34 -040058
59http://httplib2.googlecode.com/svn/trunk/#egg=httplib2-dev
jcgregorio2d66d4f2006-02-07 05:34:14 +000060 """,
Joe Gregorioefc86722009-12-09 10:07:06 -050061 package_dir=pkgdir,
jcgregorio30896112006-03-10 02:39:56 +000062 packages=['httplib2'],
Joe Gregoriof6bbcc82011-06-16 10:08:15 -040063 package_data={'httplib2': ['*.txt']},
jcgregorio2d66d4f2006-02-07 05:34:14 +000064 classifiers=[
jcgregorio0dafc142007-03-09 04:06:08 +000065 'Development Status :: 4 - Beta',
jcgregorio2d66d4f2006-02-07 05:34:14 +000066 'Environment :: Web Environment',
67 'Intended Audience :: Developers',
68 'License :: OSI Approved :: MIT License',
69 'Operating System :: OS Independent',
70 'Programming Language :: Python',
Joe Gregorio66611ff2009-07-19 01:32:17 -040071 'Programming Language :: Python :: 3',
jcgregorio2d66d4f2006-02-07 05:34:14 +000072 'Topic :: Internet :: WWW/HTTP',
73 'Topic :: Software Development :: Libraries',
74 ],
75 )