| 1 |
Contributing |
| 2 |
============ |
| 3 |
|
| 4 |
Submitting a bug report |
| 5 |
----------------------- |
| 6 |
|
| 7 |
In case you experience issues using ``pyxs``, do not hesitate to report it |
| 8 |
to the `Bug Tracker <https://github.com/hmmlearn/hmmlearn/issues>`_ on |
| 9 |
GitHub. |
| 10 |
|
| 11 |
Setting up development environment |
| 12 |
---------------------------------- |
| 13 |
|
| 14 |
Writing a XenStore client library without having access to a running XenStore |
| 15 |
instance can be troublesome. Luckily, there is a way to setup a development |
| 16 |
using VirtualBox. |
| 17 |
|
| 18 |
1. Create a VM running Ubuntu 14.04 or later. |
| 19 |
2. `Install <http://www.skjegstad.com/blog/2015/01/19/mirageos-xen-virtualbox>`_ |
| 20 |
Xen hypervisor: ``sudo apt-get install xen-hypervisor-4.4-amd64``. |
| 21 |
3. `Configure <http://stackoverflow.com/a/10532299/262432>`_ VM for SSH access. |
| 22 |
4. Done! You can now ``rsync`` your changes to the VM and run the tests. |
| 23 |
|
| 24 |
Running the tests |
| 25 |
----------------- |
| 26 |
|
| 27 |
Only ``root`` is allowed to access XenStore, so the tests require ``sudo``:: |
| 28 |
|
| 29 |
$ sudo python setup.py test |
| 30 |
|
| 31 |
``pyxs`` strives to work across a range of Python versions. Use ``tox`` to |
| 32 |
run the tests on all supported versions:: |
| 33 |
|
| 34 |
$ cat tox.ini |
| 35 |
[tox] |
| 36 |
envlist = py26,py27,py34,py35,pypy |
| 37 |
|
| 38 |
[testenv] |
| 39 |
commands = python setup.py test |
| 40 |
$ sudo tox |
| 41 |
|
| 42 |
|
| 43 |
Style guide |
| 44 |
----------- |
| 45 |
|
| 46 |
``pyxs`` follows Pocoo style guide. Please |
| 47 |
`read it <http://www.pocoo.org/internal/styleguide>`_ before you start |
| 48 |
implementing your changes. |