Coverage for src/ezcompiler/shared/_constants.py: 100.00%
4 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-16 16:37 +0000
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-16 16:37 +0000
1# ///////////////////////////////////////////////////////////////
2# CONSTANTS - Shared release/upload layout constants
3# Project: ezcompiler
4# ///////////////////////////////////////////////////////////////
6"""Shared layout constants for the release/update flow.
8The upload side (UploaderService) writes the TUF tree under UPDATE_SUBDIR
9and the installer zip under RELEASE_SUBDIR; the client side
10(UpdaterService) reads the TUF tree from UPDATE_SUBDIR. Keeping these names
11in one place prevents the two sides from drifting apart.
12"""
14from __future__ import annotations
16# Subdirectory holding the signed TUF tree (metadata + targets).
17UPDATE_SUBDIR = "update"
19# Subdirectory holding the distributable installer zip.
20RELEASE_SUBDIR = "release"
22# Directories of the TUF repository that are published. Everything else
23# (notably the default keystore, <repo>/keystore) never leaves the machine.
24TUF_PUBLIC_DIRS = ("metadata", "targets")