Convert to using poetry to run bmspy
This commit is contained in:
24
pyproject.toml
Normal file
24
pyproject.toml
Normal file
@@ -0,0 +1,24 @@
|
||||
[tool.poetry]
|
||||
name = "bmspy"
|
||||
version = "1.0"
|
||||
description = "bmspy is a tool to get information from a xiaoxiang-type BMS system"
|
||||
authors = ["Timothy Allen <tim@treehouse.org.za>"]
|
||||
license = "CC BY-NC-SA 4.0"
|
||||
readme = "README.md"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8"
|
||||
pyserial = "^3.5"
|
||||
influxdb-client = {version = "^1.19.0", optional = true, extras = ["influxdb"]}
|
||||
prometheus-client = {version = "^0.11.0", optional = true, extras = ["prometheus"]}
|
||||
|
||||
[tool.poetry.extras]
|
||||
influxdb = ["influxdb-client"]
|
||||
prometheus = ["prometheus-client"]
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
bmspy = "bmspy.bms:main"
|
||||
Reference in New Issue
Block a user