Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 0b7327b

Browse files
author
DirectiveAthena
committed
Change: Better VERSION
1 parent 1281956 commit 0b7327b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def version_handler() -> str:
2323
version_str = ".".join(str(i) for i in version)
2424

2525
with open("src/AthenaTwitchBot/_info/_v.py", "w") as file:
26-
file.write(f"def _version():\n return '{version_str}'")
26+
file.write(f"VERSION='{version_str}'")
2727

2828
return version_str
2929

src/AthenaTwitchBot/_info/_v.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
def _version():
2-
return '0.4.0'
1+
VERSION='0.5.0'

src/AthenaTwitchBot/_info/info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Custom Packages
1010
# noinspection PyProtectedMember
1111
import AthenaLib._info.formatting as f
12-
from AthenaTwitchBot._info._v import _version
12+
from AthenaTwitchBot._info._v import VERSION
1313

1414
# ----------------------------------------------------------------------------------------------------------------------
1515
# - Code -
@@ -18,7 +18,7 @@ def info(*, to_str: bool = False) -> None | str:
1818
# todo needs a lot of work
1919
line = "-" * 128
2020
header = f.header(f"""{line}
21-
{f.title("AthenaTwitchBot", to_str)} v{_version()}
21+
{f.title("AthenaTwitchBot", to_str)} v{VERSION}
2222
is made by Andreas Sas.
2323
{line}
2424
""", to_str)

0 commit comments

Comments
 (0)