Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
55 lines (49 loc) · 3.48 KB
/
Copy pathpyproject.toml
File metadata and controls
55 lines (49 loc) · 3.48 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
[project]
name = "autogis"
version = "0.1.0"
description = "Automation tools for ArcGIS Pro and ArcGIS Online / Survey123"
requires-python = ">=3.10"
dependencies = ["PyYAML", "click>=8.0", "openpyxl", "numpy>=1.24", "xlrd>=2.0"] # click>=8.0: introspect.py's _field() calls param.to_info_dict(); xlrd: legacy .xls EQuIS EDDs (lazy import in equis_reader)
[project.optional-dependencies]
dev = ["pytest", "pytest-cov", "Pillow>=9.0", "python-docx", "matplotlib>=3.7", "pyproj"] # Runtime extras used by importorskip-gated tests; pytest-cov feeds SonarCloud's coverage gate (#452)
cloud = ["arcgis>=2.4,<3", "setuptools"] # Pro 3.4+ / arcgis-dist.json unverified (Esri/arcpy restricted).
# setuptools: arcgis's `features.geo` package still imports the stdlib
# `distutils` module (removed in Python 3.12+); it swallows that failure
# in a bare `except ImportError: pass` and silently loses
# `_is_geoenabled`/`GeoAccessor`, which later surfaces as an unrelated
# `AttributeError` deep inside `gis.content.add()`. Modern setuptools
# ships a vendored `distutils` shim that satisfies the import -- no code
# change needed, just having the package present. Confirmed against the
# exact failure on arcgis 2.4.3 / Python 3.14.
survey123 = ["arcgis>=2.4,<3", "setuptools"] # live Survey123 pull (ADR-0112/0116); same stack + distutils caveat as `cloud` above
report = ["Pillow>=9.0"] # photo embedding for generate-inspection-report (openpyxl Image needs PIL)
report-docx = ["python-docx", "Pillow>=9.0"] # DOCX photographic log (envmon photos log --format docx)
gui = ["PySide6"] # unified GUI adapter (ADR-0050); not needed for CLI/.pyt use
profile = ["matplotlib>=3.7"] # profile/sticklog rendering (generate-subsurface-profile, gen-sticklogs)
ocr = ["torch", "transformers", "pillow", "pymupdf"] # boring-log OCR digitization assist (draft-lithology-from-scan); DRAFT tool, see docs/superpowers/specs/2026-07-08-draft-lithology-from-scan-design.md
msl = ["rasterio>=1.3", "pyproj>=3.4", "pyshp>=2.3"] # optional headless HFDEM processing and polygon shapefile AOIs
opentopo = ["pyproj"] # non-WGS84 AOI reprojection for envmon download-dem (lazy import; stdlib urllib covers the download itself)
landxml = ["pyproj>=3.4"] # extent-ranked CRS operations for LandXML TIN surfaces
notebook = ["nbclient", "ipykernel"] # Phase 4 monitoring-event review notebook (ADR-0105): real-kernel restart-run-all test; opt-in, not a default dep
[project.scripts]
autogis = "autogis.adapters.cli:autogis"
# Legacy alias: the Harvester itself, as documented in the README. Pointing
# it at the `autogis` group (which it did once the single-command CLI grew
# subcommands) silently turned every legacy `autogis-harvest --config X`
# call into `Error: No such option '--config'`.
autogis-harvest = "autogis.adapters.cli:harvest_cmd"
autogis-gui = "autogis.adapters.gui.app:main"
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[tool.coverage.run]
# Emit workspace-relative paths in coverage.xml so SonarCloud can match them
# to files regardless of where the runner checked the repo out (#452).
relative_files = true
[tool.setuptools.packages.find]
include = ["autogis*"]
[tool.setuptools.package-data]
"autogis.core.common.report_assets" = ["*.css"]
# init-site reads these at runtime via importlib.resources; without this a
# wheel install would omit them and `envmon init-site` would FileNotFoundError.
"autogis" = ["config/_templates/site_skeleton/*.yaml", "config/recipes/*.yaml"]