Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (94 loc) · 4.9 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (94 loc) · 4.9 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "determa-state"
dynamic = ["version"]
description = "Determa State — Python reference implementation of the Determa statechart engine"
readme = "README.md"
requires-python = ">=3.11"
license = { file = "LICENSE" }
authors = [{ name = "Christian-Manuel Butzke" }]
keywords = ["statechart", "state-machine", "determa", "fsm", "hsm", "uml", "scxml"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
dependencies = [
"pyyaml>=6",
"jsonschema>=4",
"cel-python>=0.1",
"rfc8785>=0.1.4",
"typing-extensions>=4.16",
]
[project.urls]
Homepage = "https://github.com/fruwehq/determa-state-python"
Repository = "https://github.com/fruwehq/determa-state-python"
Specification = "https://github.com/fruwehq/determa-state-spec"
Issues = "https://github.com/fruwehq/determa-state-python/issues"
[project.optional-dependencies]
postgresql = [
"psycopg[binary]>=3.1,<4",
]
dev = [
"build>=1",
"hatchling",
"pytest>=8",
"ruff",
"mypy",
"types-PyYAML",
"types-jsonschema",
]
[project.scripts]
# The canonical command, plus a language-suffixed alias so the launcher (and users)
# can pick a specific implementation when both are installed (DETERMA_STATE_IMPL=python).
determa-state = "determa.state.cli:main"
determa-state-python = "determa.state.cli:main"
[tool.hatch.version]
path = "src/determa/state/__about__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/determa"]
[tool.hatch.build.targets.wheel.force-include]
"src/determa/state/data/machine.schema.json" = "determa/state/data/machine.schema.json"
"src/determa/state/data/aggregate-state-v1.schema.json" = "determa/state/data/aggregate-state-v1.schema.json"
"src/determa/state/data/migration-descriptor-v1.schema.json" = "determa/state/data/migration-descriptor-v1.schema.json"
"src/determa/state/data/aggregate-state-package-v1.schema.json" = "determa/state/data/aggregate-state-package-v1.schema.json"
"src/determa/state/data/execution-checkpoint-v1.schema.json" = "determa/state/data/execution-checkpoint-v1.schema.json"
"src/determa/state/data/core-step-result-v1.schema.json" = "determa/state/data/core-step-result-v1.schema.json"
"src/determa/state/data/provider-reference-v1.schema.json" = "determa/state/data/provider-reference-v1.schema.json"
"src/determa/state/data/extension-descriptor-v1.schema.json" = "determa/state/data/extension-descriptor-v1.schema.json"
"src/determa/state/data/extension-capability-report-v1.schema.json" = "determa/state/data/extension-capability-report-v1.schema.json"
"src/determa/state/data/extension-capability-requirement-v1.schema.json" = "determa/state/data/extension-capability-requirement-v1.schema.json"
"src/determa/state/data/inspection-v1.schema.json" = "determa/state/data/inspection-v1.schema.json"
"src/determa/state/data/host-authority-operation-v1.schema.json" = "determa/state/data/host-authority-operation-v1.schema.json"
"src/determa/state/data/host-authority-profile-report-v1.schema.json" = "determa/state/data/host-authority-profile-report-v1.schema.json"
"src/determa/state/data/runtime-action-output-v1.schema.json" = "determa/state/data/runtime-action-output-v1.schema.json"
"src/determa/state/data/runtime-provider-descriptor-v1.schema.json" = "determa/state/data/runtime-provider-descriptor-v1.schema.json"
"src/determa/state/data/language-source-v1.schema.json" = "determa/state/data/language-source-v1.schema.json"
"src/determa/state/data/compilation-manifest-v1.schema.json" = "determa/state/data/compilation-manifest-v1.schema.json"
"src/determa/state/data/host-effect-journal-v1.schema.json" = "determa/state/data/host-effect-journal-v1.schema.json"
"src/determa/state/data/host-effect-claim-v1.schema.json" = "determa/state/data/host-effect-claim-v1.schema.json"
"src/determa/state/data/effect-result-request-v1.schema.json" = "determa/state/data/effect-result-request-v1.schema.json"
"src/determa/state/data/effect-result-response-v1.schema.json" = "determa/state/data/effect-result-response-v1.schema.json"
"src/determa/state/data/effect-cancellation-request-v1.schema.json" = "determa/state/data/effect-cancellation-request-v1.schema.json"
"src/determa/state/data/effect-cancellation-response-v1.schema.json" = "determa/state/data/effect-cancellation-response-v1.schema.json"
[tool.ruff]
line-length = 100
target-version = "py311"
extend-exclude = ["vendor", ".pinned"] # external spec/conformance checkouts are not ours to lint
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "W", "C4"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_unused_ignores = true
files = ["src/determa"]
[tool.pytest.ini_options]
testpaths = ["tests"]