For this purpose, you will likely want virtualenv or Anaconda
Run pip install -e .[dev,test]
This installs all the development and test dependencies.
-
To run unit tests execute
python setup.py test -
To run end-to-end tests, start up an instance of batfish, make it point to
<stable_questions_dir>(as described above).Run
py.test tests/integration
- Ensure pybatfish is installed
- Ensure sphinx (the RTD theme) is installed by running
pip install sphinx sphinx_rtd_theme
Run:
cd docspython generate_questions_doc.pymake html(or other format, such asmake pdf)
Read (for html format):
- Open
docs/build/html/index.html
Run python setup.py bdist_wheel. This will create a wheel package inside the dist
folder. The wheel can be distributed and later installed using pip.
For example:
pip install ./pybatfish-<version>-py3-none-any.whl