Skip to content

Commit 3566c94

Browse files
authored
python track2 config (#15050)
* python track2 config * redis * redis
1 parent b55aeb5 commit 3566c94

File tree

18 files changed

+120
-374
lines changed

18 files changed

+120
-374
lines changed

specification/appconfiguration/resource-manager/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ This is not used by Autorest itself.
9595
``` yaml $(swagger-to-sdk)
9696
swagger-to-sdk:
9797
- repo: azure-powershell
98-
- repo: azure-sdk-for-python
9998
- repo: azure-sdk-for-python-track2
10099
- repo: azure-sdk-for-java
101100
- repo: azure-sdk-for-net
Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,21 @@
11
## Python
22

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 !$(track2)
8-
python-mode: create
9-
python:
10-
azure-arm: true
11-
license-header: MICROSOFT_MIT_NO_VERSION
12-
payload-flattening-threshold: 2
13-
namespace: azure.mgmt.appconfiguration
14-
package-name: azure-mgmt-appconfiguration
15-
package-version: 0.1.0
16-
clear-output-folder: true
17-
```
18-
193
These settings apply only when `--track2` is specified on the command line.
204

215
``` yaml $(track2)
226
azure-arm: true
237
license-header: MICROSOFT_MIT_NO_VERSION
248
package-name: azure-mgmt-appconfiguration
259
no-namespace-folders: true
26-
package-version: 0.1.0
10+
package-version: 1.0.0b1
11+
clear-output-folder: true
2712
```
2813
29-
``` yaml $(python-mode) == 'update'
30-
python:
31-
no-namespace-folders: true
32-
output-folder: $(python-sdks-folder)/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration
14+
``` yaml $(python-mode) == 'update' && $(track2)
3315
no-namespace-folders: true
3416
output-folder: $(python-sdks-folder)/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration
3517
```
36-
``` yaml $(python-mode) == 'create'
37-
python:
38-
basic-setup-py: true
39-
output-folder: $(python-sdks-folder)/appconfiguration/azure-mgmt-appconfiguration
18+
``` yaml $(python-mode) == 'create' && $(track2)
4019
basic-setup-py: true
4120
output-folder: $(python-sdks-folder)/appconfiguration/azure-mgmt-appconfiguration
4221
```

specification/cognitiveservices/resource-manager/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ This is not used by Autorest itself.
7171
``` yaml $(swagger-to-sdk)
7272
swagger-to-sdk:
7373
- repo: azure-sdk-for-net
74-
- repo: azure-sdk-for-python
7574
- repo: azure-sdk-for-python-track2
7675
- repo: azure-sdk-for-java
7776
- repo: azure-sdk-for-go

specification/cognitiveservices/resource-manager/readme.python.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@ These settings apply only when `--python` is specified on the command line.
44
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
55
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.
66

7-
``` yaml $(python) && !$(track2)
8-
python-mode: create
9-
python:
10-
azure-arm: true
11-
license-header: MICROSOFT_MIT_NO_VERSION
12-
payload-flattening-threshold: 2
13-
namespace: azure.mgmt.cognitiveservices
14-
package-name: azure-mgmt-cognitiveservices
15-
package-version: 2.0.0
16-
clear-output-folder: true
17-
```
18-
197
``` yaml $(python) && $(track2)
208
python-mode: create
219
azure-arm: true
@@ -26,17 +14,11 @@ package-version: 11.0.0b1
2614
clear-output-folder: true
2715
```
2816
29-
``` yaml $(python) && $(python-mode) == 'update'
17+
``` yaml $(python) && $(python-mode) == 'update' && $(track2)
3018
no-namespace-folders: true
3119
output-folder: $(python-sdks-folder)/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices
32-
python:
33-
no-namespace-folders: true
34-
output-folder: $(python-sdks-folder)/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices
3520
```
36-
``` yaml $(python) && $(python-mode) == 'create'
21+
``` yaml $(python) && $(python-mode) == 'create' && $(track2)
3722
basic-setup-py: true
3823
output-folder: $(python-sdks-folder)/cognitiveservices/azure-mgmt-cognitiveservices
39-
python:
40-
basic-setup-py: true
41-
output-folder: $(python-sdks-folder)/cognitiveservices/azure-mgmt-cognitiveservices
4224
```

specification/containerservice/resource-manager/readme.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,6 @@ This is not used by Autorest itself.
659659
``` yaml $(swagger-to-sdk)
660660
swagger-to-sdk:
661661
662-
- repo: azure-sdk-for-python
663-
after_scripts:
664-
- python ./scripts/multiapi_init_gen.py azure-mgmt-containerservice
665662
- repo: azure-sdk-for-python-track2
666663
- repo: azure-sdk-for-java
667664
- repo: azure-sdk-for-go
@@ -693,6 +690,10 @@ csharp:
693690

694691
See configuration in [readme.go.md](./readme.go.md)
695692

693+
## Python
694+
695+
See configuration in [readme.python.md](./readme.python.md)
696+
696697
## Java
697698

698699
See configuration in [readme.java.md](./readme.java.md)

0 commit comments

Comments
 (0)