setup.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. try:
  2. from setuptools import setup, find_packages
  3. except ImportError:
  4. from ez_setup import use_setuptools
  5. use_setuptools()
  6. from setuptools import setup, find_packages
  7. _long_description = '''
  8. This is library provides an equivalent of httplib.HTTPSConnection based on
  9. PyOpenSSL in order to take advantage of the latter's better security
  10. capabilities including peer verification. It also includes an extension to
  11. enable it to be used with urllib2.
  12. Prerequisites
  13. =============
  14. This has been developed and tested for Python 2.6 and 2.7 with pyOpenSSL. Note
  15. that proxy support is only available from Python 2.6.2 onwards.
  16. Installation
  17. ============
  18. Installation can be performed using easy_install or pip.
  19. Running ndg_httpclient
  20. ======================
  21. A simple script for fetching data using HTTP or HTTPS GET from a specified URL.
  22. Parameter::
  23. url The URL of the resource to be fetched
  24. Options::
  25. -h, --help Show help message and exit.
  26. -c FILE, --certificate=FILE
  27. Certificate file - defaults to $HOME/credentials.pem
  28. -k FILE, --private-key=FILE
  29. Private key file - defaults to the certificate file
  30. -t DIR, --ca-certificate-dir=DIR
  31. Trusted CA certificate file directory.
  32. -d, --debug Print debug information - this may be useful in
  33. solving problems with HTTP or HTTPS access to a
  34. server.
  35. -f FILE, --fetch=FILE Output file
  36. -n, --no-verify-peer Skip verification of peer certificate.
  37. '''
  38. setup(
  39. name='ndg_httpsclient',
  40. version="0.1.0",
  41. description='Provides enhanced HTTPS support for httplib and urllib2 using '
  42. 'PyOpenSSL',
  43. author='Richard Wilkinson and Philip Kershaw',
  44. long_description=open('README').read(),
  45. license='BSD - See LICENCE file for details',
  46. namespace_packages=['ndg'],
  47. packages=find_packages(),
  48. package_dir={'ndg.httpsclient': 'ndg/httpsclient'},
  49. package_data={
  50. 'ndg.httpsclient': [
  51. 'test/README',
  52. 'test/scripts/*.sh',
  53. 'test/pki/localhost.*',
  54. 'test/pki/ca/*.0'
  55. ],
  56. },
  57. install_requires = ['PyOpenSSL'],
  58. classifiers = [
  59. 'Development Status :: 3 - Alpha',
  60. 'Environment :: Console',
  61. 'Environment :: Web Environment',
  62. 'Intended Audience :: End Users/Desktop',
  63. 'Intended Audience :: Developers',
  64. 'Intended Audience :: System Administrators',
  65. 'Intended Audience :: Science/Research',
  66. 'License :: OSI Approved :: GNU Library or Lesser General Public License (BSD)',
  67. 'Natural Language :: English',
  68. 'Operating System :: Microsoft :: Windows',
  69. 'Operating System :: POSIX :: Linux',
  70. 'Programming Language :: Python',
  71. 'Topic :: Security',
  72. 'Topic :: Internet',
  73. 'Topic :: Scientific/Engineering',
  74. 'Topic :: System :: Distributed Computing',
  75. 'Topic :: System :: Systems Administration :: Authentication/Directory',
  76. 'Topic :: Software Development :: Libraries :: Python Modules'
  77. ],
  78. zip_safe = False,
  79. entry_points = {
  80. 'console_scripts': ['ndg_httpclient = ndg.httpsclient.utils:main',
  81. ],
  82. }
  83. )