File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
tools/azure-sdk-tools/ci_tools Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ def build_packages(
156
156
dist_dir = os .path .join (distribution_directory , package_name_in_artifacts )
157
157
158
158
if is_dev_build :
159
- process_requires (package_root )
159
+ process_requires (package_root , True )
160
160
161
161
new_version = get_dev_version (setup_parsed .version , build_id )
162
162
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ def get_base_version(pkg_name: str) -> str:
315
315
exit (1 )
316
316
317
317
318
- def process_requires (setup_py_path : str ):
318
+ def process_requires (setup_py_path : str , is_dev_build : bool = False ):
319
319
"""
320
320
This method processes a setup.py's package requirements to verify if all required packages are available on PyPI.
321
321
If any azure sdk package is not available on PyPI then requirement will be updated to refer to the sdk "dev_identifier".
@@ -335,7 +335,7 @@ def process_requires(setup_py_path: str):
335
335
pkg_name = req .key
336
336
spec = SpecifierSet (str (req ).replace (pkg_name , "" ))
337
337
338
- if not is_required_version_on_pypi (pkg_name , spec ):
338
+ if not is_required_version_on_pypi (pkg_name , spec ) or is_dev_build :
339
339
old_req = str (req )
340
340
version = get_version_from_repo (pkg_name )
341
341
base_version = get_base_version (pkg_name )
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ def version_set_dev_main() -> None:
92
92
new_version = get_dev_version (target_package .version , build_id )
93
93
print ("{0}: {1} -> {2}" .format (target_package .name , target_package .version , new_version ))
94
94
95
- process_requires (target_package .setup_filename )
95
+ process_requires (target_package .setup_filename , True )
96
96
set_version_py (target_package .setup_filename , new_version )
97
97
set_dev_classifier (target_package .setup_filename , new_version )
98
98
except :
You can’t perform that action at this time.
0 commit comments