blob: 0f3a5160abe55f4d2591f1ba2f293a9209c5c249 [file] [log] [blame]
Sergey Shepelev55d87802018-03-17 02:33:19 +03001import setuptools
Joe Gregorioefc86722009-12-09 10:07:06 -05002import sys
3
4pkgdir = {'': 'python%s' % sys.version_info[0]}
Sergey Shepelev70fb0c82018-03-30 05:17:35 +03005VERSION = '0.11.3'
Joe Gregorioefc86722009-12-09 10:07:06 -05006
Sergey Shepelev55d87802018-03-17 02:33:19 +03007setuptools.setup(
8 name='httplib2',
9 version=VERSION,
10 author='Joe Gregorio',
11 author_email='joe@bitworking.org',
12 url='https://github.com/httplib2/httplib2',
13 description='A comprehensive HTTP client library.',
14 license='MIT',
15 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**
Joe Gregorioffc3d542013-02-19 15:57:37 -050020 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**
Joe Gregorioffc3d542013-02-19 15:57:37 -050024 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**
Joe Gregorioffc3d542013-02-19 15:57:37 -050035 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.
Sergey Shepelev55d87802018-03-17 02:33:19 +030058""",
59 package_dir=pkgdir,
60 packages=['httplib2'],
61 package_data={'httplib2': ['*.txt']},
62 classifiers=(
jcgregorio0dafc142007-03-09 04:06:08 +000063 'Development Status :: 4 - Beta',
jcgregorio2d66d4f2006-02-07 05:34:14 +000064 'Environment :: Web Environment',
65 'Intended Audience :: Developers',
66 'License :: OSI Approved :: MIT License',
67 'Operating System :: OS Independent',
68 'Programming Language :: Python',
Hugof9ba19f2017-10-05 15:23:42 +030069 'Programming Language :: Python :: 2',
hugovk10909e92017-10-09 23:05:52 +030070 'Programming Language :: Python :: 2.7',
Joe Gregorio66611ff2009-07-19 01:32:17 -040071 'Programming Language :: Python :: 3',
hugovk10909e92017-10-09 23:05:52 +030072 'Programming Language :: Python :: 3.3',
73 'Programming Language :: Python :: 3.4',
74 'Programming Language :: Python :: 3.5',
75 'Programming Language :: Python :: 3.6',
jcgregorio2d66d4f2006-02-07 05:34:14 +000076 'Topic :: Internet :: WWW/HTTP',
77 'Topic :: Software Development :: Libraries',
Sergey Shepelev55d87802018-03-17 02:33:19 +030078 ),
79)