Skip to content

v0.1.3

Choose a tag to compare

@mtravaillard mtravaillard released this 26 Oct 16:36
· 3 commits to main since this release

XactFlow 0.1.3

New

  • Library.add(document, path=None, *, replace=False) adds a document that only exists in memory, such as an importer's result, without writing it to XML first. It gets the same checks as a scanned file. replace=True overwrites an entry with the same VLNV instead of reporting a duplicate.
  • Library.add_file(path) adds a single IP-XACT file, with the same filtering and checks as scan.

Changed

  • Library.scan now raises FileNotFoundError or NotADirectoryError when a scan root does not exist or is not a directory. Before, a wrong path silently gave an empty library.
  • New warnings in library.diagnostics:
    • a scan root from which no IEEE 1685-2022 document was indexed;
    • a file from another IP-XACT version (e.g. 1685-2014), which is skipped.
  • LibraryEntry.path is now None for documents added without a path.

Breaking

  • Code that passed a scan root that doesn't exist and expected an empty library now gets an exception.

Fixes #3

Full Changelog: v0.1.2...v0.1.3