related to a quesiton by <@U04C230CT0V> 4 months b...
# general
f
related to a quesiton by @aloof-appointment-30987 4 months back https://pantsbuild.slack.com/archives/C046T6T9U/p1670511486132019 I am wanting to read the
vcs_version
file that is generated, and drop it into the
Copy code
python_artifact(
        name = "my_lib",
        version <-=-- HERE
    ),
field. what I can't workout is • do i write a plugin ? (have tried many a time to write one - but seem to get trapped on the documentation • do i write a Field ? (same how can I read the version file, and feed it into the field) context: • are using conventional commits • using
convco
to manage the version tagging and bumping (basically, if its main/ bump the version (in the CI script) but am stuck to how I get that setup_tools scm, version, into the verion field for the python artifact (full well knowing that the pyproject.toml itself, is told to use setuptools_scm, which also generates the same 🙂
Is there a good repo of pants plug-in examples ? My goal is depend upon vcs_version, read that file and supply the version string to python_artifact