forked from canonical/python-libmaas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
74 lines (51 loc) · 2.2 KB
/
README
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
62
63
64
65
66
67
68
69
70
71
72
73
74
python-libmaas
==============
Python client API library made especially for
`MAAS <https://maas.io/>`__.
|Build Status| |codecov.io|
Installation
------------
All the dependencies are declared in ``setup.py`` so this can be
installed with `pip <https://pip.pypa.io/>`__. Python 3.5 is required.
When working from trunk it can be helpful to use ``virtualenv``:
::
$ virtualenv --python=python3.5 amc && source amc/bin/activate
$ pip install git+https://github.com/maas/python-libmaas.git
$ maas --help
Releases are periodically made to `PyPI <https://pypi.python.org/>`__
but, at least for now, it makes more sense to work directly from trunk.
Documentation
-------------
Documentation can be generated with ``make docs`` which publishes into
the ``site`` directory. Recent documentation is also published to the
`MAAS Client Library & CLI
documentation <http://maas.github.io/python-libmaas/>`__ site.
Development
-----------
It's pretty easy to start hacking on *python-libmaas*:
::
$ git clone git@github.com:maas/python-libmaas.git
$ cd python-libmaas
$ make develop
$ make test
Installing `IPython <https://ipython.org/>`__ is generally a good idea
too:
::
$ bin/pip install -UI IPython
Pull requests are welcome but authors need to sign the `Canonical
contributor license
agreement <https://www.ubuntu.com/legal/contributors>`__ before those
PRs can be merged.
History & licence
-----------------
In short: `AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>`__.
*python-libmaas* was begun by a core MAAS developer, Gavin Panella, on
his own time, but is now maintained by the core MAAS team at Canonical.
It is licensed under the GNU Affero GPLv3, the same as MAAS itself.
Some of the code in here has come from MAAS, upon which Canonical Ltd
has the copyright. Gavin Panella licenses his parts under the AGPLv3,
and MAAS is also under the AGPLv3, so everything should be good.
.. |Build Status| image:: https://travis-ci.org/maas/python-libmaas.svg?branch=master
:target: https://travis-ci.org/maas/python-libmaas
.. |codecov.io| image:: https://codecov.io/github/maas/python-libmaas/coverage.svg?branch=master
:target: https://codecov.io/github/maas/python-libmaas?branch=master