Prerequisites¶
Entrabot requires:
- A Microsoft 365 development tenant where you can create app registrations and grant admin consent
- A license that includes Teams and Outlook (E3 or E5 dev tenant licenses work)
- On macOS and Linux: Python 3.12 or newer, and a key store for the agent's sign-in key (the login keychain on a Mac; a Secret Service keyring such as GNOME Keyring or KWallet on Linux)
You do not need the Azure CLI, an az login, or Git first: setup offers to install a private Azure CLI, signs you in itself, and works from a downloaded ZIP of the repository.
On Windows you install nothing first. Skip this page and go to Windows: the setup script finds or downloads Python and builds the environment itself.
Get the code¶
Or download the source code ZIP of the latest release from https://github.com/microsoft/entrabot/releases/latest and extract it.
This clones the latest release, v0.3.1. main is development and may be ahead of it. Git then prints a note about a "detached HEAD": that is normal when you check out a release tag, not an error. To upgrade an existing install, see Upgrading to a new release.
macOS and Linux¶
Nothing more to install by hand. ./scripts/setup.sh creates .venv and installs Entrabot into it. If it finds no Python 3.12 or newer, it says how to install one: on a Mac, brew install python@3.12 or ./scripts/prereqs-macos.sh; on Debian and Ubuntu, sudo apt install python3.12 python3.12-venv; on Fedora and RHEL, sudo dnf install python3.12. See macOS and Linux.
Windows¶
Nothing to do here. scripts\setup-windows.cmd creates .venv and installs Entrabot into it. See Windows.
Development tools¶
Setup installs what the agent needs, not the test tools. To work on Entrabot's code, add them to the same environment after setup has run once.
On macOS and Linux:
.venv/bin/python -m pip install -e ".[dev]"
.venv/bin/python -m pytest -v --tb=short
.venv/bin/python -m ruff check .
On Windows:
Without setup, create the environment yourself first (python3.12 -m venv .venv).
Next step¶
Continue to platform-specific setup: macOS and Linux or Windows.