{Package} Upgrade setuptools and wheel to the latest version. #7740
Labels
Azure CLI Team
The command of the issue is owned by Azure CLI team
feature-request
This issue requires a new behavior in the product in order be resolved.
Milestone
Describe the bug
All users using azdev must pin wheel==0.30.0 and setuptools==70.0.0, otherwise the following issues may occur:
Example of a incomplete index.json:
Root cause analysis:
The setuptools >=70.1.0 adds a vendored wheel 0.4.3 to generate wheel and it does not generate metadata.json.
Related PR:
pypa/setuptools#4369
Wheel version higher than 0.30.0 has removed metadata.json from the generated files in .dist-info
pypa/wheel#195
If we upgrade the setuptools to the latest version and decouple wheel will also face many issues:
azure-cli-extensions:
azure-cli-extensions/.azure-pipelines/templates/azdev_setup.yml
Line 21 in ea6fff6
azure-cli-extensions/azure-pipelines.yml
Line 79 in ea6fff6
azure-cli-extensions/azure-pipelines.yml
Lines 104 to 105 in ea6fff6
azure-cli-extensions/scripts/ci/util.py
Lines 55 to 78 in ea6fff6
azure-cli:
self.assertNotIn('metadata.json', os.listdir(os.path.join(self.ext_dir, ext_name + '-' + ext_version)))
https://github.com/Azure/azure-cli/blob/dev/src/azure-cli-core/azure/cli/core/extension/tests/latest/test_dev_type_extension.py#L42
self.assertIn('metadata.json', os.listdir(os.path.join(self.ext_dir, dist_info)))
https://github.com/Azure/azure-cli/blob/dev/src/azure-cli-core/azure/cli/core/extension/tests/latest/test_wheel_type_extension.py#L46
self.assertNotIn('metadata.json', os.listdir(os.path.join(self.ext_dir, dist_info)))
https://github.com/Azure/azure-cli/blob/dev/src/azure-cli-core/azure/cli/core/extension/tests/latest/test_wheel_type_extension.py#L77
self.assertNotIn('metadata.json', os.listdir(os.path.join(self.ext_dir, ext_name + '-' + ext_version)))
https://github.com/Azure/azure-cli/blob/dev/src/azure-cli-core/azure/cli/core/extension/tests/latest/test_wheel_type_extension.py#L105
get_cli_dependencies: whl_metadata_filepath = os.path.join(tmp_dir, dist_info_dir, 'metadata.json')
https://github.com/Azure/azure-cli/blob/50ccb24528eb36529d1432808f3ff385cc4c04aa/tools/automation/verify/default_modules.py#L33
pip install setuptools==70.0.0 wheel==0.30.0
https://github.com/Azure/azure-cli/blob/bf7352f1e9d20ff04c2f7cf5dd7c1b0988ce96c1/azure-pipelines.yml#L1176
azdev:
'wheel==0.30.0',
https://github.com/Azure/azure-cli-dev-tools/blob/8aa045a249297d063334c89f3d70f1e84c678007/setup.py#L89
get_ext_metadata: WHL_METADATA_FILENAME = 'metadata.json'
https://github.com/Azure/azure-cli-dev-tools/blob/dev/azdev/operations/extensions/util.py#L48
Related command
Errors
Issue script & Debug output
None
Expected behavior
None
Environment Summary
None
Additional context
No response
The text was updated successfully, but these errors were encountered: