# The complete, exact statement of what a CAD environment is. Installed once per pin set
# into ~/.turret/cad-runtime/<pin-hash>/ (see docs/plans/archive/cad-service.md, "The runtime"),
# never resolved fresh on a user's machine.
#
# What Turret's CAD worker (resources/cad-worker/) and a design package's generator import,
# and nothing else. lib3mf arrives as a dependency of build123d. Everything below the
# transitive line is pinned to what actually resolved, captured with `pip freeze` against a
# clean install (see install-by-hand.md in this directory for the sequence that produced it).
#
# By hand, from a `python-build-standalone` prefix (see interpreter.json in this
# directory for which one and its checksum):
#
#     <prefix>/bin/python3 -m pip install -r requirements.txt
#
# See resources/cad-runtime/install-by-hand.md for the full sequence, including the
# interpreter step this assumes already happened.
#
# numpy and pillow sit at the same versions as in resources/sheets-runtime/requirements.txt
# (docs/DEPENDENCIES.md, "How each kind of pin is held"); move them in both files together.
# urllib3 2.8.0 clears three GitHub advisories.
# cp314 (or abi3, or pure-Python) wheels for all 66 pins were confirmed present on PyPI for
# darwin-arm64, win32-x64 and linux-x64 on 2026-10-23, and again for the five OCP 8 pins
# (cadquery-ocp-novtk, cadquery-ocp-proxy, build123d, ocpsvg, ocp_gordon) on 2026-10-24. The tightest floors are macOS 12
# (scipy's macosx_12_0_arm64) and manylinux_2_28 (cadquery-ocp-novtk 8.0.1.1.0; scipy, scikit-learn and pillow need
# 2_27).
#
# OCP 8: cadquery-ocp-novtk / cadquery-ocp-proxy 8.0.1.1.0 (OCCT 8.0) and build123d 0.13.0, the
# first release that accepts it (`cadquery-ocp-novtk>=8.0`), with the ocpsvg 0.7.0 and ocp_gordon
# 0.3.1 that build123d 0.13 asks for. OCP 8 removed API the CAD worker and design generators
# called, and resources/cad-worker/ was ported to it: `TopoDS.Face_s` and the other three
# `TopoDS.<Type>_s` casts the worker used are `TopoDS.Face` and so on, `TopTools_IndexedMapOfShape`
# and `TopTools_IndexedDataMapOfShapeListOfShape` are the `OCP.collections` classes
# `IndexedMap_TopoDS_Shape_TopTools_ShapeMapHasher` and
# `IndexedDataMap_TopoDS_Shape_List_TopoDS_Shape_TopTools_ShapeMapHasher`, `Bnd_Box.Get()` is
# `GetXMin()` ... `GetZMax()`, and `BRepTopAdaptor_FClass2d` is `IntTools_FClass2d`. The worker
# and the CAD skills use the OCP 8 names only, so these pins cannot go back to OCP 7 without
# porting them back (docs/issues/closed/cad-runtime-cannot-take-ocp-8-yet.md).

# build123d's array backend, which a generator may also import directly.
numpy==2.5.4

# The OCCT geometry kernel wheel: the same binding build123d and cadquery are built on,
# used by the worker as the B-rep analysis core (resources/cad-worker/cad_worker/brep.py).
#
# The `-novtk` variant, which ships OCP without OCCT's VTK visualisation classes. Both
# variants install the same `OCP/` package, so exactly one of them can be pinned, and
# build123d depends on this one by name, which settles it. `vtk` and `matplotlib` are
# pinned below in their own right; what this variant withholds is OCP's `IVtk*` classes,
# which are not reachable from a generator under these pins.
#
# Version pinned to what was actually measured working. Wheel availability for the
# platform/Python combination is a real, recurring problem: if this pin ever needs bumping,
# record why beside it. 8.0.1.1.0 was measured only on Linux x86_64 with Python 3.14.8 (build
# 20261013); its predecessor 7.9.3.1.1 was measured on macOS 26.5.1 arm64 with 3.14.7 (build
# 20260901). macOS and Windows have not installed 8.0.1.1.0. See interpreter.json.
cadquery-ocp-novtk==8.0.1.1.0

# The modelling API most design repositories are written against. A generator can import
# it and return the `.wrapped` OCCT shape of what it built; raw OCP stays available for
# anything build123d does not reach. It brings the largest share of the transitive block
# below -- scipy, sympy, scikit-learn, ipython and their own dependencies are all its.
build123d==0.13.0

# 2D geometry for a design package's own generator (offsets, containment, polygon boolean
# work feeding an extrude). A package cannot bring dependencies of its own -- its
# generator runs under this same interpreter -- so this is pinned even though nothing in the
# worker itself imports shapely.
shapely==2.2.0

# Plotting and 3D visualisation for a design package's own generator, which cannot bring
# dependencies of its own. Both arrived transitively under `cadquery-ocp` and left when
# the `-novtk` variant replaced it, so they are named here instead. Nothing in the worker
# imports either. Between them they are the largest thing in the runtime -- vtkmodules alone
# is 544 MB of the installed prefix.
matplotlib==3.11.2
vtk==9.7.1

# --- transitive, pinned by `pip freeze` against a clean install of the above ---
#
# cadquery-ocp-novtk and cadquery-ocp-proxy are one package split in two: the proxy is the
# `OCP` shim every import goes through, and the variant wheel carries the binary it loads.
# Everything else here is build123d's dependency chain, which is wide -- ipython and its
# terminal stack arrive because build123d requires ipython outright, and nothing in the
# worker imports either.
anytree==2.13.0
asttokens==3.0.2
bd_materials==0.2.4
cadquery-ocp-proxy==8.0.1.1.0
certifi==2026.7.22
charset-normalizer==3.5.2
cloudpickle==3.1.2
contourpy==1.4.0
cycler==0.12.1
dataclasses-json==0.6.7
Deprecated==3.0.0
executing==2.3.0
ezdxf==1.4.5
fonttools==4.67.0
idna==3.20
ipython==9.17.1
ipython_pygments_lexers==1.1.1
jedi==0.20.1
joblib==1.6.0
kiwisolver==1.5.1
lib3mf==2.5.0
marshmallow==3.26.2
matplotlib-inline==0.2.2
mpmath==1.3.0
mypy_extensions==1.1.0
narwhals==2.27.1
ocp_gordon==0.3.1
ocpsvg==0.7.0
packaging==26.3
parso==0.8.7
pexpect==4.9.0
pillow==13.0.0
platformdirs==4.13.3
prompt_toolkit==3.0.53
psutil==7.2.2
ptyprocess==0.7.0
pure_eval==0.2.4
pygltflib==1.16.5
Pygments==2.21.0
pyparsing==3.3.3
python-dateutil==2.9.0.post0
requests==2.34.2
scikit-learn==1.9.1
scipy==1.18.1
six==1.17.0
stack-data==0.6.3
svgelements==1.9.6
svgpathtools==1.8.0
svgwrite==1.4.3
sympy==1.14.0
threadpoolctl==3.7.0
threejs-materials==1.2.5
traitlets==5.16.1
trianglesolver==1.2
typing-inspect==0.9.0
typing_extensions==4.16.0
urllib3==2.8.0
wcwidth==0.9.2
webcolors==24.8.0
wrapt==2.5.1
