Closed jaylamb closed 3 years ago
A few things:
eeschema_do bom_xml
generates an XML BOM, not a netlist. I vaguely remember documentation saying that KiBoM needs a netlist so the documentation may have previously referred to it as such.find
invocation (the *
may be expanded by the shell instead of being passed to find
).KiBOM_CLI.py
can be run directly. Explicitly invoking python3
is not necessary.Other than these, this design LGTM. I'll open a type-feature
issue for implementing this new feature shortly.
Feature Design Add traditional (spreadsheet style) bill of materials (BOM) generation CI script (
ci/generate-traditional-bom
) which will create a directory (bom
) within the project repository, if it does not already exist. The directory should be the target for the KiBom KiBOM_CLI script's output. This output should be a basic HTML BOM, which can be modified using a configuration file,bom.ini
, which is automatically generated the first time the script is run._Note: The script requires the BOM be available in the XML format. The KiAuto eeschema_do script's
bom_xml
function should be used to produce this._Feature Use Case This CI job will run automatically as a part of pull requests, releases, etc... and will produce a simple bill of materials for all printed circuit boards contained within a project repository.
Detailed Design
ci/generate-traditional-bom
to project:--help
: See other project scripts--version
: See other project scriptsfunction error()
: See other project scriptsfunction abort()
: See other project scriptsfunction display_help_text()
: See other project scriptsfunction display_version()
: See other project scriptsfunction main()
: See other project scriptsfunction generate_traditional_bom()
:.github/workflows/ci.yml
: