-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (71 loc) · 2.33 KB
/
pyproject.toml
File metadata and controls
79 lines (71 loc) · 2.33 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "machine-rules"
version = "0.2.0"
description = "JSR-94 compatible rules engine for Python with secure expression evaluation"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [
{ name="Machine Rules Contributors", email="machine-rules@example.com" }
]
keywords = ["rules-engine", "jsr-94", "business-rules", "decision-engine", "ai-agents"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
# Core dependencies - minimal for basic usage
dependencies = [
"pyyaml>=6.0",
"pydantic>=2.0",
"simpleeval>=0.9.13",
]
[project.optional-dependencies]
# Optional: FastAPI REST API support
api = [
"fastapi>=0.115.0", # Requires starlette>=0.49.1 (fixes GHSA-7f5h-v6xp-fcq8, GHSA-2c2j-9gv5-cj73)
"starlette>=0.49.1", # Explicit constraint to avoid vulnerable versions on Python 3.8
"uvicorn[standard]>=0.24.0",
"httpx>=0.24.0", # Required for FastAPI TestClient
]
# Optional: MCP server support
mcp = [
"mcp[cli]>=1.0.0",
]
# Development dependencies
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=0.21.0",
"ruff>=0.1.0",
"mypy>=1.7.0",
"build>=1.0.0",
"fastapi>=0.115.0", # Required for tests
"starlette>=0.49.1", # Required for tests
"uvicorn[standard]>=0.24.0", # Required for tests
"httpx>=0.24.0", # Required for FastAPI TestClient
"types-PyYAML>=6.0.0",
"mcp[cli]>=1.0.0", # Required for MCP server tests
]
# All optional features
all = [
"machine-rules[api]",
"machine-rules[mcp]",
]
[project.urls]
Homepage = "https://github.com/haveard/machine_rules"
Repository = "https://github.com/haveard/machine_rules"
Issues = "https://github.com/haveard/machine_rules/issues"
Documentation = "https://github.com/haveard/machine_rules#readme"
Changelog = "https://github.com/haveard/machine_rules/blob/main/CHANGELOG.md"
[tool.setuptools.packages.find]
where = ["."]
include = ["machine_rules*"]
exclude = ["tests*", "docs*"]