mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
chore: bump version to 0.2.5 for release
- Updated version in pyproject.toml and source files - Added CHANGELOG.md with release notes - Created publish.sh script for easier releases - Ready for PyPI publication Release highlights: - Full hanzo/net integration for distributed AI compute - hanzo node command launches hanzo/net instances - WebUI and ChatGPT-compatible API support - Package structure consolidation completed
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
# Changelog
|
||||
|
||||
## [0.2.5] - 2024-08-06
|
||||
|
||||
### Added
|
||||
- Full integration with hanzo/net for distributed AI compute nodes
|
||||
- `hanzo node` command now launches hanzo/net instances
|
||||
- Automatic detection of hanzo/net from installed package or source
|
||||
- WebUI at http://localhost:52415 and ChatGPT-compatible API endpoint
|
||||
- Support for model selection via `--models` flag
|
||||
- Network mode selection (mainnet/testnet/local)
|
||||
|
||||
### Changed
|
||||
- Default port for `hanzo node` changed to 52415 to match hanzo/net
|
||||
- Network defaults to "local" for easier testing
|
||||
- Improved compute node startup with better status messages
|
||||
|
||||
### Fixed
|
||||
- Removed double welcome message in interactive mode
|
||||
- Fixed all import issues after package consolidation
|
||||
- Corrected chat command execution in REPL mode
|
||||
|
||||
## [0.2.4] - 2024-08-06
|
||||
|
||||
### Changed
|
||||
- Consolidated package structure by merging hanzo-cli into main hanzo package
|
||||
- Removed redundant hanzo-mcp-client package
|
||||
- Cleaned up package structure from 15 to 8 active packages
|
||||
|
||||
### Fixed
|
||||
- Fixed all relative imports after package consolidation
|
||||
- Updated CI/CD pipeline for new package structure
|
||||
Executable
+80
@@ -0,0 +1,80 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Hanzo Package Publishing Script
|
||||
# Version 0.2.5
|
||||
|
||||
set -e
|
||||
|
||||
echo "=================================="
|
||||
echo "Hanzo Package Publishing"
|
||||
echo "Version: 0.2.5"
|
||||
echo "=================================="
|
||||
echo
|
||||
|
||||
# Check if we're in the right directory
|
||||
if [ ! -f "pyproject.toml" ]; then
|
||||
echo "Error: pyproject.toml not found. Please run from pkg/hanzo directory."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Clean previous builds
|
||||
echo "Cleaning previous builds..."
|
||||
rm -rf dist/ build/ *.egg-info 2>/dev/null || true
|
||||
|
||||
# Build the package
|
||||
echo "Building distribution packages..."
|
||||
python -m build
|
||||
|
||||
# Check the build
|
||||
echo
|
||||
echo "Build complete. Contents:"
|
||||
ls -la dist/
|
||||
|
||||
# Test the package (optional)
|
||||
echo
|
||||
read -p "Do you want to test the package locally before uploading? (y/n) " -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo "Creating test virtual environment..."
|
||||
python -m venv test_env
|
||||
source test_env/bin/activate
|
||||
pip install dist/hanzo-0.2.5-py3-none-any.whl
|
||||
echo "Testing hanzo command..."
|
||||
hanzo --version
|
||||
deactivate
|
||||
rm -rf test_env
|
||||
echo "Test successful!"
|
||||
fi
|
||||
|
||||
# Upload to TestPyPI first (optional)
|
||||
echo
|
||||
read -p "Do you want to upload to TestPyPI first? (y/n) " -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo "Uploading to TestPyPI..."
|
||||
python -m twine upload --repository testpypi dist/*
|
||||
echo
|
||||
echo "Package uploaded to TestPyPI."
|
||||
echo "Test with: pip install --index-url https://test.pypi.org/simple/ hanzo"
|
||||
echo
|
||||
read -p "Continue to PyPI? (y/n) " -n 1 -r
|
||||
echo
|
||||
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo "Stopping here. Package is on TestPyPI."
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
# Upload to PyPI
|
||||
echo
|
||||
echo "Uploading to PyPI..."
|
||||
echo "You will be prompted for your PyPI credentials or API token."
|
||||
echo
|
||||
python -m twine upload dist/*
|
||||
|
||||
echo
|
||||
echo "=================================="
|
||||
echo "Package published successfully!"
|
||||
echo "Install with: pip install hanzo"
|
||||
echo "Current version: 0.2.5"
|
||||
echo "=================================="
|
||||
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "hanzo"
|
||||
version = "0.2.4"
|
||||
version = "0.2.5"
|
||||
description = "Hanzo AI - Complete AI Infrastructure Platform with CLI, Router, MCP, and Agent Runtime"
|
||||
authors = [
|
||||
{name = "Hanzo AI", email = "[email protected]"},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""Hanzo - Complete AI Infrastructure Platform with CLI, Router, MCP, and Agent Runtime."""
|
||||
|
||||
__version__ = "0.2.4"
|
||||
__version__ = "0.2.5"
|
||||
__all__ = ["main", "cli"]
|
||||
|
||||
from .cli import main, cli
|
||||
@@ -12,7 +12,7 @@ from .interactive.repl import HanzoREPL
|
||||
from .utils.output import console
|
||||
|
||||
# Version
|
||||
__version__ = "0.2.4"
|
||||
__version__ = "0.2.5"
|
||||
|
||||
|
||||
@click.group(invoke_without_command=True)
|
||||
|
||||
Reference in New Issue
Block a user