Skip to content

v0.13.0 - Fixed mltbx file name, error for a requirement without a license

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Nov 20:31

MATLAB Versions Tested

MatBox v0.13.0 lets a toolbox give its packaged .mltbx the same file name in every release, and names the GitHub requirement that has no license when packaging stops. Existing code keeps working; no migration is needed from v0.12.0.

Added

  • MltbxFileName, an optional top-level field in MLToolboxInfo.json, sets the file name of the packaged toolbox, with .mltbx appended if it is missing. It takes precedence over the ToolboxShortName option of packageToolbox. The file is still written to releases/, and a name that contains / or \ raises MatBox:Package:InvalidMltbxFileName. With a fixed name, the latest release can be downloaded from https://github.com/<owner>/<repo>/releases/latest/download/<MltbxFileName>.mltbx (#80).

Changed

  • When GitHub has no license for a GitHub requirement, packageToolbox stops with MatBox:GitHub:LicenseNotFound, which names the repository and asks for a LICENSE file. It used to stop with the 404 error of webread for the GitHub license endpoint. Packaging still stops, because MATLAB needs a license URL for each additional software package (#79).
All merged pull requests

What's Changed

  • fix: say which requirement has no license when packaging stops by @stevevanhooser in #79
  • feat: name the packaged mltbx from MltbxFileName in MLToolboxInfo.json by @ehennestad in #80

New Contributors

Full Changelog: v0.12.0...v0.13.0