Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
filtering by python version now!
  • Loading branch information
scbedd committed Sep 9, 2019
commit e28f7b6229b11993c24d9572430e2db97ae1acdb
6 changes: 4 additions & 2 deletions scripts/devops_tasks/common_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"azure-servicefabric",
"azure-nspkg",
]
MAJOR_VERSION_REGEX = re.compile("Python\s\:\:\s(?<languageClassifier>[\d])[\.\d]*'")
MAJOR_VERSION_REGEX = re.compile("Python\s\:\:\s(?P<languageClassifier>[\d])[\.\d]*'")

def log_file(file_location, is_error=False):
with open(file_location, "r") as file:
Expand Down Expand Up @@ -106,7 +106,7 @@ def setup(*args, **kwargs):
def parse_major_classifiers(classifier_set):
major_versions = []
for classifier in classifier_set:
result = re.search()
result = re.search(MAJOR_VERSION_REGEX, classifier)
if result and result.group('languageClassifier'):
major_versions.append(result.group('languageClassifier'))
return set(major_versions)
Expand Down Expand Up @@ -154,6 +154,8 @@ def process_glob_string(glob_string, target_root_dir):

pkg_set_ci_filtered = filter_for_compatibility(allowed_package_set)
logging.info("Target packages after ci compatibility filter: {}".format(list(set(allowed_package_set) - set(pkg_set_ci_filtered))))

exit(1)
return sorted(pkg_set_ci_filtered)

def remove_omitted_packages(collected_directories):
Expand Down