Skip to content

Commit

Permalink
Py conf in its own file (#4439)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel authored Nov 9, 2018
1 parent 77cf607 commit 3373760
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,33 +49,6 @@ csharp:
sync-methods: none
```

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

## Suppressions
Suppressing errors due to API design:
``` yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## 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
add-credentials: true
payload-flattening-threshold: 2
namespace: azure.cognitiveservices.search.customsearch
package-name: azure-cognitiveservices-search-customsearch
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-customsearch
```

0 comments on commit 3373760

Please sign in to comment.