mirror of
https://github.com/fmtr/haco.git
synced 2026-12-02 21:00:10 -05:00
Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6aa0a6b41f | ||
|
|
fbdc97a0f9 | ||
|
|
005fa9259d | ||
|
|
a8c7f4ae6a | ||
|
|
9dd13b4890 | ||
|
|
06e5d43bca | ||
|
|
a8359d46b1 |
7 changed files with 44 additions and 18 deletions
|
|
@ -1 +1 @@
|
|||
docs/changelog/0.4.4.md
|
||||
docs/changelog/0.4.7.md
|
||||
2
docs/changelog/0.4.5.md
Normal file
2
docs/changelog/0.4.5.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
- Restored the runtime dependency metadata for installations.
|
||||
- Added the automated Haco test environment to release validation.
|
||||
1
docs/changelog/0.4.6.md
Normal file
1
docs/changelog/0.4.6.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Update the Corio dependency to its latest stable release.
|
||||
1
docs/changelog/0.4.7.md
Normal file
1
docs/changelog/0.4.7.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
- Logs now use the package name and version and respect the configured development or production environment.
|
||||
|
|
@ -3,14 +3,10 @@
|
|||
Observability and logging setup for the haco library.
|
||||
|
||||
"""
|
||||
from corio import logs, debug, Constants
|
||||
from corio import debug, logs
|
||||
|
||||
from haco.paths import paths
|
||||
|
||||
debug.trace()
|
||||
|
||||
logger = logs.get_logger(
|
||||
name=paths.name,
|
||||
stream=Constants.DEVELOPMENT,
|
||||
version=paths.metadata.version,
|
||||
)
|
||||
logger = logs.from_paths(paths)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import asyncio
|
||||
import logging
|
||||
|
||||
from logfire import LogfireLoggingHandler
|
||||
|
||||
from haco.button import Button
|
||||
from haco.client import ClientHaco
|
||||
from haco.climate import Climate
|
||||
|
|
@ -9,7 +11,7 @@ from haco.obs import logger
|
|||
from haco.select import Select
|
||||
from haco.switch import Switch
|
||||
|
||||
handler = logger.LogfireLoggingHandler()
|
||||
handler = LogfireLoggingHandler(logfire_instance=logger)
|
||||
logging.basicConfig(handlers=[handler], level=logging.DEBUG)
|
||||
|
||||
async def main():
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"]
|
|||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.corio.metadata]
|
||||
version = "0.4.4"
|
||||
version = "0.4.7"
|
||||
port = 6
|
||||
base = "python"
|
||||
description = "Home Assistant Control Objects"
|
||||
|
|
@ -15,11 +15,15 @@ services = []
|
|||
keywords = ["homeassistant", "controls", "python", "tasmota"]
|
||||
is_pypi = true
|
||||
is_dockerhub = false
|
||||
editables = ["corio"]
|
||||
|
||||
[tool.corio.metadata.setup]
|
||||
|
||||
[tool.corio.dependencies]
|
||||
test = ["corio[test]"]
|
||||
[tool.corio.test-envs]
|
||||
dev = ["dev"]
|
||||
|
||||
[tool.setuptools]
|
||||
include-package-data = false
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["."]
|
||||
|
|
@ -27,36 +31,56 @@ include = ["haco*"]
|
|||
namespaces = false
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
haco = ["pyproject.package.toml", "assets/**"]
|
||||
haco = ["pyproject.package.toml", "**/assets/**"]
|
||||
|
||||
[tool.uv.sources.corio]
|
||||
path = "../corio"
|
||||
editable = true
|
||||
|
||||
[tool.uv.config-settings-package.corio]
|
||||
editable_mode = "compat"
|
||||
|
||||
[tool.tox]
|
||||
requires = ["tox>=4.22", "tox-uv>=1"]
|
||||
env_list = []
|
||||
env_list = ["prod"]
|
||||
|
||||
[tool.tox.env]
|
||||
[tool.tox.env.dev]
|
||||
description = "Run haco tests."
|
||||
deps = ["-e ../corio[api,caching,debug,mqtt,sets,test,yaml]", "psutil"]
|
||||
commands = [["python", "-m", "pytest", "-q", "{posargs:haco/tests}"]]
|
||||
install_command = ["uv", "pip", "install", "--refresh-package", "corio", "{opts}", "{packages}"]
|
||||
skip_install = true
|
||||
|
||||
[tool.tox.env.prod]
|
||||
description = "Run haco tests."
|
||||
deps = ["corio[test]~=2.21.6"]
|
||||
commands = [["python", "-m", "pytest", "-q", "{posargs:haco/tests}"]]
|
||||
install_command = ["uv", "pip", "install", "--refresh-package", "corio", "{opts}", "{packages}"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_default_fixture_loop_scope = "function"
|
||||
|
||||
[project]
|
||||
name = "haco"
|
||||
version = "0.4.4"
|
||||
version = "0.4.7"
|
||||
description = "Home Assistant Control Objects"
|
||||
readme = "README.md"
|
||||
license = "Apache-2.0"
|
||||
keywords = ["homeassistant", "controls", "python", "tasmota"]
|
||||
dependencies = []
|
||||
dependencies = ["corio[api,caching,debug,mqtt,sets,yaml]~=2.21.6", "psutil"]
|
||||
|
||||
[[project.authors]]
|
||||
name = "Frontmatter AI"
|
||||
email = "innovative.fowler@mask.pro.fmtr.dev"
|
||||
|
||||
[project.optional-dependencies]
|
||||
test = ["corio[test]~=2.15.10"]
|
||||
all = ["corio[test]~=2.15.10"]
|
||||
dev = ["corio[infra]~=2.21.6"]
|
||||
test = ["corio[test]~=2.21.6"]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/fmtr/haco"
|
||||
|
||||
[project.scripts]
|
||||
|
||||
[dependency-groups]
|
||||
dev = ["corio[infra]~=2.21.6"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue