From c661788d3ea6ede1f2c77757909bd82e717c07d4 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Sun, 3 May 2026 07:58:18 +0100 Subject: [PATCH] Migrate to `pyproject.toml` for project configuration. --- haco/meta.json | 32 ------------------- haco/pyproject.toml | 1 + pyproject.toml | 78 +++++++++++++++++++++++++++++++++++++-------- setup.py | 18 ----------- 4 files changed, 65 insertions(+), 64 deletions(-) delete mode 100644 haco/meta.json create mode 120000 haco/pyproject.toml delete mode 100644 setup.py diff --git a/haco/meta.json b/haco/meta.json deleted file mode 100644 index a37082d..0000000 --- a/haco/meta.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "version": "0.3.1", - "port": 6, - "entrypoint": null, - "base": "python", - "description": null, - "org_singleton": null, - "org_github": "fmtr", - "org_friendly": "Frontmatter AI", - "is_client": false, - "scripts": [], - "services": [], - "docs": { - "nav": [ - { - "Home": "index.md" - }, - { - "Quick Start": "quick-start.md" - }, - { - "Control Types": "controls.md" - }, - { - "Changelog": "changelog/" - } - ] - }, - "setup": {}, - "is_pypi": true, - "is_dockerhub": false -} \ No newline at end of file diff --git a/haco/pyproject.toml b/haco/pyproject.toml new file mode 120000 index 0000000..1e11d78 --- /dev/null +++ b/haco/pyproject.toml @@ -0,0 +1 @@ +../pyproject.toml \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index aafd9d1..31380c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,19 +1,69 @@ [build-system] -requires = ["corio[setup,debug]"] -build-backend = "setuptools.build_meta" # +requires = ["setuptools>=82", "wheel"] +build-backend = "setuptools.build_meta" + +[tool.corio.metadata] +version = "0.3.1" +port = 6 +base = "python" +description = "Home Assistant Control Objects" +org_github = "fmtr" +org_friendly = "Frontmatter AI" +is_client = false +scripts = [] +services = [] +keywords = ["homeassistant", "controls", "python", "tasmota"] +is_pypi = true +is_dockerhub = false + +[[tool.corio.metadata.docs.nav]] +Home = "index.md" + +[[tool.corio.metadata.docs.nav]] +"Quick Start" = "quick-start.md" + +[[tool.corio.metadata.docs.nav]] +"Control Types" = "controls.md" + +[[tool.corio.metadata.docs.nav]] +Changelog = "changelog/" + +[tool.corio.metadata.setup] + +[tool.setuptools.packages.find] +where = ["."] +include = ["haco*"] +namespaces = false + +[tool.setuptools.package-data] +haco = ["pyproject.toml"] + +[tool.uv.sources.corio] +path = "../corio" +editable = true [project] -name= "haco" -dynamic = [ - "description", - "readme", - "version", - "dependencies", - "optional-dependencies", - "license", - "authors", - "keywords", +name = "haco" +version = "0.3.1" +description = "Home Assistant Control Objects" +readme = "README.md" +license = "Apache-2.0" +license-files = ["LICENSE"] +keywords = ["homeassistant", "controls", "python", "tasmota"] +dependencies = [ + "corio[version.dev,logging,sets,yaml,debug,caching,api,mqtt]", + "psutil", ] -[tool.uv.sources] -corio = { path = "../corio", editable = true } +[[project.authors]] +name = "Frontmatter AI" +email = "innovative.fowler@mask.pro.fmtr.dev" + +[project.optional-dependencies] +test = [ + "pytest>=8.0", + "pytest-cov>=5.0", +] + +[project.urls] +Homepage = "https://github.com/fmtr/haco" diff --git a/setup.py b/setup.py deleted file mode 100644 index 77553f0..0000000 --- a/setup.py +++ /dev/null @@ -1,18 +0,0 @@ -from corio import Setup - -setup = Setup( - org=None, - dependencies=dict( - install=[ - 'corio[version.dev,logging,sets,yaml,debug,caching,api,mqtt]', - 'psutil' - ], - test=[ - 'pytest>=8.0', - 'pytest-cov>=5.0', - ], - ), - description='Home Assistant Control Objects', - keywords='homeassistant controls python tasmota', - # url=f'https://fmtr.link/{name}', -)