Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (68 loc) · 2.68 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (68 loc) · 2.68 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
[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",
# Already imported directly by protocol/auth.py (cryptography.x509.oid)
# and by protocol/_dtls_psk.py, but only ever resolved as a transitive
# dependency of pyOpenSSL until now.
# The floor matches what pyOpenSSL 23.1.0 permits (it caps below 41), so
# the floor CI job resolves. Everything used here -- AES-CBC, HMAC,
# EC key generation and from_encoded_point -- long predates it.
"cryptography>=38.0",
"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"]
# The sdist carries the library and its metadata, matching the wheel comment
# above: mqtt_demo/, tests/, tools/ and setup_cert.py are in-repo development
# material. tests/ used to ship, with no stated reason and against that same
# intent, and it could not be run from an sdist anyway because the packages it
# imports stayed behind. Anyone wanting to run the suite uses the git tag, as
# CI does.
[tool.hatch.build.targets.sdist]
include = [
"smartthings_local",
"README.md",
"LICENSE",
"NOTICE",
"pyproject.toml",
]