{CI} Fix azure iot ops 2.0.1 index#9373
Conversation
️✔️Azure CLI Extensions Breaking Change Test
|
|
Hi @wangzelin007, |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
There was a problem hiding this comment.
Pull Request Overview
This PR restructures metadata for the azure-iot-ops package to follow Python packaging best practices. The changes separate contact information into distinct fields and reorganize project URLs into the appropriate nested structure.
Key Changes:
- Separated email and name in contact information from a combined format
- Moved project URL from root-level
project_urlto nestedpython.details.project_urlsstructure - Removed
description_content_typefield from metadata
| "license_file": "LICENSE", | ||
| "metadata_version": "2.0", | ||
| "name": "azure-iot-ops", | ||
| "project_url": "homepage, https://github.com/azure/azure-iot-ops-cli-extension", |
There was a problem hiding this comment.
This is from the new format. We should make the script compatible with new format instead of manually changing it to old format.
Ref: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#urls
|
Approved as a temp fix. |
Introduced by PR: #9356

Maybe we need add checks for index schema.
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 azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)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.jsonautomatically.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.