Files
kvcache-ai--ktransformers/setup.py
T
wehub-resource-sync ec436095dd
Book-CI / test (macos-latest) (push) Waiting to run
Deploy / deploy (macos-latest) (push) Waiting to run
Deploy / deploy (ubuntu-latest) (push) Waiting to run
Deploy / deploy (windows-latest) (push) Waiting to run
Release to PyPI / Build & publish sglang-kt (push) Waiting to run
Release to PyPI / Build kt-kernel (Python 3.11) (push) Waiting to run
Release to PyPI / Build kt-kernel (Python 3.12) (push) Waiting to run
Release to PyPI / Publish kt-kernel to PyPI (push) Blocked by required conditions
Book-CI / test (ubuntu-latest) (push) Waiting to run
Book-CI / test (windows-latest) (push) Waiting to run
Release Fake Tag / publish (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:30:03 +08:00

30 lines
683 B
Python

"""Lightweight top-level package: pip install ktransformers -> installs kt-kernel.
Extras:
- ktransformers[sft] installs transformers-kt + accelerate-kt
- ktransformers[sglang] installs sglang-kt
"""
from pathlib import Path
from setuptools import setup
_version_file = Path(__file__).resolve().parent / "version.py"
_ns = {}
exec(_version_file.read_text(), _ns)
_v = _ns["__version__"]
setup(
version=_v,
install_requires=[
f"kt-kernel=={_v}",
],
extras_require={
"sft": [
"transformers-kt==5.6.0.post1",
"accelerate-kt==1.14.0.post1",
],
"sglang": [
f"sglang-kt=={_v}",
],
},
)