diff --git a/budoux/__init__.py b/budoux/__init__.py index 289f6c07..60620c35 100644 --- a/budoux/__init__.py +++ b/budoux/__init__.py @@ -15,5 +15,7 @@ from . import parser +__version__ = "0.0.2" + Parser = parser.Parser load_default_japanese_parser = parser.load_default_japanese_parser diff --git a/budoux/main.py b/budoux/main.py index 6a8b5677..04f8bbc0 100644 --- a/budoux/main.py +++ b/budoux/main.py @@ -25,8 +25,6 @@ import budoux -__version__ = "0.0.1" - def check_file(path: str) -> str: """Check if filepath is exist or not. @@ -98,7 +96,7 @@ def parse_args( "-V", "--version", action="version", - version="%(prog)s {}".format(__version__)) + version="%(prog)s {}".format(budoux.__version__)) if test: return parser.parse_args(test) else: diff --git a/setup.cfg b/setup.cfg index 725a312d..c131d26b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = budoux -version = 0.0.2 +version = attr: budoux.__init__.__version__ description = BudouX is the successor of Budou long_description = file: README.md long_description_content_type = text/markdown