Merge branch 'pr396' into p396-packaging
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
BasedOnStyle: LLVM
|
||||||
|
IndentWidth: 4
|
||||||
|
ColumnLimit: 120
|
||||||
|
AllowShortFunctionsOnASingleLine: All
|
||||||
|
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
|
||||||
|
AllowShortLoopsOnASingleLine: true
|
||||||
|
BreakBeforeBraces: Attach
|
||||||
|
PointerAlignment: Right
|
||||||
|
SpaceAfterCStyleCast: false
|
||||||
|
SortIncludes: false
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.{c,h,cu}]
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.{ts,tsx,js,json,css}]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[Makefile]
|
||||||
|
indent_style = tab
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
"""colibrì — tiny engine, immense model."""
|
||||||
|
|
||||||
|
from colibri._version import __version__
|
||||||
|
|
||||||
|
__all__ = ["__version__"]
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
"""Single source of truth for the colibrì version number."""
|
||||||
|
|
||||||
|
__version__ = "1.0.0"
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
"""Entry point for `coli` when installed via pip.
|
||||||
|
|
||||||
|
Delegates to the original c/coli script which handles all subcommands.
|
||||||
|
This wrapper exists so `pip install colibri-engine` creates a `coli` console
|
||||||
|
script that works without the user having to add c/ to PATH manually.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
import runpy
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
here = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
engine_dir = os.path.join(os.path.dirname(here), "c")
|
||||||
|
coli_script = os.path.join(engine_dir, "coli")
|
||||||
|
|
||||||
|
if not os.path.exists(coli_script):
|
||||||
|
sys.exit(
|
||||||
|
"colibri engine directory not found.\n"
|
||||||
|
"Install from source: git clone + pip install -e ."
|
||||||
|
)
|
||||||
|
|
||||||
|
sys.path.insert(0, engine_dir)
|
||||||
|
sys.argv[0] = coli_script
|
||||||
|
runpy.run_path(coli_script, run_name="__main__")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=68.0"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "colibri-engine"
|
||||||
|
dynamic = ["version"]
|
||||||
|
description = "Tiny engine, immense model — run GLM-5.2 (744B MoE) locally"
|
||||||
|
readme = "README.md"
|
||||||
|
license = "Apache-2.0"
|
||||||
|
requires-python = ">=3.10"
|
||||||
|
authors = [
|
||||||
|
{name = "JustVugg"},
|
||||||
|
]
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 4 - Beta",
|
||||||
|
"Environment :: Console",
|
||||||
|
"Intended Audience :: Science/Research",
|
||||||
|
"Operating System :: POSIX :: Linux",
|
||||||
|
"Operating System :: MacOS",
|
||||||
|
"Operating System :: Microsoft :: Windows",
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
convert = [
|
||||||
|
"numpy",
|
||||||
|
"huggingface_hub",
|
||||||
|
]
|
||||||
|
oracle = [
|
||||||
|
"torch>=2.0",
|
||||||
|
"transformers>=4.40",
|
||||||
|
"safetensors",
|
||||||
|
]
|
||||||
|
bench = [
|
||||||
|
"tokenizers",
|
||||||
|
"datasets",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
coli = "colibri.cli:main"
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
Homepage = "https://github.com/JustVugg/colibri"
|
||||||
|
Issues = "https://github.com/JustVugg/colibri/issues"
|
||||||
|
|
||||||
|
[tool.setuptools.dynamic]
|
||||||
|
version = {attr = "colibri._version.__version__"}
|
||||||
|
|
||||||
|
[tool.setuptools.packages.find]
|
||||||
|
where = ["."]
|
||||||
|
include = ["colibri*"]
|
||||||
Reference in New Issue
Block a user