Hi, I am having a problem with my python_distribut...
# general
b
Hi, I am having a problem with my python_distribution target not picking up on
setup.py
I am using
vcs_version
to generate a git tag and then importing the output into
setup.py
to fix version. But even having BUILD with
python_distribution
at the same directory does not help pick up the version but it sticks to the version set up in python_distribution.provides.setup_py
Copy code
python_distribution(
  name='dist',
  provides=setup_py(
    name='random_first_package',  # Match the package name in setup.py/setup.cfg
    version='placeholder',  # Placeholder version
  ),
  dependencies=[
    "random-first-package/random_first_package/random_first_package:random_first_package",
  ],
)
I would be great to get some help on how to dynamically set version tag with git version on top of the main version like 0.1.0 so that is can be 0.1.0-gittag Right now, it’s just giving me below
Copy code
23:52:49.23 [INFO] Wrote dist/random_first_package-placeholder-py3-none-any.whl
23:52:49.23 [INFO] Wrote dist/random_first_package-placeholder.tar.gz
Thanks!!