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 | |
| 4 | pkgdir = {'': 'python%s' % sys.version_info[0]} |
Sergey Shepelev | 70fb0c8 | 2018-03-30 05:17:35 +0300 | [diff] [blame] | 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( |
| 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=""" |
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, |
| 60 | packages=['httplib2'], |
| 61 | package_data={'httplib2': ['*.txt']}, |
| 62 | classifiers=( |
jcgregorio | 0dafc14 | 2007-03-09 04:06:08 +0000 | [diff] [blame] | 63 | 'Development Status :: 4 - Beta', |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 64 | 'Environment :: Web Environment', |
| 65 | 'Intended Audience :: Developers', |
| 66 | 'License :: OSI Approved :: MIT License', |
| 67 | 'Operating System :: OS Independent', |
| 68 | 'Programming Language :: Python', |
Hugo | f9ba19f | 2017-10-05 15:23:42 +0300 | [diff] [blame] | 69 | 'Programming Language :: Python :: 2', |
hugovk | 10909e9 | 2017-10-09 23:05:52 +0300 | [diff] [blame] | 70 | 'Programming Language :: Python :: 2.7', |
Joe Gregorio | 66611ff | 2009-07-19 01:32:17 -0400 | [diff] [blame] | 71 | 'Programming Language :: Python :: 3', |
hugovk | 10909e9 | 2017-10-09 23:05:52 +0300 | [diff] [blame] | 72 | 'Programming Language :: Python :: 3.3', |
| 73 | 'Programming Language :: Python :: 3.4', |
| 74 | 'Programming Language :: Python :: 3.5', |
| 75 | 'Programming Language :: Python :: 3.6', |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 76 | 'Topic :: Internet :: WWW/HTTP', |
| 77 | 'Topic :: Software Development :: Libraries', |
Sergey Shepelev | 55d8780 | 2018-03-17 02:33:19 +0300 | [diff] [blame] | 78 | ), |
| 79 | ) |