Repository navigation
Merge pyvelo-intent into pyvelo: the pipeline is pyvelo.config - #15
Merged
Merged
Conversation
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.
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.
Summary
pyvelo-intentis folded intopyvelo. The two were installed and pinned together, half of whatpyvelo-intentexported was re-exported frompyvelo, 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 frompyvelo.config.This is a move with import fixes. No behaviour changes.
Where things went
pyvelo_intent.config.*(pipeline, state, hub steps, validators)pyvelo.config.*, same module namesfrom pyvelo_intent import ...from pyvelo.config import ...pyvelo_intent.errors,pyvelo_intent.diffpyvelo.config.errors,pyvelo.config.diffpyvelo_intent.testingpyvelo.testing.mock_client, withMockVcoClient,make_firewall_moduleandmake_firewall_segmentexported frompyvelo.testingpackages/pyvelo-intent/tests/packages/pyvelo/tests/config/; the two live tests are intests/integration/packages/pyvelo-intent/README.mdpackages/pyvelo/CONFIGURATION.mdThe
packages/pyvelo-intentdirectory is removed, and the rootpyproject.tomlanduv.lockno longer list it.Things to know
pyvelo.configexports whatpyvelo_intentexported, beside the resolver and validation names it already had.pyyamlis now a dependency ofpyvelo, becauseload_configimports it whenpyvelo.configloads.import pyvelonow loads the pipeline too:pyvelo/__init__.pyalready imported the resolvers frompyvelo.config.IntentError,diff_intentsandtest_intent_save_live.pykeep their names.tests/config/is a plain folder, as their old directory was. Their two shared helpers (hub_state.py,profile_state.py) are intests/support/.tests/conftest.pyofpyvelo-intentdefined the same three fixtures as pyvelo's and is dropped. The live-test conftest of pyvelo gains thepipelinefixture.pyveloREADMEs link to it.Testing
scripts/check.shpasses: ruff, basedpyright with 0 errors, and pytest with 6839 passed and 2 skipped, the same counts as onmainbefore the move.from pyvelo... importin the Python samples of the three Markdown files resolves.Follow-ups
pyvelo.config.diffis used by nothing in the repository; whether to keep it is a separate decision.