Show the plugin version in summary.txt
Build PCM package / build (push) Successful in 5s
tests / ubuntu-latest · py3.11 (push) Successful in 1m32s
tests / ubuntu-latest · py3.13 (push) Successful in 1m8s
tests / archlinux:latest (push) Successful in 31s
tests / debian:12 (push) Successful in 40s
tests / fedora:latest (push) Successful in 52s
tests / ubuntu:24.04 (push) Successful in 56s
tests / NixOS (FHS wrapper from docs/NIXOS.md) (push) Has been skipped

fill_resistance.__version__ is the runtime source (metadata.json and
pyproject.toml are excluded from deployment); a test pins all three
to the same number.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
janik
2026-07-24 17:16:04 +07:00
co-authored by Claude Fable 5
parent 8aff1c0be9
commit 31ef356345
3 changed files with 44 additions and 3 deletions
+4 -3
View File
@@ -7,7 +7,7 @@ from pathlib import Path
import numpy as np
from . import config
from . import __version__, config
from .geometry import Problem, save_problem
from .raster import RasterStack
from .solver import Result
@@ -59,9 +59,10 @@ def write_summary(outdir: Path, problem: Problem, stack: RasterStack,
result: Result) -> Path:
ny, nx = stack.shape2d
info = result.solve_info
head = f"fill_resistance {__version__} summary"
lines = [
"fill_resistance summary",
"=======================",
head,
"=" * len(head),
f"board: {problem.board_path}",
f"net: {problem.net_name}",
f"test current: {result.i_test:g} A",