Skip to content

Commit

Permalink
Get version from git directly by looking at git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
babayagaofficial committed Mar 12, 2024
1 parent df8b6be commit 91e6755
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pling/run_pling.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@
import os
import pandas as pd
from pathlib import Path
import subprocess

def get_version():
output = subprocess.check_output("git describe", shell=True).strip()
output = output.decode("utf-8")
return output


def parse_args():
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--version', action='version', version='pling 1.0.0')
parser.add_argument('--version', action='version', version=get_version())
parser.add_argument("genomes_list", help="Path to list of fasta file paths.")
parser.add_argument("output_dir", help="Path to output directory.")
parser.add_argument("integerisation", choices=["anno", "align"],
Expand Down

0 comments on commit 91e6755

Please sign in to comment.