Release notes for sbmlsim 0.65.0
This is a breaking release. The data of a model package can have a license of its own, e.g. CC BY 4.0 for the machine perfusion data of pkdb_models (#817). ReleaseSettings.data_license is a required field, and a release and the factory refuse a web app whose licenses do not name the data license. The web app of a model vendors sbmlsim-web 0.11.1 (#818). See Migration for what a framework and a model package do.
Breaking
ReleaseSettings.data_license: License | Noneis required, without a default, so everyReleaseSettings(...)must state it (a construction without it raises aTypeError).Nonestates that the package has no separately licensed data and is no missing field ofmissing(). OnlyLicense.CC_BY_4_0andLicense.CC_BY_SA_4_0are allowed (DATA_LICENSESofsbmlsim.release.settings); any other value raises aValueError, MIT (a license of software, which speaks of "the Software", needs a copyright line and is already the filemit.txtof the code) and a string such as"cc-by-4.0"included.- A web app must name the data license. With a data license,
prepare_releaserefuses a declared app (Project.app) whoselicensesdo not name it, before the build, with aReleaseError, and the factory (webapp.assets.write_assets, i.e.Project.create_models) refuses every app it writes with aValueError, the app ofProject.default_appincluded, in place and in a rebuild. The message names the label, the licenses of the app, the entry to add (e.g.Data: CC BY 4.0) and where to add it (app_license_problemofsbmlsim.release.settings). An entry of CC BY-SA 4.0 for the models satisfies a data license of CC BY-SA 4.0. A framework which overridesProject.default_apppasseslicenses=self.default_app_licenses()(theReleaseSettings.app_licensesof the release, none without a release). .zenodo.jsonalways carriesnotes, HTML which lists the license of every part of the release (source code MIT, documentation and models CC BY-SA 4.0, and the data when the package has a data license), so the file of every release changes.licensestaysMIT: the deposit metadata of Zenodo has one license for every file of a record and no field for a second one.
Migration
- pkpdsim first: its override of
Project.default_apppasseslicenses=self.default_app_licenses(), otherwise the factory of a model package with a data license raises. - Then every model package sets
data_license=in itsReleaseSettings(aLicenseofDATA_LICENSESorNone) and, with a data license, names it in thelicensesof a declared app, e.g."Data: CC BY 4.0"(ReleaseSettings.app_licensesgives the entries of every part). - Run the factory again: the committed web app of a model package (
<name>_app.html) changes in the version of sbmlsim-web it names (and of sbmlsim), nothing else of it.
Added
License.CC_BY_4_0with its legal text (resources/licenses/cc-by-4.0.txt, byte for byte thelegalcode.txtof creativecommons.org, as the CC BY-SA 4.0 text is), andLicense.label(e.g.CC BY 4.0) andLicense.url.ReleaseSettings.licenses, the licensed parts of a release (LicensedPart,PART_LICENSES, withDataappended when a data license is set), which the badges, the README, the index of the docs and the Zenodo notes read, andReleaseSettings.app_licenses, the same as the entries of the footer of an app ("<part>: <license>"), whichProject.default_app_licenses()gives an override ofdefault_app.- With a data license the build writes its text beside the other licenses of the release (from the resources of sbmlsim, unless the factory wrote that file, e.g. CC BY-SA 4.0), and the README and the index of the docs show the badge
Data license: CC BY 4.0after the badge of the model license and the line* Data: [CC BY 4.0](...)under the licenses. The COMBINE archive is unchanged, since the data are not in it. Without a data license the README and the docs are the ones of before.
The web app
- sbmlsim-web 0.11.1 is vendored (#818), whose CDN snippets and example are on sbmlsim-core 0.62.0 and whose
AppPanelHead.columnsis typednumber | null. Only the version and the integrity of the package inVERSION.jsonchange: the script the web app embeds (sbmlsim-web.iife.js) is byte for byte the one of 0.11.0, so a web app written again differs only in the version of sbmlsim-web it names.
Documentation
docs/release.md: the data license, the check of the licenses of an app andapp_licenses;docs/licenses.md: the parts, their licenses and where every license text comes from and goes;docs/webapp.md: the licenses of an override ofdefault_app.