From a5dc2320493ca35b3896f22145892e63a17f8ef6 Mon Sep 17 00:00:00 2001 From: scbedd <45376673+scbedd@users.noreply.github.com> Date: Thu, 3 Sep 2020 10:42:01 -0700 Subject: [PATCH] don't want to exclude mgmt. auto-increments are fine here --- eng/versioning/version_shared.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/versioning/version_shared.py b/eng/versioning/version_shared.py index d5d6011f74ce..2d20727df8e1 100644 --- a/eng/versioning/version_shared.py +++ b/eng/versioning/version_shared.py @@ -34,7 +34,7 @@ logging.getLogger().setLevel(logging.INFO) def path_excluded(path): - return "-nspkg" in path or "tests" in path or "mgmt" in path or is_metapackage(path) + return "-nspkg" in path or "tests" in path or is_metapackage(path) # Metapackages do not have an 'azure' folder within them def is_metapackage(package_path): @@ -59,6 +59,7 @@ def get_packages(args, package_name = ""): target_dir = root_dir paths = get_setup_py_paths(args.glob_string, target_dir) + # Check if package is excluded if a package name param is passed if package_name and not any(filter(lambda x: package_name == os.path.basename(os.path.dirname(x)), paths)): logging.info("Package {} is excluded from version update tool".format(package_name))