Skip to content

zoo-runner-common-0.1.2

Choose a tag to compare

@gfenoy gfenoy released this 19 Jan 10:58
· 2 commits to main since this release

📦 zoo-runner-common v0.1.2

Third release: Package structure refactoring and proper Python module organization

This maintenance release reorganizes the package structure to follow Python best practices with a proper package directory and improved module imports.

🔄 What's Changed

1. Package Structure Refactoring

  • Moved all modules into a proper zoo_runner_common/ package directory
  • Created __init__.py with explicit exports for better API clarity
  • Removed root-level __init__.py for cleaner structure

Module Organization:

zoo_runner_common/
├── __init__.py
├── base_runner.py
├── handlers.py
├── zoo_conf.py
└── zoostub.py

2. Updated Import Paths

  • All modules now use proper package imports: from zoo_runner_common import ...
  • Updated internal imports in base_runner.py to reference the new package structure
  • Documentation API references updated to reflect new module paths

3. Enhanced Package Configuration

  • Updated pyproject.toml with proper setuptools.packages. find configuration
  • Switched from py-modules to package-based discovery
  • Version bumped to 0.1.2

📦 Installation from PyPI

Install directly from PyPI:

pip install zoo-runner-common==0.1.2

Or update in your pyproject.toml:

[project]
dependencies = [
    "zoo-runner-common>=0.1.2",
]

🔄 Migration Guide

If you're upgrading from v0.1.1, update your imports:

Before (v0.1.0 / v0.1.1):

from base_runner import BaseRunner
from zoo_conf import ZooConf, ZooInputs, ZooOutputs

After (v0.1.2):

from zoo_runner_common import BaseRunner, ZooConf, ZooInputs, ZooOutputs
# or
from zoo_runner_common.base_runner import BaseRunner
from zoo_runner_common.zoo_conf import ZooConf, ZooInputs, ZooOutputs

🔗 Links

📝 Notes

This release improves package structure and follows Python packaging best practices. While it introduces import path changes, the core functionality remains identical to v0.1.1.

License: Apache-2.0