setup.py 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  2. #
  3. # Modifications made by Cloudera are:
  4. # Copyright (c) 2016 Cloudera, Inc. All rights reserved.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License"). You
  7. # may not use this file except in compliance with the License. A copy of
  8. # the License is located at
  9. #
  10. # http://aws.amazon.com/apache2.0/
  11. #
  12. # or in the "license" file accompanying this file. This file is
  13. # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
  14. # ANY KIND, either express or implied. See the License for the specific
  15. # language governing permissions and limitations under the License.
  16. from codecs import open
  17. from os import path
  18. import sys
  19. from setuptools import find_packages
  20. from setuptools import setup
  21. here = path.abspath(path.dirname(__file__))
  22. # Get the long description from the README file
  23. with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
  24. long_description = f.read()
  25. requirements = ["python-dateutil>=2.1,<3.0.0",
  26. "docutils>=0.10",
  27. "pyyaml>=3.11",
  28. "colorama>=0.2.5,<=0.3.3",
  29. "pycrypto>=2.6.1",
  30. "requests>=2.9.1"]
  31. if sys.version_info[:2] == (2, 6):
  32. requirements.append("argparse>=1.1")
  33. requirements.append("ordereddict==1.1")
  34. requirements.append("simplejson==3.3.0")
  35. setup(
  36. name='navoptapi',
  37. version='0.1.0',
  38. description='Cloudera Navigator Optimizer Api',
  39. long_description=long_description,
  40. url='http://www.cloudera.com/',
  41. license='Apache License 2.0',
  42. classifiers=[
  43. 'Development Status :: 3 - Alpha',
  44. 'Intended Audience :: Developers',
  45. 'Topic :: Software Development :: System Administrators',
  46. 'License :: OSI Approved :: Apache License 2.0',
  47. 'Natural Language :: English',
  48. 'Programming Language :: Python',
  49. 'Programming Language :: Python :: 2.6',
  50. 'Programming Language :: Python :: 2.7,'
  51. 'Programming Language :: Python :: 3',
  52. 'Programming Language :: Python :: 3.3',
  53. 'Programming Language :: Python :: 3.4'
  54. ],
  55. packages=find_packages(exclude=['tests']),
  56. include_package_data=True,
  57. install_requires=requirements,
  58. )