Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version data #23

Merged
merged 2 commits into from
Nov 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions budoux/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@

from . import parser

__version__ = "0.0.2"

Parser = parser.Parser
load_default_japanese_parser = parser.load_default_japanese_parser
4 changes: 1 addition & 3 deletions budoux/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

import budoux

__version__ = "0.0.1"


def check_file(path: str) -> str:
"""Check if filepath is exist or not.
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down