Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Effort-based Versioning. (Changes to features documented as “experimental” will not increment macro and meso version numbers.)
Unreleased¶
(no changes yet)
4.3.0a0 - 2026-11-25¶
This first development release takes over the inventory tools and the Zenodo synchronization of StepUp RepRep 4.2, under new names and with the changes listed below. Inventories written by StepUp RepRep 4.2 can be read and checked without changes, and its Zenodo configuration files and record-id files are used without changes.
Added¶
- The environment variable
STEPUP_DATA_ZENODO_TOKENis registered with StepUp Core, sostepup configlists it without showing its value. - The arguments
includeandexcludeofmake_inventory(), and the options--includeand--excludeofsd-make-inventory, select files with patterns, see Selecting Files. - The arguments
include_info_inpandinclude_info_outofmake_inventory(), and the options--include-info-inpand--include-info-outofsd-make-inventory, add the inputs or outputs listed in step info files to an inventory, see Files Listed in Step Info Files. - The option
--hash noneofsd-make-inventory, andhash_algorithm=Noneofmake_inventory(), write an inventory without digests, see Hash Algorithm.sd-check-inventoryandsd-zip-inventorythen only check the sizes, permission bits and link targets.
Changed¶
- The module
stepup.reprep.inventory, which defines the format of inventories, is nowstepup.data.inventory. - The functions
make_inventory()andzip_inventory()ofstepup.reprep.apiare now instepup.data.api. - The commands
srr-make-inventory,srr-check-inventoryandsrr-zip-inventoryare nowsd-make-inventory,sd-check-inventoryandsd-zip-inventory. - The pytest helpers of
stepup.reprep.pytest, which mask the permission bits in inventories, are now instepup.data.pytest. - The function
sync_zenodo()ofstepup.reprep.apiis now instepup.data.api, and the commandsrr-sync-zenodois nowsd-sync-zenodo, see Synchronize a Zenodo Dataset. - The Zenodo token is taken from the environment variable
STEPUP_DATA_ZENODO_TOKEN. The environment variableREPREP_ZENODO_TOKENhas no effect. sd-zip-inventoryamends the listed files as inputs of its step, so the ZIP file is rebuilt when a file changes, even when its inventory stays the same.make_inventory(dest, *, paths=())replacesmake_inventory(*paths), whose last positional argument was the inventory to write. The files to list are now given aspaths, like the other arguments that select files, e.g.make_inventory("inventory.jsonl", paths=["a.txt", "b.txt"]). A call written for StepUp RepRep 4.2 raises an error instead of being misread.zip_inventory(path_inventory, dest=None)replaceszip_inventory(path_inventory, path_zip). By default, the ZIP file is written next to the inventory, with suffix.zip, as withsd-zip-inventory, anddestmay also be a directory.
Removed¶
- Inventory definition files (
inventory.def), the option-iofsd-make-inventoryand the argumentpath_defofmake_inventory(). Their rules looked for files in places that StepUp does not track, such as the directory listing, the git index or the database of a workflow, so an inventory could miss files or depend on the number of parallel jobs. The rules of a definition file are replaced as follows:include PATTERNbecomesinclude="PATTERN", with the pattern now relative to the directory ofplan.py, not to that of the definition file.exclude PATTERNbecomesexclude="PATTERN".include-git: list the files inplan.py, or archive the sources withgit archive.include-workflow: list the outputs by name, e.g. from theStepInforeturned by the step that builds them.