[project] name = "deg" version = "0.1.0" description = "Schema-driven decide/extract/generate filler: JSON Schema in, valid JSON out, new tokens only where x-generate says so" readme = "README.md" requires-python = ">=3.11" dependencies = [ "jsonschema>=4.23,<5", ] [project.optional-dependencies] datagen = ["aiohttp>=3.10,<4", "pyarrow>=15"] model = [ "torch==2.14.0", "transformers>=5.17,<6", "flash-linear-attention==0.5.2", "fla-core==0.5.2", "safetensors", "regex", ] bench = ["xgrammar==0.2.8", "jinja2"] server = ["opentelemetry-api>=1.30,<2"] # the stock OpenAI SDK, for clients and for the stock-SDK round-trip tests sdk = ["openai>=3.26,<4"] [dependency-groups] dev = ["pytest>=8", "ruff>=0.11"] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["src/deg"] [tool.ruff] line-length = 100 [tool.ruff.lint] select = ["E", "F", "I"] [tool.pytest.ini_options] testpaths = ["tests"]