From c6f7fc714e3befa12ae571daf6a0781a6456406c Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Fri, 9 Nov 2018 10:53:45 -0800 Subject: [PATCH] Split Python conf in it's own file --- .../data-plane/Face/readme.md | 27 ------------------- .../data-plane/Face/readme.python.md | 26 ++++++++++++++++++ 2 files changed, 26 insertions(+), 27 deletions(-) create mode 100644 specification/cognitiveservices/data-plane/Face/readme.python.md diff --git a/specification/cognitiveservices/data-plane/Face/readme.md b/specification/cognitiveservices/data-plane/Face/readme.md index e03a66ac3723..0cd69747f502 100644 --- a/specification/cognitiveservices/data-plane/Face/readme.md +++ b/specification/cognitiveservices/data-plane/Face/readme.md @@ -51,33 +51,6 @@ csharp: clear-output-folder: true ``` -## 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.vision.face - package-name: azure-cognitiveservices-vision-face - clear-output-folder: true -``` -``` yaml $(python) && $(python-mode) == 'update' -python: - no-namespace-folders: true - output-folder: $(python-sdks-folder)/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face -``` -``` yaml $(python) && $(python-mode) == 'create' -python: - basic-setup-py: true - output-folder: $(python-sdks-folder)/azure-cognitiveservices-vision-face -``` - ## Go See configuration in [readme.go.md](./readme.go.md) diff --git a/specification/cognitiveservices/data-plane/Face/readme.python.md b/specification/cognitiveservices/data-plane/Face/readme.python.md new file mode 100644 index 000000000000..9d1cae3caff9 --- /dev/null +++ b/specification/cognitiveservices/data-plane/Face/readme.python.md @@ -0,0 +1,26 @@ +## 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.vision.face + package-name: azure-cognitiveservices-vision-face + clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-cognitiveservices-vision-face +```