Repository Layout¶
The repository is a uv workspace: each installable component is a package under packages/, and they share one lock file.
.
├── packages/
│ ├── sourcelab/ # The core: web application, API, workers, git hooks, and its tests
│ └── sourcelab-milters/ # Milter, turning email replies into comments
├── bin/ # Scripts to create the database and run the servers
├── alembic/ # Database migrations
├── files/ # Deployment files: systemd units, web server and sample configurations, RPM spec
├── dev/ # Development environments: containers, Vagrant
├── docs/ # This documentation
├── pyproject.toml # The workspace, the development tools and their configuration
├── uv.lock # The exact version of every dependency
├── noxfile.py # Test sessions, on each supported Python
├── Makefile # Common commands
└── layouts/ # The Myxo layouts: dev.toml for `make run`
In this documentation, a path like sourcelab/services/issues.py is relative to packages/sourcelab/src/.
| Package | Installed by uv sync |
Notes |
|---|---|---|
sourcelab |
Yes | With its ci and postgresql extras |
sourcelab-milters |
No | One module, comment_email_milter. It needs libmilter to build: use uv sync --all-packages |
The root of the workspace isn't a package. It only holds the development tools, in the dev dependency group, and the configuration of those tools.
Next steps¶
- Getting Started sets up a development instance.
- Architecture explains how the code fits together.
- Contributing lists what we ask of a patch.