Skip to content

Commit

Permalink
update translator text readmes for python (Azure#12817)
Browse files Browse the repository at this point in the history
* test

* updating readme for python under translatortext
  • Loading branch information
kristapratico authored and mkarmark committed Jul 20, 2021
1 parent 0e0d4ec commit 8992083
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,7 @@ csharp:

## Python

These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
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.translatortext
package-name: azure-cognitiveservices-translatortext
clear-output-folder: true
```
``` yaml $(python) && $(python-mode) == 'update'
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-translatortext/azure/cognitiveservices/translatortext
```
``` yaml $(python) && $(python-mode) == 'create'
python:
basic-setup-py: true
output-folder: $(python-sdks-folder)/cognitiveservices/azure-cognitiveservices-translatortext
```
See configuration in [readme.python.md](./readme.python.md)

## Go

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Python

These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml
license-header: MICROSOFT_MIT_NO_VERSION
add-credentials: true
payload-flattening-threshold: 2
namespace: azure.ai.translatortext
package-name: azure-ai-translatortext
clear-output-folder: true
credential-scopes: https://cognitiveservices.azure.com/.default
no-namespace-folders: true
python-sdks-folder: $(python-sdks-folder)
```

0 comments on commit 8992083

Please sign in to comment.