Skip to content

Commit

Permalink
python track2 (Azure#11728)
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc authored and giromm2ms committed Dec 20, 2020
1 parent 95f6e52 commit 2336a3f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions specification/consumption/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-net
- repo: azure-sdk-for-go
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-js
- repo: azure-sdk-for-node
Expand Down Expand Up @@ -411,3 +412,6 @@ generate-interface: true

See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md)

## Python

See configuration in [readme.python.md](./readme.python.md)
16 changes: 15 additions & 1 deletion specification/consumption/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.

``` yaml $(python)
``` yaml $(python) && !$(track2)
python-mode: create
python:
azure-arm: true
Expand All @@ -15,15 +15,29 @@ python:
package-version: 2.0.0
clear-output-folder: true
```
``` yaml $(python) && $(track2)
python-mode: create
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.consumption
package-name: azure-mgmt-consumption
package-version: 2.0.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/consumption/azure-mgmt-consumption/azure/mgmt/consumption
no-namespace-folders: true
output-folder: $(python-sdks-folder)/consumption/azure-mgmt-consumption/azure/mgmt/consumption
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/consumption/azure-mgmt-consumption
basic-setup-py: true
output-folder: $(python-sdks-folder)/consumption/azure-mgmt-consumption
```

0 comments on commit 2336a3f

Please sign in to comment.