Closed kba closed 1 year ago
"Obvious need" ;) Personally I don't think so, but to make my life easier I'll stick some kind of semver version on it.
I'll merge #72 after fixing the rest of it and then merge this and release 1.0.0. Probably this week
obvious need
I just meant that you need to somehow distinguish two releases once you start doing them ;-)
obvious need I just meant that you need to somehow distinguish two releases once you start doing them ;-)
Not going to discuss it further, as it would be not productive :) I'll just stick to semver to meet the expectation.
Is there some kind of reusable CircleCI workflow/job to check the git version tag against the version in the JSON file? Otherwise I'll try to come up with one.
Is there some kind of reusable CircleCI workflow/job to check the git version tag against the version in the JSON file? Otherwise I'll try to come up with one.
No, but that would be very useful indeed!
Is there some kind of reusable CircleCI workflow/job to check the git version tag against the version in the JSON file? Otherwise I'll try to come up with one.
No, but that would be very useful indeed!
Now that I was touching all this setuptools + GH Action stuff anyway, I came up with this:
It doesn't test yet and the workflow should be reusable (ideally). (Main motivation is that I do not like having to remember all these things correctly)
I'm closing this PR: I moved to pyproject.toml and setuptools-ocrd! dinglehopper now has a temporary version of 0.9.0 and will get a PyPI release soon!
The package should have a version, I set it to
0.0.1
for now but how you version is up to you of course. Besides the obvious need for versioning when releasing to PyPI and/or GitHub, we add the processor call, version and parameters as amets:agent
to themets.xml
to help debug/reconstruct the processing. Currently this will showdinglehopper vNone
.The pattern we use for this is to only ever change the version number in
ocrd-tool.json
and read it from there in thesetup.py
. That way you only need to change it once when releasing.