# SiteRef runtime + dev dependencies (including the preserved ingeTrezo core).
#
# Deliberately minimal: the engine runs on PySide6 alone (Qt's Metal backend
# for rendering, QtGui's QMatrix4x4/QVector3D for math, the stdlib `array` for
# vertex packing). NumPy joined in the georef DEM work (Track G, G2) for
# heightfield decode/sampling. No native mesh/BIM libraries yet — those are
# added only when the feature that needs them actually lands.

# --- Runtime ---
PySide6>=6.12,<6.13
hidapi>=0.14,<1; sys_platform == "darwin"  # optional SpaceMouse fallback
numpy>=1.26        # DEM heightfield decode + sampling (georef Track G, G2)
# Native .skp reader (pure Python, VFF 2021+ and classic MFC 2013-2020).
# Use our GWydouw/OpenSKP fork, pinned to the existing validated upstream
# commit. Advance the SHA after validating parser changes; .skp export is off.
openskp @ git+https://github.com/GWydouw/openskp@291700bc213655a00461838de71e5f206311e619#subdirectory=packages/python
# DXF import (D1; DWG arrives via the LibreDWG dwg2dxf satellite in D3).
# Pure Python, MIT — the same parser IngeCAD reads its documents with, so
# the two projects share one set of format scars.
ezdxf>=1.4.4
# Solid booleans (Tools ▸ Outer Shell / Solid Tools, core/solids.py).
# Apache-2.0, the kernel of OpenSCAD and Blender's booleans; native wheels
# for Linux x86_64/aarch64, Windows and macOS, cp310–cp314.
manifold3d>=3.5.3
# Plan contours and exact L/T/X partitions for Wall from Section (BSD-3-Clause).
shapely>=2.1,<3
# Terrain ground filtering and spatial interpolation (BSD-3-Clause).
scipy>=1.14,<2
# Safe numeric OpenCV-YAML scanner calibration for raw S20 conversion.
PyYAML>=6,<7

# --- Development ---
pytest>=8.0

# --- Planned (NOT yet required; do not install on Python 3.14 — no wheels) ---
# ifcopenshell   # IFC import/export (BIM bridge with IngePresupuestos)
# pyassimp       # COLLADA/glTF import
# Note: georef tiles + DEM need NO extra pip — QNetworkAccessManager/QImage (Qt)
# fetch tiles, NumPy decodes the DEM. pyproj/mercantile/rasterio intentionally
# avoided (UTM ported by hand, slippy math + Terrain-RGB decoded in-project).
