azureml-examples
azureml-examples copied to clipboard
How to set 'auto_increment_version' to be True so that I don't have to udpate version manually for ever code update?
Describe your suggestion
I create components with Python SDK, for example
@command_component(display_name="Print Environment Variables", version="0.0.2")
def print_environment_variables(output_dir: Output, input_dir: Input):
for k, v in os.environ.items():
if k.startswith("AZURE") or k.startswith("Azure"):
print(f"{k}={v}")
I have to manually update 'version' for every update. This is not the case when using Azure CLI, which automatically increases the version. I saw one of the attributes of the component is 'auto_increment_version' and it is default to 'False'. I did not find how to set it in code. Can someone shares an example code?
Additional details
No response