Skip to content

Commit 3373760

Browse files
authored
Py conf in its own file (#4439)
1 parent 77cf607 commit 3373760

File tree

2 files changed

+26
-27
lines changed

2 files changed

+26
-27
lines changed

specification/cognitiveservices/data-plane/CustomWebSearch/readme.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -49,33 +49,6 @@ csharp:
4949
sync-methods: none
5050
```
5151

52-
## Python
53-
54-
These settings apply only when `--python` is specified on the command line.
55-
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
56-
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
57-
58-
``` yaml $(python)
59-
python-mode: create
60-
python:
61-
license-header: MICROSOFT_MIT_NO_VERSION
62-
add-credentials: true
63-
payload-flattening-threshold: 2
64-
namespace: azure.cognitiveservices.search.customsearch
65-
package-name: azure-cognitiveservices-search-customsearch
66-
clear-output-folder: true
67-
```
68-
``` yaml $(python) && $(python-mode) == 'update'
69-
python:
70-
no-namespace-folders: true
71-
output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch
72-
```
73-
``` yaml $(python) && $(python-mode) == 'create'
74-
python:
75-
basic-setup-py: true
76-
output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-customsearch
77-
```
78-
7952
## Suppressions
8053
Suppressing errors due to API design:
8154
``` yaml
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## Python
2+
3+
These settings apply only when `--python` is specified on the command line.
4+
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
5+
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
6+
7+
``` yaml $(python)
8+
python-mode: create
9+
python:
10+
license-header: MICROSOFT_MIT_NO_VERSION
11+
add-credentials: true
12+
payload-flattening-threshold: 2
13+
namespace: azure.cognitiveservices.search.customsearch
14+
package-name: azure-cognitiveservices-search-customsearch
15+
clear-output-folder: true
16+
```
17+
``` yaml $(python) && $(python-mode) == 'update'
18+
python:
19+
no-namespace-folders: true
20+
output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch
21+
```
22+
``` yaml $(python) && $(python-mode) == 'create'
23+
python:
24+
basic-setup-py: true
25+
output-folder: $(python-sdks-folder)/azure-cognitiveservices-search-customsearch
26+
```

0 commit comments

Comments
 (0)