setup.py 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. try:
  2. from setuptools import setup
  3. except ImportError:
  4. from distutils.core import setup
  5. import sys
  6. pkgdir = {'': 'python%s' % sys.version_info[0]}
  7. VERSION = '0.8'
  8. setup(name='httplib2',
  9. version=VERSION,
  10. author='Joe Gregorio',
  11. author_email='joe@bitworking.org',
  12. url='http://code.google.com/p/httplib2/',
  13. download_url='http://httplib2.googlecode.com/files/httplib2-%s.tar.gz' % VERSION,
  14. description='A comprehensive HTTP client library.',
  15. license='MIT',
  16. long_description="""
  17. A comprehensive HTTP client library, ``httplib2`` supports many features left out of other HTTP libraries.
  18. **HTTP and HTTPS**
  19. HTTPS support is only available if the socket module was compiled with SSL support.
  20. **Keep-Alive**
  21. Supports HTTP 1.1 Keep-Alive, keeping the socket open and performing multiple requests over the same connection if possible.
  22. **Authentication**
  23. The following three types of HTTP Authentication are supported. These can be used over both HTTP and HTTPS.
  24. * Digest
  25. * Basic
  26. * WSSE
  27. **Caching**
  28. The module can optionally operate with a private cache that understands the Cache-Control:
  29. header and uses both the ETag and Last-Modified cache validators. Both file system
  30. and memcached based caches are supported.
  31. **All Methods**
  32. The module can handle any HTTP request method, not just GET and POST.
  33. **Redirects**
  34. Automatically follows 3XX redirects on GETs.
  35. **Compression**
  36. Handles both 'deflate' and 'gzip' types of compression.
  37. **Lost update support**
  38. 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
  39. **Unit Tested**
  40. A large and growing set of unit tests.
  41. """,
  42. package_dir=pkgdir,
  43. packages=['httplib2'],
  44. package_data={'httplib2': ['*.txt']},
  45. classifiers=[
  46. 'Development Status :: 4 - Beta',
  47. 'Environment :: Web Environment',
  48. 'Intended Audience :: Developers',
  49. 'License :: OSI Approved :: MIT License',
  50. 'Operating System :: OS Independent',
  51. 'Programming Language :: Python',
  52. 'Programming Language :: Python :: 3',
  53. 'Topic :: Internet :: WWW/HTTP',
  54. 'Topic :: Software Development :: Libraries',
  55. ],
  56. )