Installation Guide¶
- Create an environment with Python
3.9or higher, usingpyenvorconda.- For
pyenv, use the following commands:brew install pyenv pyenv install 3.9 pyenv local 3.9 - To set up your PATH automatically every time you open a shell session, add this to your .zshrc file:
eval "$(pyenv init -)"
- For
-
Clone the repository.
git clone git@github.com:ServiceNow/sygra.git -
Install uv (fast Python package manager)
# macOS/Linux (script) curl -LsSf https://astral.sh/uv/install.sh | sh # or with pipx pipx install uv - Run the following command to install all core dependencies.
make setup - (Optional) In your IDE, set your Python interpreter to the project virtual environment created by uv.
The interpreter will be at
.venv/bin/pythonin the project root aftermake setup.
Optional¶
SyGra UI Setup¶
To run SyGra UI, Use the following command:
make setup-ui
SyGra All features Setup¶
To utilize both SyGra Core and UI features, Use the following command:
make setup-all
SyGra Development Setup¶
To set up your development environment, Use the following command:
make setup-dev