Sergey Shepelev | 55d8780 | 2018-03-17 02:33:19 +0300 | [diff] [blame] | 1 | import setuptools |
Joe Gregorio | efc8672 | 2009-12-09 10:07:06 -0500 | [diff] [blame] | 2 | import sys |
| 3 | |
Alex Yu | aa1b95b | 2018-07-26 23:23:35 -0400 | [diff] [blame^] | 4 | pkgdir = {"": "python%s" % sys.version_info[0]} |
| 5 | VERSION = "0.11.3" |
Joe Gregorio | efc8672 | 2009-12-09 10:07:06 -0500 | [diff] [blame] | 6 | |
Sergey Shepelev | 55d8780 | 2018-03-17 02:33:19 +0300 | [diff] [blame] | 7 | setuptools.setup( |
Alex Yu | aa1b95b | 2018-07-26 23:23:35 -0400 | [diff] [blame^] | 8 | name="httplib2", |
Sergey Shepelev | 55d8780 | 2018-03-17 02:33:19 +0300 | [diff] [blame] | 9 | version=VERSION, |
Alex Yu | aa1b95b | 2018-07-26 23:23:35 -0400 | [diff] [blame^] | 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", |
Sergey Shepelev | 55d8780 | 2018-03-17 02:33:19 +0300 | [diff] [blame] | 15 | long_description=""" |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 16 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 17 | A comprehensive HTTP client library, ``httplib2`` supports many features left out of other HTTP libraries. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 18 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 19 | **HTTP and HTTPS** |
Joe Gregorio | ffc3d54 | 2013-02-19 15:57:37 -0500 | [diff] [blame] | 20 | HTTPS support is only available if the socket module was compiled with SSL support. |
| 21 | |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 22 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 23 | **Keep-Alive** |
Joe Gregorio | ffc3d54 | 2013-02-19 15:57:37 -0500 | [diff] [blame] | 24 | Supports HTTP 1.1 Keep-Alive, keeping the socket open and performing multiple requests over the same connection if possible. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 25 | |
| 26 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 27 | **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 Gregorio | ffc3d54 | 2013-02-19 15:57:37 -0500 | [diff] [blame] | 35 | The module can optionally operate with a private cache that understands the Cache-Control: |
jcgregorio | 17948c0 | 2006-06-29 05:31:17 +0000 | [diff] [blame] | 36 | header and uses both the ETag and Last-Modified cache validators. Both file system |
| 37 | and memcached based caches are supported. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 38 | |
| 39 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 40 | **All Methods** |
| 41 | The module can handle any HTTP request method, not just GET and POST. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 42 | |
| 43 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 44 | **Redirects** |
| 45 | Automatically follows 3XX redirects on GETs. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 46 | |
| 47 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 48 | **Compression** |
jcgregorio | 17948c0 | 2006-06-29 05:31:17 +0000 | [diff] [blame] | 49 | Handles both 'deflate' and 'gzip' types of compression. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 50 | |
| 51 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 52 | **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 Shepelev | 55d8780 | 2018-03-17 02:33:19 +0300 | [diff] [blame] | 58 | """, |
| 59 | package_dir=pkgdir, |
Alex Yu | aa1b95b | 2018-07-26 23:23:35 -0400 | [diff] [blame^] | 60 | packages=["httplib2"], |
| 61 | package_data={"httplib2": ["*.txt"]}, |
Sergey Shepelev | 55d8780 | 2018-03-17 02:33:19 +0300 | [diff] [blame] | 62 | classifiers=( |
Alex Yu | aa1b95b | 2018-07-26 23:23:35 -0400 | [diff] [blame^] | 63 | "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 Shepelev | 55d8780 | 2018-03-17 02:33:19 +0300 | [diff] [blame] | 77 | ), |
| 78 | ) |