Open nedbat opened 11 months ago
I understand it now better than I did in Discord! :)
A scriv-specific entrypoint seems esoteric to me, I'm not sure many tools would implement one. Running a command would let individual adopters plug tools together without the other tool needing to provide a scriv endpoint. But is it safe to have a config file in your repo with command: run_untrusted_code blah blah
as a setting?
the ux would be better than having a RELEASING.md
that tell people to copy&paste sciv ... --version $(...)
or a extra integration script
personally i'd prefer a entrypoint or actually using build
i recently learned that build has a entrypoint to get the project metadata, so perhaps it wouldbe a acceptable comprmise to ask build as opposed to all/random tools
I realized that a shell command in a scriv setting is no worse than a Makefile or tox.ini full of shell commands, or any other way we have to automate local execution.
But tell me more about using build. What's the invocation, and what would that look like?
https://pypa-build.readthedocs.io/en/latest/api.html#build.util.project_wheel_metadata is the api I believe ought to be used
Once I'm back to the computer I can do a example call
I added command:
syntax in commit 951c0f8.
command:
is now released as part of scriv 1.4.0.
From a discussion in Discord with @RonnyPfannschmidt: