-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (93 loc) · 3.05 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (93 loc) · 3.05 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
[project]
name = "uxarray-mcp"
version = "0.2.2"
description = "MCP server for analyzing unstructured meshes with UXarray"
readme = "README.md"
keywords = ["uxarray", "mcp", "unstructured grids", "scientific computing", "globus compute"]
classifiers = [
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
]
authors = [
{ name = "Rajeev Jain", email = "rajeeja@gmail.com" },
{ name = "Dayan Abdulla", email = "dayanabdulla000@gmail.com" },
]
license = { file = "LICENSE" }
# Pinned to 3.12 until globus/globus-compute#2139 lands a published submitter ↔
# worker compatibility story. HPC sites broadly ship Python 3.12 conda stacks
# today; matching that minor version on the submitter side avoids WorkerLost
# from pickle protocol skew. Revisit when upstream confirms multi-version
# support and broaden requires-python back to >=3.11.
requires-python = ">=3.12,<3.13"
dependencies = [
"toolregistry-server[mcp]>=0.4.3",
"mcp>=1.24,<3",
"holoviews>=1.19.0",
"matplotlib>=3.9.0",
"pyyaml>=6.0",
"uxarray>=2026.7.0",
]
[project.optional-dependencies]
openapi = [
"toolregistry-server[openapi]>=0.4.3",
]
hpc = [
"academy-py>=0.3.1",
"globus-compute-sdk>=4.5.0",
]
docs = [
"sphinx>=7.0",
"sphinx-book-theme>=1.1.0",
"myst-parser>=3.0",
]
[project.scripts]
uxarray-mcp = "uxarray_mcp.cli:main"
[project.urls]
Documentation = "https://uxarray-mcp-server.readthedocs.io"
Source = "https://github.com/UXARRAY/uxarray-mcp-server"
Tracker = "https://github.com/UXARRAY/uxarray-mcp-server/issues"
[dependency-groups]
dev = [
"mypy>=1.10.0",
"pre-commit>=4.3.0",
"pytest>=9.0.2",
"pytest-asyncio>=1.0.0",
"ruff>=0.15.2",
]
[tool.mypy]
python_version = "3.12"
check_untyped_defs = true
ignore_missing_imports = true
warn_unused_ignores = true
warn_return_any = false
# Exclude test files and generated docs
exclude = ["tests/", "docs/"]
[[tool.mypy.overrides]]
# yaml stubs are installed in pre-commit env via types-PyYAML;
# suppress the missing-stubs warning in local runs without them.
module = "yaml"
ignore_missing_imports = true
[[tool.mypy.overrides]]
# academy is an optional HPC dependency; the fallback stubs use type: ignore
# which are unused when academy is installed in the pre-commit env.
module = "uxarray_mcp.remote.agent"
warn_unused_ignores = false
[build-system]
requires = ["uv_build>=0.9.26,<0.10.0"]
build-backend = "uv_build"
[tool.ruff]
[tool.ruff.lint]
extend-select = ["I"]
# Notebooks (and their jupytext-paired .py scripts) intentionally scatter
# imports across per-cell (# %%) blocks, so E402 (module-import-not-at-top)
# is expected style there, not a lint violation.
per-file-ignores = { "notebooks/*.py" = ["E402"], "notebooks/*.ipynb" = ["E402"] }
[tool.ruff.lint.isort]
known-first-party = ["uxarray_mcp"]
[tool.ruff.format]
docstring-code-format = true