forked from jblance/mpp-solar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
66 lines (58 loc) · 1.76 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[tool.poetry]
name = "mppsolar"
version = "0.16.19"
description = "Package to communicate with Solar inverters and BMSs"
authors = ["John Blance"]
readme = "README.md"
packages = [
{include = "mppsolar"},
{include = "powermon"},
{include = "api"},
{include = "powermon_api"},
]
[tool.poetry.dependencies]
python = ">=3.10,<4.00"
paho-mqtt = ">=1.6"
pyserial = ">3"
pydantic = ">=1.8.0"
# Extra dependencies
bleak = { version = "^0.20.2", optional = true }
bluepy = { version = "^1.3.0", optional = true }
cysystemd = { version = ">=1.6.0", optional = true }
fastapi = { version = ">=0.68.0", optional = true }
fastapi-mqtt = { version = ">=1.1", optional = true }
# paho-mqtt = { version = ">=1.6", optional = true }
pymongo = { version = ">=4.6.1", optional = true }
psycopg2-binary = { version = ">=2.9.9", optional = true }
PyYAML = { version = ">=6", optional = true }
requests = { version = ">=2.31.0", optional = true }
sqlalchemy = { version = "^2.0.15", optional = true }
strenum = { version = "^0.4.1", optional = true }
uvicorn = { version = ">=0.15.0", optional = true }
[tool.poetry.extras]
api = ["fastapi", "fastapi-mqtt", "sqlalchemy", "uvicorn"]
ble = ["bleak", "bluepy"]
# mqtt = ["paho-mqtt"]
mongo = ["pymongo"]
pgsql = ["psycopg2-binary"]
powermon = ["PyYAML", "strenum"]
push = ["requests"]
systemd = ["cysystemd"]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
twine = "^4.0.2"
flake8 = "^6.0.0"
black = "^23.3.0"
coverage = "^7.2.5"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
mpp-solar = "mppsolar:main"
mppsolar = "mppsolar:main"
jkbms = "mppsolar:main"
powermon = "powermon:main"
powermon-api = "powermon_api.api:main"
[tool.black]
line-length = 149