Update version to 0.2.0 in app.py and pyproject.toml

This commit is contained in:
Zhang LongQi 2025-06-05 18:18:05 +08:00
parent 034b83723c
commit 3b228b0ced
2 changed files with 3 additions and 3 deletions

4
app.py
View File

@ -10,7 +10,7 @@ from minimalmodbus import Instrument, MODE_RTU
import sys import sys
import time import time
VERSION = '0.1.0' VERSION = '0.2.0'
UNIT = 16 UNIT = 16
MODBUS_FC_READ_SINGLE_COIL = int("0x01", 16) MODBUS_FC_READ_SINGLE_COIL = int("0x01", 16)
@ -77,7 +77,7 @@ def run():
# help='set to parallel mode, parameter is the unit id, can be used multiple times') # help='set to parallel mode, parameter is the unit id, can be used multiple times')
parser.add_argument('-q', '--quiet', action='store_true', help='quiet mode, suppress all output') parser.add_argument('-q', '--quiet', action='store_true', help='quiet mode, suppress all output')
parser.add_argument('-v', '--version', action='version', version=f'%(prog)s {VERSION}')
args = parser.parse_args() args = parser.parse_args()
instrument = Instrument(port=args.port, mode=MODE_RTU, slaveaddress=UNIT, debug=not args.quiet) instrument = Instrument(port=args.port, mode=MODE_RTU, slaveaddress=UNIT, debug=not args.quiet)

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "xnergy-example" name = "xnergy-example"
version = "0.1.0" version = "0.2.0"
description = "An example for Xnergy charger" description = "An example for Xnergy charger"
authors = ["longqi <longqi90@gmail.com>"] authors = ["longqi <longqi90@gmail.com>"]
readme = "README.md" readme = "README.md"