Skip to content

Commit

Permalink
update autorest version and template for pytyped (#24823)
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc authored Jun 13, 2022
1 parent e77dd74 commit 4b8a195
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion scripts/quickstart_tooling_dpg/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ 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 --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3'
check_call(f'autorest --version=3.8.1 --use=@autorest/python@5.17.0 --use=@autorest/modelerfour@4.23.5'
f' {swagger_readme}', shell=True)

# generate necessary file(setup.py, CHANGELOG.md, etc)
Expand Down
3 changes: 2 additions & 1 deletion scripts/quickstart_tooling_dpg/template/MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ include {{ folder_first }}/__init__.py
include {{ folder_first }}/{{ folder_second }}/__init__.py
include LICENSE
recursive-include tests *.py
recursive-include samples *.py *.md
recursive-include samples *.py *.md
include {{ package_name.replace('-', '/') }}/py.typed
6 changes: 0 additions & 6 deletions scripts/quickstart_tooling_dpg/template/sdk_packaging.toml

This file was deleted.

4 changes: 4 additions & 0 deletions scripts/quickstart_tooling_dpg/template/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
],
include_package_data=True,
package_data={
"pytyped": ["py.typed"],
},
zip_safe=False,
packages=find_packages(
exclude=[
Expand Down

0 comments on commit 4b8a195

Please sign in to comment.