Skip to content

{Extension} Enhance the ability to filter extension's dist-info in order to get correct METADATA #13251

Merged
haroldrandom merged 2 commits intoAzure:devfrom
haroldrandom:enhance-whl-type-extension-filter
Apr 30, 2020
Merged

{Extension} Enhance the ability to filter extension's dist-info in order to get correct METADATA #13251
haroldrandom merged 2 commits intoAzure:devfrom
haroldrandom:enhance-whl-type-extension-filter

Conversation

@haroldrandom
Copy link
Contributor

@haroldrandom haroldrandom commented Apr 29, 2020

Description
The fix #13222 here to filter extension's metadata has potention bugs.

info_dirs = glob(os.path.join(ext_dir, self.name.replace('-', '_') + '*.*-info'))

If some dependecies have longer name and prefix with the extension name, it make still crash. Currently just lucky.

Besides, the current way to filter will still filter out those folders ends with .egg-info which contains PKG-INFO instead of METADATA. So, it would crash due to incorrect metadata format for pkginfo.Wheel

Fix #13241
Fix Azure/azure-iot-cli-extension#173
Fix #13240

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


This checklist is used to make sure that common guidelines for a pull request are followed.

@haroldrandom haroldrandom added Core CLI core infrastructure Extensions `az extension` commands or extension infrastructure labels Apr 29, 2020
@haroldrandom haroldrandom self-assigned this Apr 29, 2020
@haroldrandom haroldrandom marked this pull request as ready for review April 29, 2020 11:31
@haroldrandom haroldrandom changed the title [Extension] Enhance the ability to filter extension's dist-info [Extension] Enhance the ability to filter extension's dist-info in order to get correct METADATA Apr 29, 2020
@yonzhan yonzhan added this to the S169 - For Build milestone Apr 29, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 29, 2020

add to S169

@haroldrandom haroldrandom changed the title [Extension] Enhance the ability to filter extension's dist-info in order to get correct METADATA {Extension} Enhance the ability to filter extension's dist-info in order to get correct METADATA Apr 30, 2020
@haroldrandom haroldrandom merged commit 4acf761 into Azure:dev Apr 30, 2020
@haroldrandom haroldrandom deleted the enhance-whl-type-extension-filter branch April 30, 2020 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core CLI core infrastructure Extensions `az extension` commands or extension infrastructure

Projects

None yet

3 participants