Skip to content

Merge pyvelo-intent into pyvelo: the pipeline is pyvelo.config - #15

Merged
nbarrett-anet merged 1 commit into
mainfrom
merge-pyvelo-intent
Nov 25, 2026
Merged

nbarrett-anet merged 1 commit into
mainfrom
merge-pyvelo-intent

Conversation

@nbarrett-anet

@nbarrett-anet nbarrett-anet commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

pyvelo-intent is folded into pyvelo. The two were installed and pinned together, half of what pyvelo-intent exported was re-exported from pyvelo, and a script that changes configuration had to import from both. One package now holds both, and the pipeline, the patch helpers and the errors of a patch and a save are imported from pyvelo.config.

This is a move with import fixes. No behaviour changes.

Where things went

Was Now
pyvelo_intent.config.* (pipeline, state, hub steps, validators) pyvelo.config.*, same module names
from pyvelo_intent import ... from pyvelo.config import ...
pyvelo_intent.errors, pyvelo_intent.diff pyvelo.config.errors, pyvelo.config.diff
pyvelo_intent.testing pyvelo.testing.mock_client, with MockVcoClient, make_firewall_module and make_firewall_segment exported from pyvelo.testing
packages/pyvelo-intent/tests/ packages/pyvelo/tests/config/; the two live tests are in tests/integration/
packages/pyvelo-intent/README.md packages/pyvelo/CONFIGURATION.md

The packages/pyvelo-intent directory is removed, and the root pyproject.toml and uv.lock no longer list it.

Things to know

  • pyvelo.config exports what pyvelo_intent exported, beside the resolver and validation names it already had.
  • pyyaml is now a dependency of pyvelo, because load_config imports it when pyvelo.config loads.
  • import pyvelo now loads the pipeline too: pyvelo/__init__.py already imported the resolvers from pyvelo.config.
  • IntentError, diff_intents and test_intent_save_live.py keep their names.
  • The pipeline tests import each other by bare name, so tests/config/ is a plain folder, as their old directory was. Their two shared helpers (hub_state.py, profile_state.py) are in tests/support/.
  • The old tests/conftest.py of pyvelo-intent defined the same three fixtures as pyvelo's and is dropped. The live-test conftest of pyvelo gains the pipeline fixture.
  • The intent README moved as one file, with its imports and paths updated. The root and pyvelo READMEs link to it.

Testing

  • scripts/check.sh passes: ruff, basedpyright with 0 errors, and pytest with 6839 passed and 2 skipped, the same counts as on main before the move.
  • The live tests collect (48 in three files). They were not run against a VCO.
  • Every from pyvelo... import in the Python samples of the three Markdown files resolves.

Follow-ups

  • pyvelo.config.diff is used by nothing in the repository; whether to keep it is a separate decision.

The two packages were installed and pinned together, and half of what
pyvelo-intent exported was re-exported from pyvelo. One package now holds
both, and a script imports the pipeline, the patch helpers and the errors
from pyvelo.config.

- pyvelo_intent.config.* is pyvelo.config.*, with the same module names;
  pyvelo_intent.errors and pyvelo_intent.diff are pyvelo.config.errors and
  pyvelo.config.diff.
- pyvelo_intent.testing is pyvelo.testing.mock_client, and its names
  (MockVcoClient, make_firewall_module, make_firewall_segment) are
  exported from pyvelo.testing.
- The pipeline tests are in packages/pyvelo/tests/config, their two shared
  helpers in tests/support, and the two live tests in tests/integration,
  whose conftest gains the pipeline fixture.
- The pyvelo-intent README is packages/pyvelo/CONFIGURATION.md, with its
  imports and paths updated.
- pyyaml is a dependency of pyvelo, for load_config.

No behaviour changes.
@nbarrett-anet
nbarrett-anet merged commit eabe711 into main Nov 25, 2026
3 checks passed
@nbarrett-anet
nbarrett-anet deleted the merge-pyvelo-intent branch November 25, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant