Source code for bacommon.build

# Released under the MIT License. See LICENSE for details.
#
"""Functionality related to game builds."""

from __future__ import annotations

import datetime
from dataclasses import dataclass, field
from typing import TYPE_CHECKING, Annotated

from efro.dataclassio import ioprepped, IOAttrs

if TYPE_CHECKING:
    pass


[docs] @ioprepped @dataclass class BuildInfoSet: """Set of build infos."""
[docs] @dataclass class Entry: """Info about a particular app build.""" filename: str size: int version: str build_number: int checksum: str createtime: datetime.datetime
builds: list[Entry] = field( default_factory=list )
# Docs-generation hack; import some stuff that we likely only forward-declared # in our actual source code so that docs tools can find it. from typing import (Coroutine, Any, Literal, Callable, Generator, Awaitable, Sequence, Self) import asyncio from concurrent.futures import Future