Skip to content

Commit

Permalink
.md for python (Azure#10881)
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc authored and nitegupt committed Sep 25, 2020
1 parent 7737935 commit eae10f7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ This is not used by Autorest itself.
```yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-python-track2
- repo: azure-sdk-for-java
- repo: azure-sdk-for-go
- repo: azure-sdk-for-js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,42 @@

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 !$(track2)
python-mode: create
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: Microsoft.BareMetalInfrastructure
package-name: baremetalinfrastructure
package-version: 2020-08-06-preview
namespace: azure.mgmt.baremetalinfrastructure
package-name: azure-mgmt-baremetalinfrastructure
package-version: 0.1.0
clear-output-folder: true
```
```yaml $(python)
These settings apply only when `--track2` is specified on the command line.

``` yaml $(track2)
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
package-name: azure-mgmt-baremetalinfrastructure
no-namespace-folders: true
package-version: 0.1.0
```

``` yaml $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/azure-mgmt/baremetalinfrastructure
output-folder: $(python-sdks-folder)/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/azure/mgmt/baremetalinfrastructure
no-namespace-folders: true
output-folder: $(python-sdks-folder)/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/azure/mgmt/baremetalinfrastructure
```

``` yaml $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure
basic-setup-py: true
output-folder: $(python-sdks-folder)/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure
```

0 comments on commit eae10f7

Please sign in to comment.