Skip to content

Commit

Permalink
fix: 修正版本引入问题
Browse files Browse the repository at this point in the history
  • Loading branch information
kaaass committed Mar 1, 2022
1 parent 17a96f1 commit 743e058
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions beancount_bot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
__AUTHOR__ = 'KAAAsS'
__LICENSE__ = "MIT"
from beancount_bot.__version__ import __VERSION__

from beancount_bot import builtin
from beancount_bot import dispatcher
Expand Down
1 change: 1 addition & 0 deletions beancount_bot/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__VERSION__ = '1.2.1'
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

from setuptools import setup

__VERSION__ = "1.2.0"
__VERSION__ = "1.2.1"

root = Path(__file__).parent
long_description = (root / "README.md").read_text()

# 写版本号
with open("beancount_bot/__version__.py", "w") as f:
f.write(f"__VERSION__ = '{__VERSION__}'")

setup(
name='beancount-bot',
version=__VERSION__,
Expand Down

0 comments on commit 743e058

Please sign in to comment.