Skip to content

Commit

Permalink
Put SD in its own Python file (#6358)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel authored Jun 14, 2019
1 parent 8b5cb0f commit 42e9dc6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
28 changes: 0 additions & 28 deletions specification/servicefabric/data-plane/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,34 +123,6 @@ swagger-to-sdk:
- repo: azure-sdk-for-node
```

## Python

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)
python-mode: create
python:
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.servicefabric
package-name: azure-servicefabric
package-version: 6.5.0.0
add-credentials: true
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/servicefabric/azure-servicefabric/azure/servicefabric
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/servicefabric/azure-servicefabric
```

## Go

See configuration in [readme.go.md](./readme.go.md)
Expand Down
27 changes: 27 additions & 0 deletions specification/servicefabric/data-plane/readme.python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Python

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)
python-mode: create
python:
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.servicefabric
package-name: azure-servicefabric
package-version: 6.5.0.0
add-credentials: true
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/servicefabric/azure-servicefabric/azure/servicefabric
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/servicefabric/azure-servicefabric
```

0 comments on commit 42e9dc6

Please sign in to comment.