packaging: pyproject + editorconfig + clang-format (#396) with a single version source#412
Merged
Conversation
Python packaging: - pyproject.toml: pip install colibri-engine (editable dev install works) - colibri/ package with __version__, CLI entry point delegating to c/coli - Optional dependency groups: [convert] (numpy, huggingface_hub), [oracle] (torch, transformers, safetensors), [bench] (tokenizers, datasets) Code style: - .editorconfig: consistent indent/charset across all file types - .clang-format: LLVM-based, 120 col, matches existing engine style Usage: pip install -e . # dev install (CLI + serve, no heavy deps) pip install -e .[convert] # adds converter dependencies pip install -e .[oracle] # adds torch/transformers for oracle validation
…(on top of #396) colibri/_version.py now reads c/version.py (#394's single source of truth -- coli --version, the release workflow, and pip metadata can no longer drift), with an importlib.metadata fallback for the installed-wheel case where c/ is not on disk. README documents that pip install -e . is the supported form: the engine lives in c/ and is not packaged into a standalone wheel. Verified in a clean venv: pip install -e . -> colibri.__version__ == 1.0.0 read from c/version.py, coli entrypoint on PATH and functional. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Porta dentro la #396 di @ZacharyZcR con le due sistemazioni discusse in review:
colibri/_version.pyora leggec/version.py(la fonte della release: version infrastructure + GitHub Release workflow (v1.0.0) #394 usata dacoli --versione dal workflow release) invece di duplicare il literal — al primo bump non possono più divergere. Fallback aimportlib.metadataper il caso wheel installata (dovec/non esiste su disco).pip install -e .dal clone — il motore vive inc/e non viene impacchettato in una wheel standalone (una wheel pura darebbe uncoliche muore con "engine directory not found").Verificato in un venv pulito:
pip install -e .→colibri.__version__ == 1.0.0letto dac/version.py, entrypointcolisul PATH e funzionante.Include invariati
.editorconfige.clang-formatdella PR originale.Closes #396
🤖 Generated with Claude Code