forked from rossoctl/rossoctl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (81 loc) · 2.53 KB
/
Copy pathpyproject.toml
File metadata and controls
101 lines (81 loc) · 2.53 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "rossoctl-project"
version = "0.1.0"
description = "Monorepo for Rossoctl code and Ansible deployments"
requires-python = ">=3.10"
# List ALL required Python packages for both Ansible and the Rossoctl code
dependencies = [
# Ansible dependencies
"ansible-core",
"ansible",
# Dependencies Ansible collections or Python code
"kubernetes>=34",
"PyYAML>=6.0.3",
# Dependencies for reliable logging in the authentication process.
"typer>=0.24.1"
]
[project.optional-dependencies]
test = [
# Testing framework
"pytest>=7.4.0",
"pytest-cov>=7.1.0",
"pytest-timeout>=2.1.0",
"pytest-xdist>=3.8.0", # For parallel test execution
"pytest-asyncio>=0.21.0", # For async test support
# Kubernetes client
"kubernetes>=34",
"urllib3>=2.6.3", # Minimum version for CVE-2025-66418, CVE-2025-66471, CVE-2026-21441 fixes
"protobuf>=6.33.5", # Minimum version for CVE-2026-0994 fix
"pyasn1>=0.6.3", # Minimum version for CVE-2026-23490, CVE-2026-30922 fixes
# HTTP requests
"requests>=2.33.1",
"httpx>=0.24.0", # For A2A client
"websockets>=12.0", # For ACP WebSocket tests (T6)
# A2A protocol client
"a2a-sdk>=0.2.5",
# MCP client for simulated-tool E2E (issue #2167)
"mcp>=1.2.0",
# Keycloak client
"python-keycloak>=3.7.0",
# JSON Web Token handling
"PyJWT>=2.12.0",
# MLflow for observability tests
"mlflow>=3.9.0",
]
[tool.pytest.ini_options]
testpaths = ["rossoctl/tests"]
timeout = 300
[tool.coverage.run]
source = ["rossoctl"]
omit = ["rossoctl/tests/*", "rossoctl/examples/*"]
[tool.coverage.report]
show_missing = true
fail_under = 0
[tool.ruff]
# Target Python 3.11+
target-version = "py311"
# Exclude generated / third-party / non-Python directories
exclude = [
".worktrees",
"charts",
"deployments",
"rossoctl/ui-v2",
"rossoctl/tui",
"rossoctl/backend/app/services/openshell/v1/*_pb2*.py",
]
[tool.ruff.lint]
# Match the previous flake8 enforced rules (syntax errors and critical issues):
# E9: runtime errors (syntax, IO)
# F63: assertion on tuples/invalid format
# F7: syntax errors
# F82: undefined names
# Additional rules can be enabled incrementally as the codebase is cleaned up.
select = ["E9", "F63", "F7", "F82"]
[tool.setuptools]
# Explicitly include only the rossoctl package, exclude charts and deployments
packages = ["rossoctl"]
[tool.setuptools.package-data]
rossoctl = ["**/*"]