Hello! I have a project that is currently configur...
# general
s
Hello! I have a project that is currently configured with setuptools. I fetch the version from git using versioningit. I see that pants has the ability to get and set versions from git directly, but I was wondering if it is possible to do so via setuptools. The problem I am currently having is that setuptools runs in the pants sandbox which does not know my git state. I tried to set the
GIT_DIR
and
GIT_WORK_TREE
variables in the
.pants.bootstrap
file, but that failed to work too (I assume this is so because setuptools does not know of these variables). Is there a way to get what I want working?
c
Pants uses the vcs_version target to wrap setuptools_scm, here's a doc on using it. Does that help?
s
Yes. Thanks for your reply. I was wondering if pants can let setuptools use vcs, instead of directly. I am in the process of transitioning some projects to use pants, and wanted to minimize changes to ease the transition.