-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
163 lines (151 loc) · 3.98 KB
/
pyproject.toml
File metadata and controls
163 lines (151 loc) · 3.98 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "rtgs-lab-tools"
version = "0.3.0"
description = "Environmental sensing data tools, gridded climate data access, and IoT device management for RTGS Lab"
authors = [
{name = "RTGS Lab", email = "rtgs@umn.edu"},
]
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Atmospheric Science",
]
dependencies = [
"pandas>=1.5.0",
'geopandas',
"rasterio>=1.3.0",
"earthengine-api>=0.1.375,<0.2",
"numpy>=1.21.0",
"sqlalchemy>=1.4.0",
"psycopg2-binary>=2.9.0",
"python-dotenv>=0.19.0",
"requests>=2.25.0",
"click>=8.0.0",
"rich>=12.0.0",
"pyarrow>=10.0.0",
"matplotlib>=3.5.0",
"cloud-sql-python-connector>=1.0.0",
"google-auth>=2.0.0",
"google-cloud-secret-manager>=2.16.0",
"pg8000>=1.31.5", # CVE-2025-61385: SQL injection fix
"yagmail>=0.15.293",
"keyring>=25.6.0",
"pyserial>=3.5",
# Security fixes for transitive dependencies
"urllib3>=2.6.3", # CVE-2026-21441: decompression bomb fixes
"aiohttp>=3.13.3", # CVE-2025-69223: zip bomb and DoS fixes
"authlib>=1.6.4", # CVE-2025-59420: JWT crit headers fix
"starlette>=0.49.1", # CVE-2025-62727: Range header DoS fix
"fonttools>=4.60.2", # CVE-2025-66034: arbitrary file write fix
"filelock>=3.20.1", # CVE-2025-68146: TOCTOU symlink attack fix
]
[project.optional-dependencies]
climate = [
"xarray>=2022.3.0",
"cdsapi>=0.5.0",
"netcdf4>=1.6.0",
"earthengine-api>=0.1.375,<0.2",
"geemap>=0.22.0",
'geopandas'
]
visualization = [
"matplotlib>=3.5.0",
"seaborn>=0.11.0",
"plotly>=5.0.0",
]
mcp = [
"mcp[cli]>=1.23.0", # CVE-2025-66416: DNS rebinding protection fix
"fastmcp>=2.14.0", # Multiple security fixes including MCP 1.23+ update
]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=22.0.0",
"isort>=5.10.0",
"mypy>=0.991",
"pre-commit>=2.20.0",
"pandas-stubs>=1.5.0",
"types-requests>=2.25.0",
"types-seaborn>=0.11.0",
]
all = [
"rtgs-lab-tools[climate,visualization,mcp,dev]",
]
[project.scripts]
rtgs = "rtgs_lab_tools.cli:cli"
[project.urls]
Homepage = "https://github.com/RTGS-Lab/gems_sensing_db_tools"
Repository = "https://github.com/RTGS-Lab/gems_sensing_db_tools"
Documentation = "https://rtgs.umn.edu/"
[tool.hatch.build.targets.wheel]
packages = ["src/rtgs_lab_tools"]
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
extend-exclude = '''
/(
venv
| \.venv
| \.git
| \.mypy_cache
| \.pytest_cache
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 88
multi_line_output = 3
src_paths = ["src", "tests"]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
no_implicit_reexport = true
strict_optional = true
exclude = [
"src/rtgs_lab_tools/mcp_server/particle-mcp-server/",
]
[[tool.mypy.overrides]]
module = [
"psycopg2.*",
"cdsapi.*",
"mcp.*",
"fastmcp.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = "--cov=src/rtgs_lab_tools --cov-report=term-missing --cov-report=html"
[tool.uv]
dev-dependencies = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=22.0.0",
"isort>=5.10.0",
"mypy>=0.991",
"pre-commit>=2.20.0",
"pandas-stubs>=1.5.0",
"types-requests>=2.25.0",
"types-seaborn>=0.11.0",
]
[tool.uv.workspace]
members = ["src/rtgs_lab_tools/mcp_server/particle-mcp-server"]