Ingeniamotion
Ingeniamotion is a library that works over ingenialink and aims to simplify the interaction with Ingenia's drives.
Requirements
- Python 3.6
- WinPcap 4.1.3
Build Module
Install locally:
python setup.py build_ext -i
python setup.py install
Generate .whl file:
python setup.py build_ext -i
python setup.py bdist_wheel
Generate documentation
For develop the documentation it's recommended uninstall the ingeniamotion in the pipenv and remove all the .pyd files. Now we can ensure sphinx will get the data from the source.
Build HTML documentation
It's recommended remove first the _docs folder.
sphinx-build -b html docs _docs
Build PDF documentation
It's recommended remove first the _pdf folder.
sphinx-build -b pdf docs _pdf
Run PyTest
Fill configuration json tests/config.json
.
Run tests with target protocol (eoe, soem or canopen). For example:
pytest --protocol soem