File: download_install.rst

package info (click to toggle)
python-oerplib 0.8.3-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,212 kB
  • ctags: 503
  • sloc: python: 3,232; makefile: 115
file content (61 lines) | stat: -rw-r--r-- 1,708 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.. _download-install:

Download and install instructions
=================================

Python Package Index (PyPI)
---------------------------

You can install OERPLib with the `easy_install` tool::

    $ easy_install oerplib

Or with `pip`::

    $ pip install oerplib

An alternative way is to download the tarball from
`Python Package Index <http://pypi.python.org/pypi/OERPLib/>`_ page,
and install manually (replace `X.Y.Z` accordingly)::

    $ wget http://pypi.python.org/packages/source/O/OERPLib/OERPLib-X.Y.Z.tar.gz
    $ tar xzvf OERPLib-X.Y.Z.tar.gz
    $ cd OERPLib-X.Y.Z
    $ python setup.py install

No dependency is required except `pydot <http://code.google.com/p/pydot/>`_ for
some methods of the :class:`inspect <oerplib.service.inspect.Inspect>` service
(optional).

Source code
-----------

The project is hosted on `GitHub <https://github.com/osiell/oerplib>`_.
To get the last stable version (the ``master`` branch), just type::

    $ git clone https://github.com/osiell/oerplib.git

.. note::

    The project uses the `git-flow` branching model. To contribute, please
    refer to it.

Run tests
---------

.. versionadded:: 0.4.0

Unit tests depends on `unittest2` (Python 2.3+) or `unittest`
(Python 2.7 and 3.x), and `argparse`.

To run unit tests from the project directory, run the following command::

    $ PYTHONPATH=.:$PYTHONPATH ./tests/runtests.py --help

Then, set your parameters in order to indicate the `OpenERP` server on which
you want to perform the tests, for instance::

    $ PYTHONPATH=.:$PYTHONPATH ./tests/runtests.py --create_db --server 192.168.1.4 --test_xmlrpc --xmlrpc_port 8069

The name of the database created is ``oerplib-test`` by default.