Jason R. Coombs | ca3b490 | 2011-08-09 10:42:31 -0400 | [diff] [blame] | 1 | try: |
| 2 | from setuptools import setup |
| 3 | except ImportError: |
| 4 | from distutils.core import setup |
Joe Gregorio | efc8672 | 2009-12-09 10:07:06 -0500 | [diff] [blame] | 5 | import sys |
| 6 | |
| 7 | pkgdir = {'': 'python%s' % sys.version_info[0]} |
Sergey Shepelev | 7b54fbb | 2017-02-04 00:09:28 +0300 | [diff] [blame] | 8 | VERSION = '0.10.2' |
Joe Gregorio | efc8672 | 2009-12-09 10:07:06 -0500 | [diff] [blame] | 9 | |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 10 | setup(name='httplib2', |
Joe Gregorio | ffc3d54 | 2013-02-19 15:57:37 -0500 | [diff] [blame] | 11 | version=VERSION, |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 12 | author='Joe Gregorio', |
| 13 | author_email='joe@bitworking.org', |
Stefan Nordhausen | a15a746 | 2016-04-19 15:56:31 +0200 | [diff] [blame] | 14 | url='https://github.com/httplib2/httplib2', |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 15 | description='A comprehensive HTTP client library.', |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 16 | license='MIT', |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 17 | long_description=""" |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 18 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 19 | 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] | 20 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 21 | **HTTP and HTTPS** |
Joe Gregorio | ffc3d54 | 2013-02-19 15:57:37 -0500 | [diff] [blame] | 22 | HTTPS support is only available if the socket module was compiled with SSL support. |
| 23 | |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 24 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 25 | **Keep-Alive** |
Joe Gregorio | ffc3d54 | 2013-02-19 15:57:37 -0500 | [diff] [blame] | 26 | 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] | 27 | |
| 28 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 29 | **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 Gregorio | ffc3d54 | 2013-02-19 15:57:37 -0500 | [diff] [blame] | 37 | 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] | 38 | header and uses both the ETag and Last-Modified cache validators. Both file system |
| 39 | and memcached based caches are supported. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 40 | |
| 41 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 42 | **All Methods** |
| 43 | The module can handle any HTTP request method, not just GET and POST. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 44 | |
| 45 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 46 | **Redirects** |
| 47 | Automatically follows 3XX redirects on GETs. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 48 | |
| 49 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 50 | **Compression** |
jcgregorio | 17948c0 | 2006-06-29 05:31:17 +0000 | [diff] [blame] | 51 | Handles both 'deflate' and 'gzip' types of compression. |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 52 | |
| 53 | |
jcgregorio | f79d94f | 2006-02-15 19:32:11 +0000 | [diff] [blame] | 54 | **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 Gregorio | f637822 | 2011-06-13 14:47:34 -0400 | [diff] [blame] | 60 | |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 61 | """, |
Joe Gregorio | efc8672 | 2009-12-09 10:07:06 -0500 | [diff] [blame] | 62 | package_dir=pkgdir, |
jcgregorio | 3089611 | 2006-03-10 02:39:56 +0000 | [diff] [blame] | 63 | packages=['httplib2'], |
Joe Gregorio | f6bbcc8 | 2011-06-16 10:08:15 -0400 | [diff] [blame] | 64 | package_data={'httplib2': ['*.txt']}, |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 65 | classifiers=[ |
jcgregorio | 0dafc14 | 2007-03-09 04:06:08 +0000 | [diff] [blame] | 66 | 'Development Status :: 4 - Beta', |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 67 | 'Environment :: Web Environment', |
| 68 | 'Intended Audience :: Developers', |
| 69 | 'License :: OSI Approved :: MIT License', |
| 70 | 'Operating System :: OS Independent', |
| 71 | 'Programming Language :: Python', |
Joe Gregorio | 66611ff | 2009-07-19 01:32:17 -0400 | [diff] [blame] | 72 | 'Programming Language :: Python :: 3', |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 73 | 'Topic :: Internet :: WWW/HTTP', |
| 74 | 'Topic :: Software Development :: Libraries', |
| 75 | ], |
| 76 | ) |