mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
build(meta_update): Add new option --outdir
This commit is contained in:
parent
1036e204d0
commit
5ec3bb902e
|
@ -139,6 +139,7 @@ def main():
|
||||||
parser = ArgumentParser(description='Update codemeta.json and '
|
parser = ArgumentParser(description='Update codemeta.json and '
|
||||||
'.zenodo.json')
|
'.zenodo.json')
|
||||||
parser.add_argument('--set-version', dest='newversion')
|
parser.add_argument('--set-version', dest='newversion')
|
||||||
|
parser.add_argument('--outdir', dest='outdir')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
for manipulator in (CodeMetaManipulator(), ZenodoManipulator()):
|
for manipulator in (CodeMetaManipulator(), ZenodoManipulator()):
|
||||||
|
@ -150,7 +151,10 @@ def main():
|
||||||
if args.newversion is not None:
|
if args.newversion is not None:
|
||||||
manipulator.version(args.newversion)
|
manipulator.version(args.newversion)
|
||||||
manipulator.update_authors()
|
manipulator.update_authors()
|
||||||
manipulator.save()
|
filename = None
|
||||||
|
if args.outdir is not None:
|
||||||
|
filename = f'{args.outdir}/{manipulator.default_filename}'
|
||||||
|
manipulator.save(filename)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user