-
Notifications
You must be signed in to change notification settings - Fork 21
devinstall
Ladislav Lhotka edited this page Feb 15, 2025
·
10 revisions
Yangson now uses Poetry for managing dependencies and virtual environments. This simpifies considerably the initial setup of the development environment:
-
Install Poetry, for instance using these instructions.
-
Clone the Yangson project in a directory of your choice:
$ git clone git@github.com:CZ-NIC/yangson.git $ cd yangson
-
Install dependencies:
$ poetry install
It is often useful to install other YANG tools, in particular pyang. To do so, use the following command instead:
$ poetry install --all-extras
-
Install poetry shell plugin:
$ poetry self add poetry-plugin-shell
-
Activate the virtual environment:
$ poetry shell
-
Check that everything was correctly installed by running
$ make test $ cd docs $ make doctest
-
Documentation can be built locally by running
$ make html
in the
docs
subdirectory.
See Poetry documentation for further details.