Repository navigation
Bakery v1.1.0 - Bake in Data Sheets
Summary
This PR adds datasheet localization to the Bakery plugin and includes bug fixes, unit tests, and documentation updates.
What's New in 1.1.0
Feature: Datasheet Localization
- New
data_sheet_localizer.pymodule scans symbol libraries and schematics for datasheet references - Downloads PDF datasheets from internet URLs (http://, https://)
- Copies local PDF datasheet files to project directory
- Only processes PDF format files — non-PDF files are skipped
- Deduplicates references to avoid copying the same datasheet multiple times
- Compares file modification dates — keeps the latest version
- Updates all datasheet references in
.kicad_symand.kicad_schfiles to use portable${KIPRJMOD}paths - Creates
Data_Sheets/directory in project (configurable via GUI) - Integrated into main plugin workflow (runs automatically after symbol localization)
Bug Fixes
- Fixed S-expression parser property name handling: parser preserves quotes on tokens, causing property names not to match — symbols with datasheet URLs were silently skipped
- Fixed
safe_read_fileerror handling: callers now catchFileNotFoundErrorinstead of checking empty return value, preventing unhandled exceptions on missing files
Unit Tests
- New
Unit Test/test_data_sheet_localizer.py: 74 tests covering allDataSheetLocalizermethods - Updated
Unit Test/run_tests.py: addedcgimodule stub for Python 3.13+ compatibility - Total test suite: 232 tests, 0 failures, 0 errors
Other Changes
- Reformatted
metadata.jsonandplugins/metadata.jsonto RFC 8259 standard - Fixed ZIP filename format in
create_release.batto use underscores (x_y_z) for filename