For instructions on performing a release, see the Contribution Guide.
Memoria is built using the Python build system Hatch. To build a wheel or source tarball, you must:
-
Ensure Sass runs against any files in the templates and static web content folders.
# For example, using NPX: npx sass src/memoria/web/www/static/:src/memoria/web/www/static/ \ src/memoria/web/www/templates/:src/memoria/web/www/templates/
-
Build the package with
hatch build
:hatch build
The resulting source archive and wheel will be output in
./dist
.
The Containerfile builds Memoria entirely, including running Sass:
podman build -t ghcr.io/sidneys1/memoria .
# Or
podman-compose build memoria
# If using the Docker toolchain you may need to provide the -f parameter:
docker build -f Containerfile -t ghcr.io/sidneys1/memoria .
# Or
docker-compose -f compose.yaml build memoria