blob: 77e2b445e3bcc237bfcc9acfec946f6665b05393 [file] [log] [blame]
Jason R. Coombsca3b4902011-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]}
Sergey Shepelev7b54fbb2017-02-04 00:09:28 +03008VERSION = '0.10.2'
Joe Gregorioefc86722009-12-09 10:07:06 -05009
jcgregorio2d66d4f2006-02-07 05:34:14 +000010setup(name='httplib2',
Joe Gregorioffc3d542013-02-19 15:57:37 -050011 version=VERSION,
jcgregorio2d66d4f2006-02-07 05:34:14 +000012 author='Joe Gregorio',
13 author_email='joe@bitworking.org',
Stefan Nordhausena15a7462016-04-19 15:56:31 +020014 url='https://github.com/httplib2/httplib2',
jcgregorio2d66d4f2006-02-07 05:34:14 +000015 description='A comprehensive HTTP client library.',
jcgregoriof79d94f2006-02-15 19:32:11 +000016 license='MIT',
jcgregorio2d66d4f2006-02-07 05:34:14 +000017 long_description="""
jcgregorio2d66d4f2006-02-07 05:34:14 +000018
jcgregoriof79d94f2006-02-15 19:32:11 +000019A comprehensive HTTP client library, ``httplib2`` supports many features left out of other HTTP libraries.
jcgregorio2d66d4f2006-02-07 05:34:14 +000020
jcgregoriof79d94f2006-02-15 19:32:11 +000021**HTTP and HTTPS**
Joe Gregorioffc3d542013-02-19 15:57:37 -050022 HTTPS support is only available if the socket module was compiled with SSL support.
23
jcgregorio2d66d4f2006-02-07 05:34:14 +000024
jcgregoriof79d94f2006-02-15 19:32:11 +000025**Keep-Alive**
Joe Gregorioffc3d542013-02-19 15:57:37 -050026 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 +000027
28
jcgregoriof79d94f2006-02-15 19:32:11 +000029**Authentication**
30 The following three types of HTTP Authentication are supported. These can be used over both HTTP and HTTPS.
31
32 * Digest
33 * Basic
34 * WSSE
35
36**Caching**
Joe Gregorioffc3d542013-02-19 15:57:37 -050037 The module can optionally operate with a private cache that understands the Cache-Control:
jcgregorio17948c02006-06-29 05:31:17 +000038 header and uses both the ETag and Last-Modified cache validators. Both file system
39 and memcached based caches are supported.
jcgregorio2d66d4f2006-02-07 05:34:14 +000040
41
jcgregoriof79d94f2006-02-15 19:32:11 +000042**All Methods**
43 The module can handle any HTTP request method, not just GET and POST.
jcgregorio2d66d4f2006-02-07 05:34:14 +000044
45
jcgregoriof79d94f2006-02-15 19:32:11 +000046**Redirects**
47 Automatically follows 3XX redirects on GETs.
jcgregorio2d66d4f2006-02-07 05:34:14 +000048
49
jcgregoriof79d94f2006-02-15 19:32:11 +000050**Compression**
jcgregorio17948c02006-06-29 05:31:17 +000051 Handles both 'deflate' and 'gzip' types of compression.
jcgregorio2d66d4f2006-02-07 05:34:14 +000052
53
jcgregoriof79d94f2006-02-15 19:32:11 +000054**Lost update support**
55 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
56
57
58**Unit Tested**
59 A large and growing set of unit tests.
Joe Gregoriof6378222011-06-13 14:47:34 -040060
jcgregorio2d66d4f2006-02-07 05:34:14 +000061 """,
Joe Gregorioefc86722009-12-09 10:07:06 -050062 package_dir=pkgdir,
jcgregorio30896112006-03-10 02:39:56 +000063 packages=['httplib2'],
Joe Gregoriof6bbcc82011-06-16 10:08:15 -040064 package_data={'httplib2': ['*.txt']},
jcgregorio2d66d4f2006-02-07 05:34:14 +000065 classifiers=[
jcgregorio0dafc142007-03-09 04:06:08 +000066 'Development Status :: 4 - Beta',
jcgregorio2d66d4f2006-02-07 05:34:14 +000067 'Environment :: Web Environment',
68 'Intended Audience :: Developers',
69 'License :: OSI Approved :: MIT License',
70 'Operating System :: OS Independent',
71 'Programming Language :: Python',
Joe Gregorio66611ff2009-07-19 01:32:17 -040072 'Programming Language :: Python :: 3',
jcgregorio2d66d4f2006-02-07 05:34:14 +000073 'Topic :: Internet :: WWW/HTTP',
74 'Topic :: Software Development :: Libraries',
75 ],
76 )