-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update doc and add warning message to support future Q# flow deprecation #7088
Update doc and add warning message to support future Q# flow deprecation #7088
Conversation
️✔️Azure CLI Extensions Breaking Change Test
|
Hi @shenyingjun, |
Thank you for your contribution! We will review the pull request and get back to you soon. |
Co-authored-by: Xinyi Joffre <[email protected]>
@shenyingjun, please fix the CI linter issues. Thanks. |
…ion (Azure#7088) * Update doc and add warning message to support future Q# flow deprecation * Update src/quantum/azext_quantum/_help.py Co-authored-by: Xinyi Joffre <[email protected]> --------- Co-authored-by: Xinyi Joffre <[email protected]>
@@ -36,13 +36,13 @@ def load_arguments(self, _): | |||
storage_account_name_type = CLIArgumentType(options_list=['--storage-account', '-a'], help='Name of the storage account to be used by a quantum workspace.') | |||
program_args_type = CLIArgumentType(nargs='*', help='List of arguments expected by the Q# operation specified as --name=value after `--`.') | |||
target_id_type = CLIArgumentType(options_list=['--target-id', '-t'], help='Execution engine for quantum computing jobs. When a workspace is configured with a set of providers, they each enable one or more targets. You can configure the default target using `az quantum target set`.', configured_default='target_id') | |||
project_type = CLIArgumentType(help='The location of the Q# project to submit. Defaults to current folder.') | |||
project_type = CLIArgumentType(help='[Becoming deprecated] The location of the Q# project to submit. Defaults to current folder.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project_type = CLIArgumentType(help='[Becoming deprecated] The location of the Q# project to submit. Defaults to current folder.') | |
project_type = CLIArgumentType(help='[Deprecated] The folder path of the Q# project to submit. Defaults to current folder.') |
I wonder if we can just mark as deprecated already, but allow users to still submit to it
job_name_type = CLIArgumentType(help='A friendly name to give to this run of the program.') | ||
job_id_type = CLIArgumentType(options_list=['--job-id', '-j'], help='Job unique identifier in GUID format.') | ||
job_params_type = CLIArgumentType(options_list=['--job-params'], help='Job parameters passed to the target as a list of key=value pairs, json string, or `@{file}` with json content.', action=JobParamsAction, nargs='+') | ||
target_capability_type = CLIArgumentType(options_list=['--target-capability'], help='Target-capability parameter passed to the compiler.') | ||
shots_type = CLIArgumentType(help='The number of times to run the Q# program on the given target.') | ||
no_build_type = CLIArgumentType(help='If specified, the Q# program is not built before submitting.') | ||
no_build_type = CLIArgumentType(help='[Becoming deprecated] If specified, the Q# program is not built before submitting.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no_build_type = CLIArgumentType(help='[Becoming deprecated] If specified, the Q# program is not built before submitting.') | |
no_build_type = CLIArgumentType(help='[Deprecated] If specified, the Q# program is not built before submitting.') |
@@ -464,7 +469,7 @@ def _submit_qsharp(cmd, program_args, resource_group_name, workspace_name, locat | |||
""" | |||
Submit a Q# project to run on Azure Quantum. | |||
""" | |||
|
|||
_show_warning('The direct submission of Q# programs will soon be deprecated. Instead, you can submit QIR bitcode or LLVM. Modern QDK can be used to generate LLVM from Q#.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_show_warning('The direct submission of Q# programs will soon be deprecated. Instead, you can submit QIR bitcode or LLVM. Modern QDK can be used to generate LLVM from Q#.') | |
_show_warning('The direct submission of Q# project folders will soon be fully deprecated. Instead, you can submit QIR bitcode or human-readable LLVM code. Modern QDK can be used to generate human-readable LLVM code from Q#.') |
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)python scripts/ci/test_index.py -q
locally? (pip install wheel==0.30.0
required)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.json
automatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json
.