From 0d1dfd990a5a9a038122616171538c86a0dc734d Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Wed, 3 Feb 2021 14:02:26 -0500 Subject: [PATCH 1/3] avoid python ta config duplication --- .../data-plane/TextAnalytics/readme.md | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/specification/cognitiveservices/data-plane/TextAnalytics/readme.md b/specification/cognitiveservices/data-plane/TextAnalytics/readme.md index 10730572dccc..712126880091 100644 --- a/specification/cognitiveservices/data-plane/TextAnalytics/readme.md +++ b/specification/cognitiveservices/data-plane/TextAnalytics/readme.md @@ -132,21 +132,9 @@ csharp: ``` ## Python - -These settings apply only when `--python` is specified on the command line. -Please also specify `--python-sdks-folder=`. -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.language.textanalytics - package-name: azure-cognitiveservices-language-textanalytics - clear-output-folder: true -``` +See configuration in [readme.python.md](./readme.python.md) + ``` yaml $(python) && $(python-mode) == 'update' python: From f7c0f28f23bc244484df1ff93aa319c9cf351be2 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Wed, 3 Feb 2021 14:03:17 -0500 Subject: [PATCH 2/3] remove all python blocks from main readme --- .../data-plane/TextAnalytics/readme.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/specification/cognitiveservices/data-plane/TextAnalytics/readme.md b/specification/cognitiveservices/data-plane/TextAnalytics/readme.md index 712126880091..7bc4a9368061 100644 --- a/specification/cognitiveservices/data-plane/TextAnalytics/readme.md +++ b/specification/cognitiveservices/data-plane/TextAnalytics/readme.md @@ -135,19 +135,6 @@ csharp: See configuration in [readme.python.md](./readme.python.md) - -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-language-textanalytics/azure/cognitiveservices/language/textanalytics -``` - -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-language-textanalytics -``` - ## Go See configuration in [readme.go.md](./readme.go.md) From 68bb7febf22dfba19b964e2ea21a3ddf003b54f1 Mon Sep 17 00:00:00 2001 From: iscai-msft Date: Wed, 10 Feb 2021 13:15:04 -0500 Subject: [PATCH 3/3] add submodule to package name to correct generation --- .../resource-manager/readme.python.md | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/specification/resources/resource-manager/readme.python.md b/specification/resources/resource-manager/readme.python.md index bd569ac43e98..595c8156b6c1 100644 --- a/specification/resources/resource-manager/readme.python.md +++ b/specification/resources/resource-manager/readme.python.md @@ -35,7 +35,7 @@ batch: - tag: package-policy-2020-09 - tag: package-policy-2019-09 - tag: package-policy-2019-06 - - tag: package-policy-2019-01 + - tag: package-policy-2019-01 - tag: package-policy-2018-05 - tag: package-policy-2018-03 - tag: package-policy-2017-06 @@ -60,8 +60,8 @@ batch: - tag: package-subscriptions-2018-06 - tag: package-subscriptions-2016-06 - tag: package-deploymentscripts-2020-10 - - tag: package-deploymentscripts-2019-10-preview - - tag: package-templatespecs-2019-06-preview + - tag: package-deploymentscripts-2019-10-preview + - tag: package-templatespecs-2019-06-preview ``` ```yaml $(multiapi) && $(track2) @@ -78,7 +78,7 @@ batch: - tag: package-policy-2020-09 - tag: package-policy-2019-09 - tag: package-policy-2019-06 - - tag: package-policy-2019-01 + - tag: package-policy-2019-01 - tag: package-policy-2018-05 - tag: package-policy-2018-03 - tag: package-policy-2017-06 @@ -106,13 +106,14 @@ batch: - tag: package-subscriptions-2016-06 - multiapiscript-subscriptions: true - tag: package-deploymentscripts-2020-10 - - tag: package-deploymentscripts-2019-10-preview + - tag: package-deploymentscripts-2019-10-preview - multiapiscript-deploymentscripts: true - - tag: package-templatespecs-2019-06-preview + - tag: package-templatespecs-2019-06-preview - multiapiscript-templatespecs: true ``` ```yaml $(multiapiscript-features) +package-name: azure-mgmt-resource#features multiapiscript: true output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/features clear-output-folder: false @@ -120,6 +121,7 @@ perform-load: false ``` ```yaml $(multiapiscript-policy) +package-name: azure-mgmt-resource#policy multiapiscript: true output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/policy clear-output-folder: false @@ -127,6 +129,7 @@ perform-load: false ``` ```yaml $(multiapiscript-resources) +package-name: azure-mgmt-resource#resources multiapiscript: true output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/resources clear-output-folder: false @@ -134,6 +137,7 @@ perform-load: false ``` ```yaml $(multiapiscript-subscriptions) +package-name: azure-mgmt-resource#subscriptions multiapiscript: true output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions clear-output-folder: false @@ -141,6 +145,7 @@ perform-load: false ``` ```yaml $(multiapiscript-deploymentscripts) +package-name: azure-mgmt-resource#deploymentscripts multiapiscript: true output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentscripts clear-output-folder: false @@ -149,6 +154,7 @@ perform-load: false ```yaml $(multiapiscript-templatespecs) +package-name: azure-mgmt-resource#templatespecs multiapiscript: true output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs clear-output-folder: false @@ -157,6 +163,7 @@ perform-load: false ```yaml $(multiapiscript-locks) +package-name: azure-mgmt-resource#locks multiapiscript: true output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/locks clear-output-folder: false @@ -164,6 +171,7 @@ perform-load: false ``` ```yaml $(multiapiscript-links) +package-name: azure-mgmt-resource#links multiapiscript: true output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/links clear-output-folder: false