-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setuptools_scm, include version in omero metadata #33
Conversation
Similarly to ome/ome-model#123, 👍 for enabling version introspection and 1: for starting to introduce some provenance metadata in the generated Zarr. Only thought is that this information could be moved to the the top-level dictionary as it's not specifically bound to |
We might want it at multiple levels? Your image might have one creator, and the masks another. |
The other thing to be aware of with |
|
Rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully tested by converting the first plate of idr0004
[sbesson@ome-zarr-dev1 ~]$ head -n 6 /uod/idr/objectstore/minio/idr/idr0004-thorpe-rad52/1751.zarr/.zattrs
{
"_creator": {
"name": "omero-zarr",
"version": "0.0.5.dev4+geb0700c"
},
"plate": {
From the PR, I was naively expecting the creator field to who up at the image levels as well but I realized that plate_to_zarr
does not call image_to_zarr
so this is expected (although I could imagine refactoring).
Overall, same feeling as discussed previously about the usage of setuptools_scm
, I like the versioning features a lot but am still undecided about its main limitations: no source archive installation, no tags on forks.
For this repository, I think it's acceptable and we can use it as a learning experience but more thoughts might be required for propagating it across the board.
Actually adding https://github.com/ome/omero-cli-zarr/runs/1321167390 to my list of high-level concerns with |
Without setuptools scm wouldn't you still have a problem with deploying |
Absolutely, I realized (remembered) the continuous delivery workflow of the Maybe said another way, with |
Follow up from Slack.... an example of how to add omero-cli-zarr version information into the metadata.
Obviously loads of questions like what do we name the field, do we have separate name/version fields, where in the metadata hierarchy does it belong.
Note with setuptools_scm the version is only updated when you run
python setup.py ...
orpip install ...
. For example this means if you usepip install -e .
and subsequently make a commit the version won't be updated.