Skip to content

Commit

Permalink
Automation for Python (#5671)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel authored Apr 16, 2019
1 parent 24ea936 commit 128fe6d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
26 changes: 1 addition & 25 deletions specification/automation/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,31 +219,7 @@ csharp:

## 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:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.automation
package-name: azure-mgmt-automation
package-version: 0.3.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/azure-mgmt-automation/azure/mgmt/automation
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/azure-mgmt-automation
```
See configuration in [readme.python.md](./readme.python.md)

## Go

Expand Down
27 changes: 27 additions & 0 deletions specification/automation/resource-manager/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:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: azure.mgmt.automation
package-name: azure-mgmt-automation
package-version: 0.1.0
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/azure-mgmt-automation/azure/mgmt/automation
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/azure-mgmt-automation
```

0 comments on commit 128fe6d

Please sign in to comment.