This repository was archived by the owner on Jan 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
src/AthenaTwitchBot/_info Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- def _version ():
2- return '0.4.0'
1+ VERSION = '0.5.0'
Original file line number Diff line number Diff line change 99# Custom Packages
1010# noinspection PyProtectedMember
1111import 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 }
2222is made by Andreas Sas.
2323{ line }
2424""" , to_str )
You can’t perform that action at this time.
0 commit comments