Skip to content

refactor: restructure package - #669

Merged
disrupted merged 4 commits into
mainfrom
restructure-package
Aug 24, 2026
Merged

refactor: restructure package#669
disrupted merged 4 commits into
mainfrom
restructure-package

Conversation

@disrupted

Copy link
Copy Markdown
Member

No description provided.

@disrupted
disrupted marked this pull request as ready for review August 24, 2026 07:21
@disrupted
disrupted requested a review from tobbber as a code owner August 24, 2026 07:21
@tobbber
tobbber requested a lite review from Copilot August 24, 2026 12:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the kpops package structure by extracting API entrypoints into a dedicated kpops.api.operations module and introducing new top-level kpops.pipeline and kpops.config modules, with corresponding test and tooling updates.

Changes:

  • Move API operations (generate, deploy, destroy, etc.) out of kpops.api.__init__ into kpops.api.operations, and re-export from kpops.api.
  • Add new core modules kpops/pipeline.py and kpops/config.py to centralize pipeline generation/execution and configuration.
  • Update tests and Ruff configuration to align with the new package structure.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/api/test_handlers.py Updates imports/constants to reference the new kpops.api.operations module.
pyproject.toml Adjusts Ruff configuration to account for packaging/import behavior.
kpops/pipeline.py Introduces pipeline representation, graph execution, and pipeline generation/parsing.
kpops/config.py Introduces global project configuration via Pydantic settings models.
kpops/api/operations.py New module containing API operations previously defined in kpops.api.__init__.
kpops/api/init.py Reduces kpops.api to a re-exporting façade with __all__.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread kpops/api/operations.py Outdated
@disrupted
disrupted merged commit 9474aa0 into main Aug 24, 2026
14 checks passed
@disrupted
disrupted deleted the restructure-package branch August 24, 2026 14:20
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.

3 participants