Repository navigation
feat: C++ geometry engine, one package, prebuilt wheels (2.2.7b1) - #59
Merged
Merged
Conversation
…t wheels The modeling API (shapes, operators, sketches, products, queries, the reactive graph) is implemented in C++20 on OpenCASCADE (src/cpp) and ships inside the wheel as simplecadapi._cpp. The Python layers that stay Python (runtime, build, artifacts, editor, inspect, exporter, translators, scene) run on it unchanged; the previous Python test suite passes on the new engine. Layout: src/cpp and src/simplecadapi side by side, one distribution built by scikit-build-core. simplecadapi.core, .operators.*, .ql, .std.* and the other legacy modules are real forwarding modules; the Python adapter layer is simplecadapi/_glue. OCP is no longer a dependency and nothing imports it. Release: .github/workflows/release.yml builds wheels for Linux x86_64 and aarch64, macOS arm64 and Windows x86_64 (Python 3.10-3.13) against one static OCCT, runs the test suite on the Linux wheels and publishes to GitHub and PyPI; ci.yml caches the static OCCT for the test jobs. Errors: every message the library writes is English; the tag-validation and semantic-query errors render in full with possible causes and fixes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Beta: the first release with prebuilt wheels (Linux x86_64 and aarch64, macOS arm64, Windows x86_64, Python 3.10-3.13). Version in pyproject.toml, the uv.lock project entry and SKILL.md; CHANGELOG, update notes (English and 中文), README update notes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The private repository it was restricted to no longer exists; a fork must not try to release. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
cadquery-ocp used to install VTK; without it the BREP-rendering tests failed in CI. vtk goes into the inspect extra (users) and the dev group (tests). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The geometry engine is now C++20 on OpenCASCADE (
src/cpp), shipped inside the wheel assimplecadapi._cpp. One distribution, one import package. The public API and the previous Python test suite are unchanged:pytest test testspasses on the new engine.src/cppandsrc/simplecadapiside by side.simplecadapi.core,.operators.*,.ql,.std.*... are forwarding modules that name the C++ source of each name; the Python adapter layer issimplecadapi/_glue.cadquery-ocp,ocp-gordon,py-slvsare no longer dependencies; nothing imports OCP.shape.wrappedis the module's own binding,simplecadapi._cpp.occt.src/cpp/tools/build_occt.py. Publishes to GitHub and PyPI (last step, trusted publishing orPYPI_API_TOKEN).dry_runbuilds and verifies everything without publishing.2.2.7b1(second commit: version, CHANGELOG, update notes EN/zh-CN, README).arm6 benchmark (same sources, same machine): cold build 43.8 s -> 29.1 s, nothing changed 12.8 s -> 6.0 s,
import simplecadapi1.6 s / 360 MB -> 0.2 s / 68 MB; computed volumes agree to 1e-12.Verified locally
pytest test tests2114 passed,src/cpp/tests/python460, ctest 14/14; a wheel built against the static OCCT installs in a clean venv, has no external library dependency, and passes the wheel smoke test.Not verified yet
dry_runbefore tagging.AddOptimalis a heuristic optimiser); geometry, area and centre agree.Before tagging
workflow_dispatchwithdry_run, then tagv2.2.7b1. PyPI needs the trusted publisher registered for this workflow (environmentpypi) or aPYPI_API_TOKENsecret.Co-Authored-By: Claude Sonnet 5.5 noreply@anthropic.com