Proxy package to track cadquery_ocp / cadquery_ocp_novtk version
Actively maintained. Last release 8 weeks ago. A safe choice.
pip install cadquery-ocp-proxyTEST SETUP
There is a proxy package cadquery_ocp_proxy with version 8.0.0.0 that does nothing, but have optional dependencies:
```toml
[project.optional-dependencies]
vtk = ["cadquery_ocp>=8.0,< 8.1"]
novtk = ["cadquery_ocp_novtk>=8.0,< 8.1"]
```
I built the following packages using the proxy package for testing on my local pypi server.
NOTE: These are artificial new versions to force pip and uv to load them from my pypi server, so don't get confused about the version numbers. They don't exist on pypi.org
- build123d-0.11.0-py3-none-any.whl
- cadquery-2.8-py3-none-any.whl
- ocp_gordon-0.22.0-py3-none-any.whl
- ocpsvg-0.6.0-py3-none-any.whl
- cadquery_ocp_proxy-8.0.0.0.0-py3-none-any.whl
Setup for packages in the build123d, CadQuery, or OCP ecosystem:
-
Packages with
cadquery_ocpdependencies the can (likeocpsvgocp_gordon, andbuild123d) would need to use extra dependenciesdependencies = ["svgelements >= 1.9.6, <2"] [project.optional-dependencies] dev = ["pytest"] vtk = ["cadquery-ocp-proxy[vtk] >=8.0, < 8.1"] novtk = ["cadquery-ocp-proxy[novtk] >=8.0, < 8.1"] -
Packages that need VTK like
cadquerywould only depend oncadquery-ocp-proxy[vtk]as default dependency
WORKFLOWS
Install build123d without VTK:
When we pip install build123d[novtk]==0.11.1, we get (pip list):
build123d 0.11.1
cadquery-ocp-novtk 8.0.0.0.0
cadquery-ocp-proxy 8.0.0.0.0
...
ocp-gordon 0.22.0
ocpsvg 0.6.0
Tests:
- build123d:
pytest --ignore=tests/test_direct_api/test_vtk_poly_data.py --ignore tests/test_direct_api/test_jupyter.py testspasses all test. - ocpsvg:
pytest testspasses all tests - ocp_gordon:
pytest testspasses all tests
Install build123d with VTK:
When we pip install build123d[vtk]==0.11.1, we get (pip list):
build123d 0.11.1
cadquery-ocp 8.0.0.0.0
cadquery-ocp-proxy 8.0.0.0.0
...
ocp-gordon 0.22.0
ocpsvg 0.6.0