I have a question on how to use a version derived ...
# general
c
I have a question on how to use a version derived from a git tag for a specific package in a monorepo. I.e. I have a package in
src/python/libs/mypackage
and a git tag of
mypackage/v0.1.0
and would like to use version
0.1.0
in the pants generated python artifact. I was able to do this with a plugin and https://docs.pantsbuild.org/2.18/docs/writing-plugins/common-plugin-tasks/custom-python-artifact-kwargs But would like to know how to do this using
pyproject.toml
without explicitly using setup.py ?
h
Pants can use a pyproject.toml you provide, but if you want it to generate the distribution build data itself then currently it does so by generating a setup.py. But this should be largely an internal implementation issue. What problem are you seeing?
https://github.com/pantsbuild/pants/issues/12487 tracks Pants generating pyproject.toml
But no one has picked it up yet
c
@happy-kitchen-89482 thanks for the info. I'll do some experiments with pyproject.toml and version generation. Will let you know if I have any issues.
h
SG