Changeset - 30c60d9d2e94
[Not reviewed]
default
0 2 1
Laman - 3 years ago 2022-03-03 23:19:13

the program can output its version
3 files changed with 6 insertions and 2 deletions:
0 comments (0 inline, 0 general)
setup.cfg
Show inline comments
 
[metadata]
 
name = Shamira
 
version = 0.1
 
version = attr: shamira.version.__version__
 
author = Tadeáš Berkman
 
url = https://repo.19x19.cz/Shamira
 
project_urls =
src/shamira/cli.py
Show inline comments
 
@@ -3,12 +3,14 @@
 
import sys
 
from argparse import ArgumentParser
 

	
 
from .version import __version__
 
from .core import generate, reconstruct, SException
 
from .benchmark import build_subparsers as build_benchmark
 

	
 

	
 
def run():
 
	parser = ArgumentParser()
 
	parser = ArgumentParser(prog="Shamira")
 
	parser.add_argument("-V", "--version", action="version", version='%(prog)s {}'.format(__version__))
 
	subparsers = parser.add_subparsers()
 

	
 
	build_split_parser(subparsers.add_parser("split"))
src/shamira/version.py
Show inline comments
 
new file 100644
 
VERSION_TUP = (0, 1)
 
__version__ = ".".join(map(str, VERSION_TUP))
0 comments (0 inline, 0 general)