Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tools] update quick-start tool for dpg #24341

Merged
merged 1 commit into from
May 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def build_package(**kwargs) -> None:

# generate code with autorest and swagger readme
_LOGGER.info("generate SDK code with autorest")
check_call(f'autorest --version=3.7.2 --python --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.2'
f' --python-mode=update {swagger_readme}', shell=True)
check_call(f'autorest --version=3.7.2 --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3'
f' {swagger_readme}', shell=True)

# generate necessary file(setup.py, CHANGELOG.md, etc)
work_path = Path(output_folder)
Expand Down Expand Up @@ -130,8 +130,8 @@ def main(**kwargs):
" or `D:\\azure-rest-api-specs\\specification\\webpubsub\\data-plane\\WebPubSub\\stable\\2021-10-01\\webpubsub.json`",
)
parser.add_argument(
"--credential-scope", "-c",
dest="credential_scope",
"--security-scope", "-c",
dest="security_scope",
required=True,
help="Each service for data plan should have specific scopes",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
-e ../../../tools/azure-sdk-tools
../../core/azure-core
../../identity/azure-identity
aiohttp>=3.0;
aiohttp>=3.0
typing_extensions>=3.7.2
asyncio;
asyncio
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,17 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------


import os
import re

from setuptools import setup, find_packages


# Change the PACKAGE_NAME only to change folder and different name
PACKAGE_NAME = "{{ package_name }}"
PACKAGE_PPRINT_NAME = "{{ package_pprint_name }}"

# a-b-c => a/b/c
package_folder_path = PACKAGE_NAME.replace("-", "/")


# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, "_version.py"), "r") as fd:
version = re.search(
Expand Down Expand Up @@ -61,9 +56,8 @@
]
),
install_requires=[
"azure-core<2.0.0,>=1.19.1",
"azure-core<2.0.0,>=1.23.0",
"msrest>=0.6.21",
'six>=1.11.0',
],
python_requires=">=3.6",
)
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ package-name: {{ package_name }}
license-header: MICROSOFT_MIT_NO_VERSION
clear-output-folder: true
no-namespace-folders: true
python: true
title: {{ client_name }}
version-tolerant: true
package-version: 1.0.0b1
add-credential: true
credential-scopes: {{ credential_scope }}
security: AADToken
security-scopes: {{ security_scope }}
```
15 changes: 0 additions & 15 deletions scripts/quickstart_tooling_llc/template_tests/conftest.py

This file was deleted.