pyproject.toml (1096B)
1 [build-system] 2 requires = ["setuptools>=68"] 3 build-backend = "setuptools.build_meta" 4 5 [project] 6 name = "semif-api" 7 version = "0.1.0" 8 description = "HTTP API wrapper around TheoLeeCJ/SemIf (library dependency, not a fork)" 9 readme = "README.md" 10 requires-python = ">=3.10" 11 dependencies = [ 12 # Provided by the nix dev shell / venv, NOT resolved from PyPI: 13 # - semif-phase1: vendored clone of github.com/TheoLeeCJ/SemIf (install with --no-deps) 14 # - torch: ROCm build from nixpkgs (SemIf's pinned torch==2.10.0 is CUDA-only) 15 # - fastapi, uvicorn: from the nix env 16 "semif-phase1", 17 "torch", 18 "fastapi", 19 "uvicorn", 20 ] 21 22 [project.scripts] 23 semif-serve = "semif_api.app:run" 24 semif-llama-probe = "semif_api.llama:main" 25 26 [tool.setuptools] 27 include-package-data = true 28 29 [tool.setuptools.packages.find] 30 where = ["src"] 31 32 # The web UI must ride in the wheel: the nix build installs non-editable, so a 33 # missing glob ships a package whose /ui route 500s on a missing file while the 34 # editable dev shell works fine. 35 [tool.setuptools.package-data] 36 semif_api = ["web/*.html", "web/*.css", "web/*.js"]