Development environment#
Set up Python environments for the server and for the components that stay separate.
A coding agent can do this setup for you: the toolkit-onboarding skill in
.claude/skills/ checks the prerequisites, creates the environments below, checks out cuGeo
for the Sentinel ingest pipeline and runs the checks. Other agents can install it with
npx skills add <repository> --skill toolkit-onboarding.
Prerequisites#
Linux or macOS, Git, Python 3.12 and uv.
Docker only for Compose validation and image builds.
Node.js and npm only for the console.
Use Python 3.12 even if uv would pick a newer version: one test pins fingerprints that
change with the ast module of Python 3.13.
The server workspace#
The server (geonemo-server) and every part it mounts share one uv workspace and one lock,
uv.lock, at the repository root.
uv sync --locked --all-packages --extra dev --python 3.12
. .venv/bin/activate
Workspace member |
Distribution |
|---|---|
|
|
|
|
|
|
|
The packs |
|
The reference parts |
Each folder is its own import package: core/api/app.py is geonemo.core.api.app.
Separate environments#
These have their own lock files and are not workspace members, so their dependencies never mix with the server’s.
Component |
Environment |
|---|---|
Skills tests |
|
Native NeMo agents |
|
Sentinel ingest pipeline |
|
Documentation site |
|
Light part clients |
|
Console |
|
ci/setup.sh services|skills|agents|pipeline|client installs what CI installs.
Check the setup#
geonemo-services --help
python3 ci/import_rules.py
The first prints the admin CLI, including the commands of every part in the development
parts list (deploy/development/parts.yaml). A checkout loads that list when no
GEONEMO_PARTS_FILE is set, and skips a listed part whose folder is missing.
Notes#
Build outputs (
build/,*.egg-info,.venv/) must not be committed. Diagram generators count files, so run them from a clean export. See Regenerate diagrams.Never run the development stack’s
upordownagainst a shared host without a separate Compose project name, ports and image tag.