2017-09-08 21:30:02 +03:00
|
|
|
Extension Metadata
|
|
|
|
==================
|
|
|
|
|
|
|
|
Additional metadata can be added to your extension.
|
|
|
|
|
|
|
|
This is useful if you want to:
|
|
|
|
- Specify a version contract for your extension and the CLI.
|
|
|
|
- etc.
|
|
|
|
|
|
|
|
|
|
|
|
How To
|
|
|
|
------
|
|
|
|
|
|
|
|
Create the file `azext_metadata.json` under your extension.
|
|
|
|
|
|
|
|
For example `azext_*/azext_metadata.json`.
|
|
|
|
|
|
|
|
In your `setup.py`, include the following:
|
|
|
|
``` python
|
|
|
|
package_data={'azext_*': ['azext_metadata.json']}
|
|
|
|
```
|
|
|
|
|
|
|
|
Now, the CLI will be able to read your extension metadata.
|
|
|
|
|
|
|
|
Note: Replace `*` with your module name.
|
|
|
|
|
|
|
|
Python documentation - [Installing Package Data](https://docs.python.org/2/distutils/setupscript.html#installing-package-data)
|
|
|
|
|
|
|
|
|
|
|
|
Metadata Format
|
|
|
|
---------------
|
|
|
|
|
|
|
|
This documents the known metadata entries.
|
|
|
|
|
|
|
|
Note: You can optionally extend this with your own metadata by adding your own namespace. We use the `azext` namespace.
|
|
|
|
|
2017-09-09 00:37:29 +03:00
|
|
|
### azext.minCliCoreVersion
|
|
|
|
Description: The minimum CLI core version required (inclusive).
|
2017-09-08 21:30:02 +03:00
|
|
|
Exclude to not specify a minimum.
|
|
|
|
|
|
|
|
Type: `string`
|
|
|
|
|
2017-09-09 00:37:29 +03:00
|
|
|
Example: `"azext.minCliCoreVersion": "2.0.10"`
|
2017-09-08 21:30:02 +03:00
|
|
|
|
2017-09-09 00:37:29 +03:00
|
|
|
### azext.maxCliCoreVersion
|
|
|
|
Description: The maximum CLI core version required (inclusive).
|
2017-09-08 21:30:02 +03:00
|
|
|
Exclude to not specify a maximum.
|
|
|
|
|
|
|
|
Type: `string`
|
|
|
|
|
2017-09-09 00:37:29 +03:00
|
|
|
Example: `"azext.maxCliCoreVersion": "2.0.15"`
|
2017-09-08 21:30:02 +03:00
|
|
|
|
|
|
|
|