init: seed framework reference content from agent-runtimes main repo

This commit is contained in:
Paul O'Reilly
2026-04-26 12:17:42 +12:00
commit 37a5165dfb
118 changed files with 6831 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
kind: capability
name: python-dev
version: 1
description: "Python dev tools: pytest, ruff, mypy, uv"
requires: []
packages:
apt: [python3-venv]
pip: [pytest, ruff, mypy, hypothesis, uv]
env:
PIP_BREAK_SYSTEM_PACKAGES: "1"
network_hosts:
- pypi.org
- files.pythonhosted.org
scripts:
init: "./init.sh"

View File

@@ -0,0 +1,32 @@
#!/bin/bash
# Python development capability layer initialization script
set -euo pipefail
echo "Initializing python-dev capability layer..."
# If pyproject.toml exists, install project in development mode
if [[ -f "/workspace/pyproject.toml" ]]; then
echo "Found pyproject.toml, installing project in development mode..."
cd /workspace
# Create virtual environment if it doesn't exist
if [[ ! -d ".venv" ]]; then
python3 -m venv .venv
fi
# Activate virtual environment
source .venv/bin/activate
# Install project in development mode with all dependencies
pip install -e ".[dev,test]" 2>/dev/null || pip install -e . 2>/dev/null || {
echo "Could not install with extras, trying basic install..."
pip install -e .
}
echo "Project installed in development mode"
else
echo "No pyproject.toml found, skipping project installation"
fi
echo "Python development environment ready"