Use Hatch Build System

This commit is contained in:
Arbion Halili
2025-06-28 01:28:52 +01:00
parent 423efe10b8
commit b53c1ba999
3 changed files with 56 additions and 0 deletions

View File

@@ -5,3 +5,20 @@ description = "MLX inference backend for the Exo project"
readme = "README.md"
requires-python = ">=3.13"
dependencies = []
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
clean = true
[tool.hatch.build.targets.wheel]
packages = []
include = ["*"]
exclude = ["*.md", "pyproject.toml"]
[tool.hatch.build.targets.sdist]
packages = []
include = ["*"]
exclude = ["*.md", "pyproject.toml"]

View File

@@ -5,3 +5,20 @@ description = "Master service for the Exo project"
readme = "README.md"
requires-python = ">=3.13"
dependencies = []
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
clean = true
[tool.hatch.build.targets.wheel]
packages = []
include = ["*"]
exclude = ["*.md", "pyproject.toml"]
[tool.hatch.build.targets.sdist]
packages = []
include = ["*"]
exclude = ["*.md", "pyproject.toml"]

View File

@@ -9,3 +9,25 @@ dependencies = [
"pydantic>=2.11.7",
"rich>=14.0.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
clean = true
[tool.hatch.build.targets.wheel]
packages = []
include = ["*"]
exclude = ["protobufs/schemas", "*.md", "pyproject.toml"]
[tool.hatch.build.targets.sdist]
packages = []
include = ["*"]
exclude = ["protobufs/schemas", "*.md", "pyproject.toml"]
[dependency-groups]
dev = [
"types-protobuf>=6.30.2.20250516",
]