-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (116 loc) · 3.94 KB
/
Copy pathpyproject.toml
File metadata and controls
132 lines (116 loc) · 3.94 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[project]
name = "sapguimcp"
description = "MCP server for SAP Web GUI browser automation"
license = "MIT"
requires-python = ">=3.11"
authors = [{ name = "Hochfrequenz Unternehmensberatung GmbH", email = "info+pip@hochfrequenz.de" }]
keywords = ["mcp", "sap", "webgui", "browser", "automation", "playwright", "claude"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"fastmcp[apps]>=3.2.0,<4.0.0", # FastMCP v3.2+ required for Choice provider (fastmcp.apps)
"httpx>=0.27.0", # HTTP client for GitHub API (feedback issue handler)
"playwright>=1.40.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"pywin32>=306; sys_platform == 'win32'",
"rapidfuzz>=3.0.0", # Fuzzy string matching for catalog search
"sap-mcp-config>=0.1.0", # Shared SAP system credentials config
"sapsucker>=0.6.1", # Typed SAP GUI Scripting wrapper. >=0.6.1 for explicit wrap_com_object re-export (mypy --strict compat, Hochfrequenz/sapsucker#47); >=0.5.1 for post-login client/user verification + parallel-multi-mandant safe behaviour (#24, #27); historically >=0.4.0 was required for GuiSession.GetObjectTree fast-path dump_tree (~50x speedup, used in 18 places).
]
dynamic = ["readme", "version"]
[project.optional-dependencies]
tests = [
"pytest==9.0.3",
"anyio==4.13.0", # includes pytest-anyio plugin for proper async fixture teardown
"python-dotenv>=1.0.0",
"beautifulsoup4==4.15.0", # HTML parsing for selector unit tests
"lxml==6.1.1", # Fallback parser for Python 3.13+ (html.parser has stricter nesting rules)
"respx==0.23.1", # Mock httpx requests in tests
]
linting = [
"pylint==4.0.5",
]
type_check = [
"mypy[pydantic]==2.1.0",
"types-PyYAML==6.0.12.20260518",
]
spell_check = [
"codespell==2.4.2",
]
coverage = [
"coverage==7.14.1",
]
formatting = [
"black==26.5.1",
"isort==8.0.1",
]
packaging = [
"build==1.5.0",
"twine==6.2.0",
]
dev = [
"pip-tools",
"uv",
]
build_executable = [
"pyinstaller==6.20.0",
]
[project.urls]
Changelog = "https://github.com/Hochfrequenz/sapgui.mcp/releases"
Homepage = "https://github.com/Hochfrequenz/sapgui.mcp"
[project.scripts]
run-sapgui-mcp-server = "sapguimcp.server:main"
[tool.black]
line-length = 120
target_version = ["py311", "py312", "py313", "py314"]
[tool.isort]
line_length = 120
profile = "black"
known_third_party = ["sap_mcp_config", "sapsucker"]
[tool.pylint."MESSAGES CONTROL"]
max-line-length = 120
# fixme: noise in active development (TODO/FIXME comments everywhere)
# duplicate-code: unavoidable across desktop/webgui backend implementations
disable = "fixme,duplicate-code"
[tool.pylint.BASIC]
# Allow module-level mutable variables (singletons, caches, state)
good-names = ["_browser_manager", "_settings", "_sap_config", "_keepalive_task", "_keepalive_interval"]
[mypy]
truethy-bool = true
[tool.mypy]
disable_error_code = []
[build-system]
requires = ["hatchling>=1.8.0", "hatch-vcs", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
fragments = [{ path = "README.md" }]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/_sapguimcp_version.py"
template = '''
version = "{version}"
'''
[tool.hatch.build.targets.sdist]
exclude = ["/unittests"]
[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]
[tool.pytest.ini_options]
testpaths = ["unittests"]
log_cli = true
log_cli_level = "INFO"
log_format = "%(asctime)s %(levelname)-5s %(name)s %(message)s"