Skip to content
Snippets Groups Projects
Commit 1d080312 authored by Corné Lukken's avatar Corné Lukken
Browse files

Merge branch 'L2SS-287-python-packaging' of git.astron.nl:lofar2.0/tango into...

Merge branch 'L2SS-287-python-packaging' of git.astron.nl:lofar2.0/tango into L2SS-287-python-packaging
parents a6fcc11f e3354afa
No related branches found
No related tags found
1 merge request!146L2SS-287: implement python packaging
......@@ -68,7 +68,7 @@ def get_version(repo: git.Repo = None) -> str:
reg = re.compile(r'^v[0-9](\.[0-9]){2}(\.[a-z]*[0-9]*)?')
commit = repo.commit()
filtered_tags = list(filter(reg.search, [tag.name for tag in repo.tags]))
filtered_tags = [tag.name for tag in repo.tags if reg.search(tag.name)]
# Order tags from newest to oldest
tags = {tag.commit: tag for tag in reversed(repo.tags) if tag.name in filtered_tags}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment