Skip to content

Conversation

@haroldrandom
Copy link
Contributor

@haroldrandom haroldrandom commented Mar 30, 2020

Unpin wheel version as user request, deprecating old way to query metadata of Python Package.
Using pkginfo to query metadata for Python Package to meet Python Core Cetadata Specification. ( PEP 241, PEP 314, PEP 345, PEP 566).

What this PR done:

  • adopt a canonical way to read metadata from Python Package
  • add compatible way to update avaialble extension list in scripts/ci/aval-ext-doc/update_extension_list.py
  • add compatible way to verify src/index.json scripts/ci/test_index.py
  • add compatible way to make source code static check scripts/ci/test_source.py
  • update README

azdev and Azure/azure-clihave already catch up to change:

Related PRs and issues:


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

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

@haroldrandom haroldrandom self-assigned this Mar 30, 2020
@azuresdkci
Copy link

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:

docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/haroldrandom/azure-cli-extensions.git@unpin-wheel#subdirectory=src/$EXT&egg=$EXT"

inputs:
versionSpec: 3.6
- bash: pip install wheel==0.30.0 pylint==1.9.5 flake8==3.5.0 requests
- bash: pip install wheel pylint==1.9.5 flake8==3.5.0 requests pkginfo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not considering breaking change versions for wheel and pkginfo?

Copy link
Contributor Author

@haroldrandom haroldrandom Apr 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As for wheel, I am not wrong about the breaking change unless the PEP related the Python Package. The latest and unresolved PEP about this is PEP 491, but it seems won'
t introduce any breaking change, it's an enhancement.

As for pkginfo, I am a bit concerned about it, because it's onboard on Ubuntu Launch Code with little issues and invisible about the development activity.

So, if we relax the majon version of wheel and pkginfo can't keep up with the latest PEP version, that's a risk.

But considering the PEP process, it won't be a problem for a long while.

fengzhou-msft and others added 21 commits April 2, 2020 21:40
Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_ID=340888

Last commit: Azure@28e108d

Co-authored-by: Feiyue Yu <[email protected]>
Co-authored-by: Xiaojian Xu <[email protected]>
…eality everything before -hcp-, this fix helps clearing that confusion. (Azure#1451)

* Presentation fix: The name displayed for the storage is inreality everything before -hcp-, this fix helps clearing that confusion.

* Moving to helper + Test following existing pattern.

* Pylint issue fixed.

Co-authored-by: root <[email protected]>
Co-authored-by: Feiyue Yu <[email protected]>
…#1494)

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_ID=342289

Last commit: Azure@776c4a4

Co-authored-by: Jianhui Harold <[email protected]>
Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_ID=343358

Last commit: Azure@a93d1db

Co-authored-by: Jianhui Harold <[email protected]>
* [HPC-Cache] first version

* [HPC-Cache] test case fix

* refine test case

* {hpc-cache} Refine and test

* {hpc-cache} Fix style

* {hpc-cache} add experimental flag

* [HPC-Cache] fix comment

* Update CODEOWNERS

* {hpc-cache} fix the test file name

* {hpc-cache} add flush and upgrade commands

* {hpc-cache} add flush and upgrade commands help
* bump sdk

* finish code

* hack to fix python sdk

* recording tests

* fix style

* bump sdk and versions

* address comments

* rename it to md

* md

* add experimental
* [Stream Analytics] add experimental tag

* {Stream Analytics} add isExperimental in metadata.json

Co-authored-by: Jianhui Harold <[email protected]>
Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_ID=347136

Last commit: Azure@5e8de4e
…#1513)

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_ID=347155

Last commit: Azure@ae26dd6

Co-authored-by: Xiaojian Xu <[email protected]>
)

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_ID=347000

Last commit: Azure@6d21d72

Co-authored-by: MyronFanQiu <[email protected]>
Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_ID=346985

Last commit: Azure@8c38351

Co-authored-by: qianwens <[email protected]>
Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_ID=347255

Last commit: Azure@73928e0

Co-authored-by: Yu Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove azure-cli-core wheel==0.30 wheel pin Make extensions compatible with latest versions of wheel