-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathhatch.toml
88 lines (77 loc) · 2.09 KB
/
hatch.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[build.hooks.vcs]
dependencies = ["hatch-vcs>=0.4.0"]
version-file = "src/codegen/sdk/__init__.py"
[metadata]
allow-direct-references = true
[envs.hatch-build]
installer = "uv"
[[envs.hatch-build.matrix]]
tool = ["uv", "pip"]
[envs.hatch-build.overrides]
matrix.tool.installer = { value = "{matrix:tool}" }
matrix.tool.scripts = [
{ key = "pip", value = "{env:HATCH_UV} pip {args}", if = [
"uv",
] },
]
[version]
source = "vcs"
[build.targets.wheel.hooks.cython]
dependencies = [
"hatch-cython @ git+https://github.com/codegen-sh/hatch-cython.git",
"cython>=3.0.11",
"tree-sitter",
"networkx",
]
[build.targets.wheel.hooks.cython.options]
src = "codegen/sdk"
compile_args = [
"-O3",
{ platforms = [
"darwin",
], arch = "arm64", arg = "-mcpu=apple-m1" },
]
cythonize_kwargs = { annotate = true, nthreads = 16, exclude_failures = false, cache = true }
compiled_sdist = true
compile_py = false
compile_parallel = true
[build.targets.wheel.hooks.cython.options.directives]
boundscheck = false
nonecheck = false
language_level = 3
binding = true
linetrace = true
embedsignature = true
profile = true
c_string_encoding = "default"
c_string_type = "unicode"
[build.targets.wheel.hooks.cython.options.files]
exclude = [
"**/__init__.py",
"**/code_generation",
"**/skills",
"**/codebase/factory",
"**/guides",
"**/testing",
"**/codebase_graph_utils.py",
"**/codegen_examples",
]
[build.targets.wheel]
macos-max-compat = false
[build]
packages = ["src/codegen"]
[metadata.hooks.vcs.urls]
Homepage = "https://www.codegen.com/"
Repository = "https://github.com/codegen-sh/codegen-sdk"
Download = "https://github.com/codegen-sh/codegen-sdk/archive/{commit_hash}.zip"
Changelog = "https://docs.codegen.com/changelog/changelog"
Releasenotes = "https://github.com/codegen-sh/codegen-sdk/releases"
Issues = "https://github.com/codegen-sh/codegen-sdk/issues"
Documentation = "https://docs.codegen.com"
Playground = "https://www.codegen.sh/"
[build.targets.wheel.hooks.custom]
enable-by-default = false
path = "src/codegen/gsbuild/build.py"
require-runtime-dependencies = true
[envs.default]
installer = "uv"