Update doc again

This commit is contained in:
Uggla 2016-04-07 15:26:35 +02:00
parent dbf6a0a530
commit 2b3c082485
7 changed files with 28 additions and 28 deletions

View File

@ -2,4 +2,4 @@ If you would like to contribute to the development of this project.
Submit your pull request and issues to https://github.com/bcornec/python-redfish. Submit your pull request and issues to https://github.com/bcornec/python-redfish.
You can also share and discuss on the mailing list as well. You can also share and discuss on the mailing list as well at http://mondorescue.org/sympa/arc/python-redfish.

View File

@ -1,5 +1,5 @@
python-redfish The python-redfish project
============== ==========================
This repository will be used to house the python-redfish library, a reference This repository will be used to house the python-redfish library, a reference
implementation to enable Python developers to communicate with the Redfish API implementation to enable Python developers to communicate with the Redfish API
@ -20,7 +20,7 @@ The full documentation is available at
http://pythonhosted.org/python-redfish/installation.html http://pythonhosted.org/python-redfish/installation.html
Project Structure Project Structure
------------------- -----------------
This project follows the same convention as OpenStack projects, eg. using pbr This project follows the same convention as OpenStack projects, eg. using pbr
for build and test automation:: for build and test automation::
@ -54,10 +54,10 @@ Note: Running tests requires Docker engine.
Note: The program was tested with Python 2.7.10 and 3.4.2 however it might work Note: The program was tested with Python 2.7.10 and 3.4.2 however it might work
as well with all Python 3 releases. as well with all Python 3 releases.
Get the sources Get the source code
--------------- -------------------
The sources are available on github and can be retrieved using:: The source code is available on github and can be retrieved using::
git clone https://github.com/bcornec/python-redfish git clone https://github.com/bcornec/python-redfish

View File

@ -2,7 +2,7 @@
Developer setup Developer setup
=============== ===============
#. Follow `get the sources <http://pythonhosted.org/python-redfish/readme.html#get-the-sources>`_ section to retrieve the sources. #. Follow `get the source code <http://pythonhosted.org/python-redfish/readme.html#get-the-source-code>`_ section to retrieve the sources.
#. Follow `using pip and virtualenv <http://pythonhosted.org/python-redfish/installation.html#using-pip-and-virtualenv>`_ section to create your environment. #. Follow `using pip and virtualenv <http://pythonhosted.org/python-redfish/installation.html#using-pip-and-virtualenv>`_ section to create your environment.
You can start hacking the code now. You can start hacking the code now.

View File

@ -5,7 +5,6 @@ Help required
We need help on the following topic: We need help on the following topic:
- debian/ubuntu dependencies packaging. - debian/ubuntu dependencies packaging.
- python3 testing.
- installation on distributions which are not Fedora or Mageia. - installation on distributions which are not Fedora or Mageia.
- documentation. - documentation.

View File

