1.9 KiB
Developer Quickstart Guide
To run your first spyglass job, follow these steps from inside the airship-spyglass directory.
Install external dependencies if not already installed.
sudo apt install -y python3-pip sudo apt install -y tox
Set up an environment with tox.
tox -e py36 --notest
Enter the tox environment.
source .tox/py36/bin/activate
Install spyglass in the tox environment.
pip install -e .
Run spyglass on the example files to generate an intermediate document.
mkdir intermediate spyglass -g -s airship-seaworthy -t tugboat -idir intermediate --excel_spec spyglass/examples/excel_spec.yaml --excel spyglass/examples/SiteDesignSpec_v0.1.xlsx --additional_config spyglass/examples/site_config.yaml --template_dir spyglass/examples/templates/
Run spyglass on the intermediate document to generate manifests.
mkdir manifest_dir spyglass -m -i intermediate/airship-seaworthy_intermediary.yaml -mdir manifest_dir/ -tdir spyglass/examples/templates/