diff --git a/INFOS.py b/INFOS.py old mode 100644 new mode 100755 index d6ac9c3..20ace7f --- a/INFOS.py +++ b/INFOS.py @@ -1,34 +1,52 @@ +#!/usr/bin/env python3 + """Defines the information to be used throughout the builds.""" # -*- mode:python; coding: utf-8 -*- from collections import namedtuple import versioneer TamaasInfo = namedtuple('TamaasInfo', ['version', 'authors', 'maintainer', 'email', 'copyright', 'description']) TAMAAS_INFOS = TamaasInfo( version=versioneer.get_version(), authors=([ u'Lucas Frérot', 'Guillaume Anciaux', 'Valentine Rey', 'Son Pham-Ba', u'Jean-François Molinari' ]), maintainer=u'Lucas Frérot', email='lucas.frerot@imtek.uni-freiburg.de', copyright=( u"Copyright (©) 2016-2022 EPFL " u"(École Polytechnique Fédérale de Lausanne), " u"Laboratory (LSMS - Laboratoire de Simulation en " u"Mécanique des Solides)" ), description='A high-performance library for periodic rough surface contact', ) + + +def main(): + import argparse + + parser = argparse.ArgumentParser(description="Print Tamaas info") + parser.add_argument("--version", action="store_true") + + args = parser.parse_args() + + if args.version: + print(TAMAAS_INFOS.version) + + +if __name__ == "__main__": + main()