- Changed Python version constraint from ">=3.9,<3.14" to ">=3.9,<3.13" in both files. - Updated dependency versions in pyproject.toml to use wildcard "*" for development dependencies. - Added hash values for minimalmodbus and pyserial in requirements.txt for enhanced security.
51 lines
988 B
TOML
51 lines
988 B
TOML
[tool.poetry]
|
|
name = "xnergy-example"
|
|
version = "0.2.0"
|
|
description = "An example for Xnergy charger"
|
|
authors = ["longqi <longqi90@gmail.com>"]
|
|
readme = "README.md"
|
|
|
|
[tool.poetry.dependencies]
|
|
python = ">=3.9,<3.13"
|
|
minimalmodbus = "^2.1.1"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
[tool.poetry.requires-plugins]
|
|
poetry-plugin-export = "*"
|
|
poetry-plugin-shell = "*"
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
nuitka = "*"
|
|
poetry = "*"
|
|
ipython = "*"
|
|
flake8 = "*"
|
|
yapf = "*"
|
|
pyinstaller = "*"
|
|
|
|
|
|
[[tool.poetry.source]]
|
|
name = "default"
|
|
url = "https://pypi.python.org/simple/"
|
|
priority = "primary"
|
|
|
|
[[tool.poetry.source]]
|
|
name = "aliyun"
|
|
url = "https://mirrors.aliyun.com/pypi/simple/"
|
|
priority = "supplemental"
|
|
|
|
[[tool.poetry.source]]
|
|
name = "tsinghua"
|
|
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
|
|
priority = "supplemental"
|
|
|
|
[tool.yapf]
|
|
use_tabs = true
|
|
column_limit = 120
|
|
continuation_align_style = "valign-right"
|
|
|
|
[tool.black]
|
|
line-length = 120
|