Azure / Azure/azureml-examples
How to set 'auto_increment_version' to be True so that I don't have to udpate version manually for ever code update?
- Dominant language
- Jupyter Notebook
- Stars
- 2k
- Forks
- 1.7k
- Avg merge
- 18h 18m
- Merged PRs (30d)
- 2
Description
### 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_
Contributor guide
Assessment
This issue has not been assessed yet.