generated from ludeeus/integration_blueprint
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (72 loc) · 1.78 KB
/
pyproject.toml
File metadata and controls
80 lines (72 loc) · 1.78 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "napoleon-efire"
dynamic = ["version"]
description = 'Home Assistant component for Napoleon fireplaces'
readme = "README.md"
requires-python = ">=3.13"
license = "Apache-2.0"
authors = [
{ name = "Felix Kaechele", email = "felix@kaechele.ca" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"bluetooth_data_tools>=1.28.0",
"homeassistant>=2025.8",
"bonaparte>=1.0.1",
]
[project.urls]
Documentation = "https://github.com/kaechele/napoleon-efire#readme"
Issues = "https://github.com/kaechele/napoleon-efire/issues"
Source = "https://github.com/kaechele/napoleon-efire"
[tool.hatch.version]
path = "custom_components/napoleon_efire/manifest.json"
pattern = '"version": "(?P<version>[^\"]+)"'
[tool.hatch.envs.default]
path = ".envs/default"
python = "3.13"
[tool.hatch.envs.lint]
detached = true
path = ".envs/lint"
dependencies = [
"ruff>=0.12.3",
]
[tool.hatch.envs.lint.scripts]
style = [
"ruff format --diff {args:.}",
]
fmt = [
"ruff check --fix {args:.}",
"ruff format {args:.}",
"style",
]
all = [
"style",
]
[tool.hatch.envs.release]
detached = true
dependencies = [
"python-semantic-release>=10.3.1"
]
[tool.hatch.envs.release.scripts]
dryrun = "semantic-release --noop version"
local = "semantic-release version --no-push"
push = "semantic-release version"
[tool.semantic_release]
logging_use_named_masks = true
build_command = """
pushd custom_components/napoleon_efire/
mkdir -p ../../dist
zip -h > /dev/null 2>&1 || apt-get install -y zip
zip ../../dist/napoleon_efire.zip -r ./
popd
"""
version_variables = [
"custom_components/napoleon_efire/manifest.json:version"
]