@ -16,13 +16,13 @@ There are available at ftp://ftp.project-builder.org
As an example for Fedora 23 use the following: As an example for Fedora 23 use the following:
As root get the repo file:: 1. As root get the repo file::
cd /etc/yum.repos.d && wget ftp://ftp.project-builder.org/fedora/23/x86_64/python-redfish.repo cd /etc/yum.repos.d && wget ftp://ftp.project-builder.org/fedora/23/x86_64/python-redfish.repo
Install using dnf:: 2. Install using dnf::
dnf install python-redfish dnf install python-redfish
.. ..
@ -87,7 +87,7 @@ access on your system, please follow `Using pip and virtualenv`_ section.
Using source code Using source code
----------------- -----------------
#. Follow `get the source code <http://pythonhosted.org/python-redfish/readme.html#get-the-sources>`_ section to retrieve it. #. Follow `get the source code <http://pythonhosted.org/python-redfish/readme.html#get-the-source-code>`_ section to retrieve it.
#. Install from the source code using:: #. Install from the source code using::
python setup.py install --prefix="/usr/local" python setup.py install --prefix="/usr/local"
@ -100,7 +100,7 @@ Inside the project tree there is a mechanism to build rpm packages for distribut
The mechanism is based on `project builder <http://www.project-builder.org/>`_ tool. The mechanism is based on `project builder <http://www.project-builder.org/>`_ tool.
#. Follow `get the source code <http://pythonhosted.org/python-redfish/readme.html#get-the-sources>`_ section to retrieve it. #. Follow `get the source code <http://pythonhosted.org/python-redfish/readme.html#get-the-source-code>`_ section to retrieve it.
#. Download project builder for your distribution from ftp://ftp.project-builder.org. #. Download project builder for your distribution from ftp://ftp.project-builder.org.
#. Clone the project to your own github account. #. Clone the project to your own github account.
#. Create a .pbrc with the following content, replace "/workspace/python/redfish" and "uggla" with your own directory and account:: #. Create a .pbrc with the following content, replace "/workspace/python/redfish" and "uggla" with your own directory and account::
@ -114,10 +114,9 @@ The mechanism is based on `project builder <http://www.project-builder.org/>`_ t
pb -p python-redfish sbx2pkg pb -p python-redfish sbx2pkg
or:: or::
pb -p python-redfish sbx2pkg2ins pb -p python-redfish sbx2pkg2ins
#. All packages (srpm/rpm) should be available into the build directory, then install the package using rpm:: #. All packages (srpm/rpm) should be available into the build directory, then install the package using rpm::
rpm -Uvh python-redfish/build/RPMS/python-redfish-devel20160213182552.rpm rpm -Uvh python-redfish/build/RPMS/python-redfish-devel20160213182552.rpm
@ -145,8 +144,10 @@ Note: The inventory file is created in $HOME/.redfish
Mockup installation Mockup installation
=================== ===================
#. Follow `get the source code <http://pythonhosted.org/python-redfish/readme.html#get-the-sources>`_ section to retrieve it. #. Follow `get the source code <http://pythonhosted.org/python-redfish/readme.html#get-the-source-code>`_ section to retrieve it.
#. Install docker using your distribution packages or the docker `procedure <https://docs.docker.com/engine/installation/>`_ (docker provides more recent packages):: #. Install docker using your distribution packages or the docker `procedure <https://docs.docker.com/engine/installation/>`_ (docker provides more recent packages):
As an example for Fedora 23 use the following::
dnf install docker dnf install docker
systemctl enable docker.service systemctl enable docker.service
@ -170,14 +171,14 @@ Note : in the above screenshot, firefox JSON-handle extension is used. If you wa
Testing against the mockup Testing against the mockup
========================== ==========================
#. Follow `Host configuration file configuration`_ and `Mockup installation`_ section. #. Follow `Inventory file configuration`_ and `Mockup installation`_ section.
#. Run the following command:: #. Run the following command::
redfish-client manager getinfo redfish-client manager getinfo
The result should be like this:: The result should be like this::
(pypi)[uggla@ugglalaptop dmtf]$ redfish-client manager getinfo $ redfish-client manager getinfo
Gathering data from manager, please wait... Gathering data from manager, please wait...
Redfish API version : 1.00 Redfish API version : 1.00
@ -231,10 +232,10 @@ The result should be like this::
Building local documentation Building local documentation
============================ ============================
Building the html documentation locally Building the html documentation locally.
#. Follow `get the sources <http://pythonhosted.org/python-redfish/readme.html#get-the-sources>`_ section to retrieve the sources. #. Follow `get the source code <http://pythonhosted.org/python-redfish/readme.html#get-the-source-code>`_ section to retrieve it.
#. Jump in the doc directory:: #. Jump in the doc directory::
cd doc cd doc
@ -245,7 +246,7 @@ Building the html documentation locally
If you want to build the documentation in pdf. If you want to build the documentation in pdf.
#. Get texlive full distribution, ex on Fedora:: #. Get texlive full distribution, e.g. on Fedora 23::
dnf install texlive-scheme-full dnf install texlive-scheme-full
#. Build the documentation:: #. Build the documentation::

View File

@ -14,7 +14,7 @@ redfish-client tests
#. Create your development environment following `Developer setup <develsetup.html>`_. #. Create your development environment following `Developer setup <develsetup.html>`_.
#. Install docker using the `procedure <https://docs.docker.com/engine/installation/>`_. #. Install docker using the `procedure <https://docs.docker.com/engine/installation/>`_.
#. Ensure you can use docker with your current user. #. Ensure you can use docker with your current user.
#. Jump into python-redfish directory containing the sources. #. Jump into the python-redfish directory containing the source code.
#. Depending of your distribution, you may have to upgrade setuptools:: #. Depending of your distribution, you may have to upgrade setuptools::
pip install --upgrade setuptools pip install --upgrade setuptools

View File

@ -11,8 +11,8 @@ redfish mockup.
Example using a proliant Example using a proliant
------------------------ ------------------------
example/simple-proliant.py provide a simple library usage to interact with a HP example/simple-proliant.py provide a simple library usage to interact with a HPE
proliant BL460C G9 server. However this example should work on any server supplier following redfish ProLiant BL460C G9 server. However this example should work on any server supplier following redfish
standard. standard.
redfish-client usage redfish-client usage
@ -22,5 +22,5 @@ The client usage can be display using::
redfish-client -h redfish-client -h
This is also available at http://pythonhosted.org/python-redfish/redfish-client.html . This is also available at http://pythonhosted.org/python-redfish/redfish-client.html.