Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set 'auto_increment_version' to be True so that I don't have to udpate version manually for ever code update? #3042

Open
dunalduck0 opened this issue Mar 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dunalduck0
Copy link

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

@dunalduck0 dunalduck0 added the enhancement New feature or request label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant