Having just now partially got the `setup_py / pyth...
# general
f
Having just now partially got the
setup_py / python_artifact
macro, reading a STATIC
VERSION
file via a plugin, i need to have it read a generated
VERSION
file from the
vcs_version(...)
Is there a simple method to make this work ? I did try adding it in the python_distribution, and the macro. but neither "generate it before the macro
python_artifact(...)
runs . How do I achieve this ? *below does not work" . the macro expects
VERSION
file to be there, static on the filesystem,
Copy code
vcs_version(
    name = "tagged_version",
    generate_to = "VERSION",
    template = "{version}",
)

python_distribution(
    name = "myproject",
    dependencies = [
        ...

        ":tagged_version",    <<< add dependency here
    ],
    generate_setup = True,
    provides = python_artifact(
        name = "myproject",
        dependencies = [ 
            ":tagged_version",    <<< OR add dependency here
        ]
    ),
    ...
)