Skip to content

Bakery v1.1.0 - Bake in Data Sheets

Choose a tag to compare

@AdrianWest AdrianWest released this 24 Feb 03:59
· 17 commits to main since this release
15dfbb7

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.py module 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_sym and .kicad_sch files 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_file error handling: callers now catch FileNotFoundError instead of checking empty return value, preventing unhandled exceptions on missing files

Unit Tests

  • New Unit Test/test_data_sheet_localizer.py: 74 tests covering all DataSheetLocalizer methods
  • Updated Unit Test/run_tests.py: added cgi module stub for Python 3.13+ compatibility
  • Total test suite: 232 tests, 0 failures, 0 errors

Other Changes

  • Reformatted metadata.json and plugins/metadata.json to RFC 8259 standard
  • Fixed ZIP filename format in create_release.bat to use underscores (x_y_z) for filename