Skip to content

Commit 84734d8

Browse files
authored
setting dev version now sets additionally sets upper bound (Azure#37195)
1 parent 2a3f7b4 commit 84734d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/azure-sdk-tools/ci_tools/functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ def process_requires(setup_py_path: str, is_dev_build: bool = False):
370370
# )?
371371
# )?
372372
rx = r"{}(((a|b|rc)\d+)?(\.post\d+)?)?".format(base_version)
373-
new_req = re.sub(rx, "{}{}1".format(base_version, DEV_BUILD_IDENTIFIER), str(req), flags=re.IGNORECASE)
373+
new_req_format = f"{base_version}{DEV_BUILD_IDENTIFIER}1,<{base_version}b0"
374+
new_req = re.sub(rx, new_req_format, str(req), flags=re.IGNORECASE)
374375
logging.info("New requirement for package {0}: {1}".format(pkg_name, new_req))
375376
requirement_to_update[old_req] = new_req
376377

0 commit comments

Comments
 (0)