Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.21 KB

BUILDING.md

File metadata and controls

47 lines (33 loc) · 1.21 KB

Building

For instructions on performing a release, see the Contribution Guide.

Python

Memoria is built using the Python build system Hatch. To build a wheel or source tarball, you must:

  1. 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/
  2. Build the package with hatch build:

    hatch build

    The resulting source archive and wheel will be output in ./dist.

Containers

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