From 0c1ffad351154e82f45612c1ac5d3cac886c3f8a Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Tue, 27 Oct 2020 10:20:51 +0800 Subject: [PATCH 1/2] python track2 --- .../devtestlabs/resource-manager/readme.md | 25 +----------- .../resource-manager/readme.python.md | 39 +++++++++++++++++++ 2 files changed, 41 insertions(+), 23 deletions(-) create mode 100644 specification/devtestlabs/resource-manager/readme.python.md diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index 48c43e2caf60..1a6643cc2bee 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -71,6 +71,7 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-sdk-for-net - repo: azure-sdk-for-python + - repo: azure-sdk-for-python-track2 - repo: azure-sdk-for-java - repo: azure-sdk-for-go - repo: azure-sdk-for-js @@ -100,30 +101,8 @@ 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: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.mgmt.devtestlabs - package-name: azure-mgmt-devtestlabs - clear-output-folder: true -``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs -``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs -``` +See configuration in [readme.python.md](./readme.python.md) ## Go diff --git a/specification/devtestlabs/resource-manager/readme.python.md b/specification/devtestlabs/resource-manager/readme.python.md new file mode 100644 index 000000000000..22c80f098c98 --- /dev/null +++ b/specification/devtestlabs/resource-manager/readme.python.md @@ -0,0 +1,39 @@ +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) && !$(track2) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.devtestlabs + package-name: azure-mgmt-devtestlabs + package-version: 1.0.0 + clear-output-folder: true +``` +``` yaml $(python) && $(track2) +python-mode: create +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +payload-flattening-threshold: 2 +namespace: azure.mgmt.devtestlabs +package-name: azure-mgmt-devtestlabs +package-version: 1.0.0 +clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs +no-namespace-folders: true +output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs/azure/mgmt/devtestlabs +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs +basic-setup-py: true +output-folder: $(python-sdks-folder)/devtestlabs/azure-mgmt-devtestlabs +``` \ No newline at end of file From 685e1fd218fb3bbf5bb0e216b335f1280e0e7e99 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Tue, 27 Oct 2020 10:56:50 +0800 Subject: [PATCH 2/2] python --- specification/devtestlabs/resource-manager/readme.md | 1 - specification/devtestlabs/resource-manager/readme.python.md | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/devtestlabs/resource-manager/readme.md b/specification/devtestlabs/resource-manager/readme.md index 1a6643cc2bee..a230a27c8ec3 100644 --- a/specification/devtestlabs/resource-manager/readme.md +++ b/specification/devtestlabs/resource-manager/readme.md @@ -101,7 +101,6 @@ csharp: ## Python - See configuration in [readme.python.md](./readme.python.md) ## Go diff --git a/specification/devtestlabs/resource-manager/readme.python.md b/specification/devtestlabs/resource-manager/readme.python.md index 22c80f098c98..93e96d3b8cc0 100644 --- a/specification/devtestlabs/resource-manager/readme.python.md +++ b/specification/devtestlabs/resource-manager/readme.python.md @@ -1,3 +1,5 @@ +## 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.