Skip to content

v0.2.2 - Critical Package Fix 🚨

Latest

Choose a tag to compare

@sudeshmu sudeshmu released this 02 Oct 04:36
· 3 commits to main since this release

Release v0.2.2 - Critical Package Fix 🚨

⚠️ CRITICAL FIX - v0.2.1 was Non-Functional

If you installed v0.2.1, please upgrade immediately:

pip install --upgrade kubeagentic

πŸ› What Was Broken in v0.2.1

  • ❌ Only 3 files packaged (out of 28 required files)
  • ❌ All submodules missing (api, config, core, llm, middleware, session, tools, utils)
  • ❌ Package completely non-functional - All imports failed with ModuleNotFoundError
  • ❌ Unable to create agents or use any features

βœ… What's Fixed in v0.2.2

  • βœ… All 28 files now included in the package
  • βœ… All 8 submodules packaged correctly
  • βœ… All imports working as expected
  • βœ… Package fully functional - Tested on PyPI
  • βœ… Added regression test script (build_and_test.sh)

πŸ”§ Technical Details

Root Cause: Incorrect setuptools configuration in pyproject.toml

Before (Broken):

[tool.setuptools]
packages = ["kubeagentic"]  # Only top-level package

After (Fixed):

[tool.setuptools.packages.find]
where = ["."]
include = ["kubeagentic*"]  # Auto-discovers all subpackages
exclude = ["tests*", "docs*", "*.egg-info"]

πŸ“¦ Installation

Fresh Install

pip install kubeagentic

Upgrade from v0.2.1

pip install --upgrade kubeagentic

Verify Installation

import kubeagentic
print(kubeagentic.__version__)  # Should print: 0.2.2

# Test imports
from kubeagentic.core import Agent, AgentConfig
from kubeagentic.config import ConfigParser
from kubeagentic.llm.factory import LLMFactory
from kubeagentic.api.app import create_app
# All should work without errors!

πŸ“Š Package Comparison

Metric v0.2.1 (Broken) v0.2.2 (Fixed)
Files Packaged 3 28
Submodules 0 8
Functional ❌ βœ…
All Imports Work ❌ βœ…

🎯 What's Included

All submodules now available:

  • βœ… kubeagentic.api - REST API server (5 files)
  • βœ… kubeagentic.config - Configuration parsing (4 files)
  • βœ… kubeagentic.core - Agent implementation (3 files)
  • βœ… kubeagentic.llm - LLM providers (3 files)
  • βœ… kubeagentic.middleware - API middleware (2 files)
  • βœ… kubeagentic.session - Session management (3 files)
  • βœ… kubeagentic.tools - Tool execution (3 files)
  • βœ… kubeagentic.utils - Utilities (2 files)

πŸš€ Quick Start

from kubeagentic.core import Agent
from kubeagentic.config import ConfigParser

# Parse YAML configuration
config = ConfigParser.parse_file("agent.yaml")

# Create and use agent
agent = Agent(config)
response = agent.invoke("Hello!")
print(response)

πŸ”— Links

πŸ“ Full Changelog

Fixed:

  • πŸ› Package now includes all submodules (api, config, core, llm, middleware, session, tools, utils)
  • πŸ› Fixed pyproject.toml to use packages.find for auto-discovery

Added:

  • ✨ build_and_test.sh - Comprehensive test script to verify package integrity
  • ✨ Test verification in clean virtual environment

Changed:

  • πŸ”§ Updated .gitignore to exclude test_venv/
  • πŸ”§ Version bumped from 0.2.1 to 0.2.2

πŸ‘₯ Contributors

  • KubeAgentic Team

πŸ™ Thank You

Thank you for your patience during this critical fix. We've added comprehensive testing to prevent similar issues in the future.


Full Commit: afa0257