This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
138 lines (129 loc) · 3.82 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[tool]
[tool.poetry]
name = "givenergy-modbus"
version = "0.10.1"
homepage = "https://github.com/dewet22/givenergy-modbus"
description = "A python library to access GivEnergy inverters via Modbus TCP, with no dependency on the GivEnergy Cloud."
authors = ["Dewet Diener <givenergy-modbus@dewet.org>"]
readme = "README.md"
license = "Apache-2.0"
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Flake8',
'Framework :: Pytest',
'Framework :: tox',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Home Automation',
'Topic :: Scientific/Engineering',
'Topic :: System :: Networking :: Monitoring',
]
packages = [
{ include = "givenergy_modbus" },
{ include = "tests", format = "sdist" },
]
[tool.poetry.dependencies]
python = ">=3.7,<4.0"
click = "^8.1.2"
black = { version = "^22.3.0", optional = true}
isort = { version = "^5.8.0", optional = true}
flake8 = { version = "^4.0.0", optional = true}
flake8-docstrings = { version = "^1.6.0", optional = true }
mypy = {version = "^0.942", optional = true}
pytest = { version = "^7.1.1", optional = true}
pytest-cov = { version = "^3.0.0", optional = true}
tox = { version = "^3.20.1", optional = true}
virtualenv = {version = ">=20.8.1", extras = ["dev"]}
pip = { version = ">=20.3.1,<22.0.0", optional = true}
#mkdocs = { version = "^1.3.0", optional = true}
#mkdocs-include-markdown-plugin = { version = "^3.3.0", optional = true}
#mkdocs-material = { version = "^8.2.9", optional = true}
#mkdocstrings = { version = "^0.18.1", optional = true}
#mkdocs-material-extensions = { version = "^1.0.1", optional = true}
twine = {version = "^4.0.0", optional = true}
#mkdocs-autorefs = {version = "^0.4.1", optional = true}
toml = {version = "^0.10.2", optional = true}
bump2version = {version = "^1.0.1", optional = true}
pymodbus = "^2.5.3"
loguru = ">=0.5.3,<0.7.0"
crccheck = "^1.1"
pydantic = "^1.8.2"
Markdown = {version = "3.3.4", optional = true}
pytkdocs = {version = "^0.16.1", optional = true}
aiofiles = "^0.8.0"
types-aiofiles = {version = "^0.8.8", extras = ["dev"]}
sentry-sdk = "^1.5.10"
pytest-asyncio = {version = "^0.18.3", extras = ["test"]}
pytest-timeout = {version = "^2.1.0", extras = ["test"]}
arrow = "^1.2.2"
[tool.poetry.extras]
test = [
"pytest",
"black",
"isort",
"mypy",
"flake8",
"flake8-docstrings",
"pytest-cov"
]
dev = ["tox", "virtualenv", "pip", "twine", "toml", "bump2version", "twine"]
doc = [
"mkdocs",
"mkdocs-include-markdown-plugin",
"mkdocs-material",
"mkdocstrings",
"mkdocs-material-extension",
"mkdocs-autorefs",
"Markdown",
"pytkdocs"
]
[tool.poetry.scripts]
givenergy-modbus = 'givenergy_modbus.cli:main'
[tool.poetry.dev-dependencies]
bandit = "^1.7.1"
ipython = "^7.31.1"
flake8 = "^4.0.1"
autopep8 = "^1.6.0"
pre-commit = "^2.16.0"
pydocstyle = "^6.1.1"
flake8-typing-imports = "^1.12.0"
virtualenv = "^20.14.1"
[tool.black]
line-length = 120
skip-string-normalization = true
target-version = ['py37', 'py38', 'py39', 'py310']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
skip_gitignore = true
# you can skip files as below
#skip_glob = docs/conf.py
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"