blob: c50fe40300cf8d64b9442f395c2342db4c02a5b7 [file] [log] [blame]
Sergey Shepelev55d87802018-03-17 02:33:19 +03001import setuptools
Joe Gregorioefc86722009-12-09 10:07:06 -05002import sys
3
Alex Yuaa1b95b2018-07-26 23:23:35 -04004pkgdir = {"": "python%s" % sys.version_info[0]}
5VERSION = "0.11.3"
Joe Gregorioefc86722009-12-09 10:07:06 -05006
Sergey Shepelev55d87802018-03-17 02:33:19 +03007setuptools.setup(
Alex Yuaa1b95b2018-07-26 23:23:35 -04008 name="httplib2",
Sergey Shepelev55d87802018-03-17 02:33:19 +03009 version=VERSION,
Alex Yuaa1b95b2018-07-26 23:23:35 -040010 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",
Sergey Shepelev55d87802018-03-17 02:33:19 +030015 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,
Alex Yuaa1b95b2018-07-26 23:23:35 -040060 packages=["httplib2"],
61 package_data={"httplib2": ["*.txt"]},
Sergey Shepelev55d87802018-03-17 02:33:19 +030062 classifiers=(
Alex Yuaa1b95b2018-07-26 23:23:35 -040063 "Development Status :: 4 - Beta",
64 "Environment :: Web Environment",
65 "Intended Audience :: Developers",
66 "License :: OSI Approved :: MIT License",
67 "Operating System :: OS Independent",
68 "Programming Language :: Python",
69 "Programming Language :: Python :: 2",
70 "Programming Language :: Python :: 2.7",
71 "Programming Language :: Python :: 3",
72 "Programming Language :: Python :: 3.4",
73 "Programming Language :: Python :: 3.5",
74 "Programming Language :: Python :: 3.6",
75 "Topic :: Internet :: WWW/HTTP",
76 "Topic :: Software Development :: Libraries",
Sergey Shepelev55d87802018-03-17 02:33:19 +030077 ),
78)