From bf51f50b4651d77b8323961e3b1dafaaea54e2a4 Mon Sep 17 00:00:00 2001 From: Nisha Agarwal Date: Tue, 24 Jun 2014 12:27:28 +0530 Subject: [PATCH] Add support for pbr --- AUTHORS | 4 ++++ CHANGES.txt | 1 - ChangeLog | 10 ++++++++++ MANIFEST.in | 2 -- README.md | 31 +------------------------------ README.rst | 17 +++++++++++++++++ setup.cfg | 24 ++++++++++++++++++++++++ setup.py | 18 ++++++------------ 8 files changed, 62 insertions(+), 45 deletions(-) create mode 100644 AUTHORS delete mode 100644 CHANGES.txt create mode 100644 ChangeLog delete mode 100644 MANIFEST.in mode change 100644 => 120000 README.md create mode 100644 README.rst create mode 100644 setup.cfg diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 00000000..5e38fbc1 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,4 @@ +Anusha Ramineni +Nisha Agarwal +Ramakrishnan G +hpproliant diff --git a/CHANGES.txt b/CHANGES.txt deleted file mode 100644 index b30c5ad3..00000000 --- a/CHANGES.txt +++ /dev/null @@ -1 +0,0 @@ -v0.1.0, 26/05/2014 -- Initial release. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 00000000..17b9e7ae --- /dev/null +++ b/ChangeLog @@ -0,0 +1,10 @@ +CHANGES +======= + +0.1.0 +----- + +* Add support for pbr +* Adding Documentation to ribcl module +* Submit ribcl ilo module +* Initial commit diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 2985d188..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,2 +0,0 @@ -include *.txt -recursive-include docs *.txt diff --git a/README.md b/README.md deleted file mode 100644 index 5b0c9d25..00000000 --- a/README.md +++ /dev/null @@ -1,30 +0,0 @@ -============== -Proliant Utils -============== - -Proliant Management Tools provides python libraries for interfacing and -managing various devices(like iLO) present in HP Proliant Servers. - -Currently, this module offers a library to interface to iLO4 using RIBCL. - -```python -#!/usr/bin/python - -from proliantutils.ilo import ribcl - -ilo_client = ribcl.IloClient('1.2.3.4', 'Administrator', 'password') -print ilo_client.get_host_power_status() -``` - -Currently, this module offers only a single unit test library: - -``` -$ python -m unittest proliantutils.tests.ilo.test_ribcl -................ ----------------------------------------------------------------------- -Ran 16 tests in 0.649s - -OK -$ -``` - diff --git a/README.md b/README.md new file mode 120000 index 00000000..92cacd28 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +README.rst \ No newline at end of file diff --git a/README.rst b/README.rst new file mode 100644 index 00000000..00f996db --- /dev/null +++ b/README.rst @@ -0,0 +1,17 @@ + +============== +Proliant Utils +============== + +Proliant Management Tools provides python libraries for interfacing and +managing various devices(like iLO) present in HP Proliant Servers. + +Currently, this module offers a library to interface to iLO4 using RIBCL. + +#!/usr/bin/python + + from proliantutils.ilo import ribcl + + ilo_client = ribcl.IloClient('1.2.3.4', 'Administrator', 'password') + print ilo_client.get_host_power_status() + diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..cbc87f81 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,24 @@ +[metadata] +name = proliantutils +summary = Client Library for interfacing with various + devices in HP Proliant Servers. +description-file = + README.rst +license = Apache License, Version 2.0 +author = Hewlett Packard +author-email = proliantutils@gmail.com +home-page = https://github.com/hpproliant/proliantutils +classifier = + Development Status :: 4 - Beta + Environment :: Console + Environment :: Web Environment + Intended Audience :: Developers + Intended Audience :: Information Technology + License :: OSI Approved :: Apache Software License + Operating System :: OS Independent + Programming Language :: Python + +[files] +packages = + proliantutils + diff --git a/setup.py b/setup.py index 8ab29951..b96e3990 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,7 @@ -from distutils.core import setup +#!/usr/bin/env python -setup( - name='ProliantUtils', - version='0.1.0', - author='Hewlett Packard', - packages=['proliantutils', - 'proliantutils/ilo', 'proliantutils/tests/ilo'], - license='LICENSE.txt', - description='A set of libraries for interfacing various devices in ' - 'Proliant servers.', - long_description=open('README.md').read(), -) +import setuptools + +setuptools.setup( + setup_requires=['pbr'], + pbr=True)