Compare commits

..

No commits in common. "main" and "v0.4.4" have entirely different histories.
main ... v0.4.4

7 changed files with 18 additions and 44 deletions

View file

@ -1 +1 @@
docs/changelog/0.4.7.md docs/changelog/0.4.4.md

View file

@ -1,2 +0,0 @@
- Restored the runtime dependency metadata for installations.
- Added the automated Haco test environment to release validation.

View file

@ -1 +0,0 @@
- Update the Corio dependency to its latest stable release.

View file

@ -1 +0,0 @@
- Logs now use the package name and version and respect the configured development or production environment.

View file

@ -3,10 +3,14 @@
Observability and logging setup for the haco library. Observability and logging setup for the haco library.
""" """
from corio import debug, logs from corio import logs, debug, Constants
from haco.paths import paths from haco.paths import paths
debug.trace() debug.trace()
logger = logs.from_paths(paths) logger = logs.get_logger(
name=paths.name,
stream=Constants.DEVELOPMENT,
version=paths.metadata.version,
)

View file

@ -1,8 +1,6 @@
import asyncio import asyncio
import logging import logging
from logfire import LogfireLoggingHandler
from haco.button import Button from haco.button import Button
from haco.client import ClientHaco from haco.client import ClientHaco
from haco.climate import Climate from haco.climate import Climate
@ -11,7 +9,7 @@ from haco.obs import logger
from haco.select import Select from haco.select import Select
from haco.switch import Switch from haco.switch import Switch
handler = LogfireLoggingHandler(logfire_instance=logger) handler = logger.LogfireLoggingHandler()
logging.basicConfig(handlers=[handler], level=logging.DEBUG) logging.basicConfig(handlers=[handler], level=logging.DEBUG)
async def main(): async def main():

View file

@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.corio.metadata] [tool.corio.metadata]
version = "0.4.7" version = "0.4.4"
port = 6 port = 6
base = "python" base = "python"
description = "Home Assistant Control Objects" description = "Home Assistant Control Objects"
@ -15,15 +15,11 @@ services = []
keywords = ["homeassistant", "controls", "python", "tasmota"] keywords = ["homeassistant", "controls", "python", "tasmota"]
is_pypi = true is_pypi = true
is_dockerhub = false is_dockerhub = false
editables = ["corio"]
[tool.corio.metadata.setup] [tool.corio.metadata.setup]
[tool.corio.test-envs] [tool.corio.dependencies]
dev = ["dev"] test = ["corio[test]"]
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
where = ["."] where = ["."]
@ -31,56 +27,36 @@ include = ["haco*"]
namespaces = false namespaces = false
[tool.setuptools.package-data] [tool.setuptools.package-data]
haco = ["pyproject.package.toml", "**/assets/**"] haco = ["pyproject.package.toml", "assets/**"]
[tool.uv.sources.corio] [tool.uv.sources.corio]
path = "../corio" path = "../corio"
editable = true editable = true
[tool.uv.config-settings-package.corio]
editable_mode = "compat"
[tool.tox] [tool.tox]
requires = ["tox>=4.22", "tox-uv>=1"] requires = ["tox>=4.22", "tox-uv>=1"]
env_list = ["prod"] env_list = []
[tool.tox.env.dev] [tool.tox.env]
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] [project]
name = "haco" name = "haco"
version = "0.4.7" version = "0.4.4"
description = "Home Assistant Control Objects" description = "Home Assistant Control Objects"
readme = "README.md" readme = "README.md"
license = "Apache-2.0" license = "Apache-2.0"
keywords = ["homeassistant", "controls", "python", "tasmota"] keywords = ["homeassistant", "controls", "python", "tasmota"]
dependencies = ["corio[api,caching,debug,mqtt,sets,yaml]~=2.21.6", "psutil"] dependencies = []
[[project.authors]] [[project.authors]]
name = "Frontmatter AI" name = "Frontmatter AI"
email = "innovative.fowler@mask.pro.fmtr.dev" email = "innovative.fowler@mask.pro.fmtr.dev"
[project.optional-dependencies] [project.optional-dependencies]
dev = ["corio[infra]~=2.21.6"] test = ["corio[test]~=2.15.10"]
test = ["corio[test]~=2.21.6"] all = ["corio[test]~=2.15.10"]
[project.urls] [project.urls]
Homepage = "https://github.com/fmtr/haco" Homepage = "https://github.com/fmtr/haco"
[project.scripts] [project.scripts]
[dependency-groups]
dev = ["corio[infra]~=2.21.6"]