@@ -53,28 +53,27 @@ def main(generate_input, generate_output):
5353 package ["artifacts" ] = [str (dist_path / package_file ) for package_file in os .listdir (dist_path )]
5454 package ["result" ] = "succeeded"
5555 # Generate api stub File
56- if "azure-mgmt-" not in package_name :
57- try :
58- package_path = Path (sdk_folder , folder_name , package_name )
59- check_call (
60- [
61- "python" ,
62- "-m" "pip" ,
63- "install" ,
64- "-r" ,
65- "../../../eng/apiview_reqs.txt" ,
66- "--index-url=https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi"
67- "/simple/" ,
68- ],
69- cwd = package_path ,
70- timeout = 300 ,
71- )
72- check_call (["apistubgen" , "--pkg-path" , "." ], cwd = package_path , timeout = 600 )
73- for file in os .listdir (package_path ):
74- if "_python.json" in file and package_name in file :
75- package ["apiViewArtifact" ] = str (Path (package_path , file ))
76- except Exception as e :
77- _LOGGER .error (f"Fail to generate ApiView token file for { package_name } : { e } " )
56+ try :
57+ package_path = Path (sdk_folder , folder_name , package_name )
58+ check_call (
59+ [
60+ "python" ,
61+ "-m" "pip" ,
62+ "install" ,
63+ "-r" ,
64+ "../../../eng/apiview_reqs.txt" ,
65+ "--index-url=https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi"
66+ "/simple/" ,
67+ ],
68+ cwd = package_path ,
69+ timeout = 600 ,
70+ )
71+ check_call (["apistubgen" , "--pkg-path" , "." ], cwd = package_path , timeout = 600 )
72+ for file in os .listdir (package_path ):
73+ if "_python.json" in file and package_name in file :
74+ package ["apiViewArtifact" ] = str (Path (package_path , file ))
75+ except Exception as e :
76+ _LOGGER .error (f"Fail to generate ApiView token file for { package_name } : { e } " )
7877 # Installation package
7978 package ["installInstructions" ] = {
8079 "full" : "You can install the use using pip install of the artifacts." ,
0 commit comments