- Updated Python version requirement from ">=3.8,<4.0" to ">=3.9,<3.14" in pyproject.toml and requirements.txt. - Added additional development dependencies: poetry, ipython, flake8, yapf, and pyinstaller. - Configured multiple package sources for dependency resolution in pyproject.toml. - Added formatting configurations for yapf and black to maintain code style consistency.
51 lines
1.0 KiB
TOML
51 lines
1.0 KiB
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.14"
|
|
minimalmodbus = "^2.1.1"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
[tool.poetry.requires-plugins]
|
|
poetry-plugin-export = ">=1.8"
|
|
poetry-plugin-shell = ">=1.0.1"
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
nuitka = "^2.7.2"
|
|
poetry = "^2.1.3"
|
|
ipython = "^8.11.0"
|
|
flake8 = "^7.2.0"
|
|
yapf = "^0.43.0"
|
|
pyinstaller = "^6.13.0"
|
|
|
|
|
|
[[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
|