Skip to content

Commit

Permalink
don't want to exclude mgmt. auto-increments are fine here (#13549)
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd authored Sep 3, 2020
1 parent 0f35c67 commit dfe38f5
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit dfe38f5

Please sign in to comment.