fix(packaging): keep runtime integration install slim#164
Merged
Conversation
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 does this PR do?
Keeps the public
ori.integrationrule-evaluation install path slim for product/demo consumers likeori-energy.Before this change, installing
ori-runtimepulled the full runtime dependency surface: MQTT, SMS/WhatsApp providers, OPC-UA, HTTP adapters, crypto transports, psutil, and other hardware/runtime packages. That made theori-energyFastAPI demo install the entire edge runtime stack just to call the public rule-evaluation boundary.This PR changes package metadata so:
ori-runtimeinstalls onlyPyYAML, which is whatori.integrationneeds to load bundled skill YAML and evaluate rules;ori-runtime[eval]is an explicit stable install target for demo/product consumers;ori-runtime[runtime]carries transport, provider, HAL, and security runtime dependencies for actual edge runtime installs;ori-runtime[all]remains available for full local/dev installs;The runtime source package is still one package. This is a dependency-boundary fix, not a code split.
Type of change
fix— bug fix / packaging correctiondocs— documentation updatetest— tests addedfeat— new featurerefactor— no behavior changeChecklist
Validation
bash scripts/typecheck-boundaries.sh .venv/bin/ruff check tests/test_packaging_metadata.py .venv/bin/pytest tests/test_packaging_metadata.py tests/test_integration_rule_evaluation.py -q .venv/bin/pre-commit run --all-files ORI_PYTHON=.venv/bin/python bash scripts/smoke-release-wheel.sh .venv/bin/pytest tests/ -q -m "not hardware"Results:
21 passed1482 passed, 8 skippedori.integrationTier D evaluationDownstream impact
After this merges,
ori-energyshould pin the runtime dependency as:"ori-runtime[eval] @ git+https://github.com/ori-platform/ori-runtime.git@<commit-or-tag>"This avoids pulling MQTT/SMS/provider/hardware dependencies into the demo API while still using the real runtime rule engine.