Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion eng/versioning/version_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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))
Expand Down