Files
SmartThings-Local/pyproject.toml
T
Jack Nagy a63bc0bb01 docs: add trademark non-affiliation notice (README + NOTICE)
Add a Trademarks & disclaimer section to the README and a root NOTICE
file stating this is an independent, unofficial project not affiliated
with Samsung, and that Samsung/SmartThings marks are used nominatively.

Ship NOTICE inside the distributed artifacts by adding it to
license-files (wheel .dist-info/licenses/) and the sdist include list.
2026-08-07 16:46:47 +01:00

66 lines
1.9 KiB
TOML

[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "smartthings-local"
dynamic = ["version"]
description = "Local CoAP-over-DTLS (OCF) transport + polling layer for Samsung SmartThings appliances"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
license-files = ["LICENSE", "NOTICE"]
authors = [{ name = "Jack Nagy" }]
keywords = ["smartthings", "samsung", "ocf", "coap", "dtls", "home-assistant", "iot"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Home Automation",
"Topic :: System :: Networking",
"Programming Language :: Python :: 3",
]
dependencies = [
"cbor2>=5.6",
"pyOpenSSL>=23.1",
]
[project.urls]
Homepage = "https://github.com/QuiteYellow/SmartThings-Local"
Repository = "https://github.com/QuiteYellow/SmartThings-Local"
Issues = "https://github.com/QuiteYellow/SmartThings-Local/issues"
[project.optional-dependencies]
dev = ["pytest>=8.0"]
[tool.hatch.version]
source = "vcs"
# Derive the version from git tags of the form v1.2.3.
[tool.hatch.version.raw-options]
version_scheme = "no-guess-dev"
[tool.hatch.build.hooks.vcs]
version-file = "smartthings_local/_version.py"
# ocf_root_ca.pem is tracked, but the repo .gitignore's `*.pem` rule makes
# hatchling's VCS-based file selection drop it. It's loaded at runtime by
# protocol/dtls_session.py (load_verify_locations), so force it into every
# build target (wheel + sdist).
[tool.hatch.build]
artifacts = ["smartthings_local/protocol/ocf_root_ca.pem"]
[tool.hatch.build.targets.wheel]
# Ship only the library; the mqtt_demo/, tests/, and setup_cert.py stay
# in-repo and are not part of the distributable package.
packages = ["smartthings_local"]
[tool.hatch.build.targets.sdist]
include = [
"smartthings_local",
"tests",
"README.md",
"LICENSE",
"NOTICE",
"pyproject.toml",
]