Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
197 lines (170 loc) · 4.51 KB
/
Copy pathpyproject.toml
File metadata and controls
197 lines (170 loc) · 4.51 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[build-system]
requires = [
"hatchling",
]
build-backend = "hatchling.build"
[project]
name = "dau-build"
authors = [
{name = "the dau authors", email = "dev@dau.dev"},
]
description = "Build tools for dau"
readme = "README.md"
license = { text = "Apache-2.0" }
version = "0.15.0"
requires-python = ">=3.11"
keywords = []
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"amaranth",
"artlink",
"ccflow>=0.8.5",
"dau-sim>=0.2.0",
"dau-utils",
"hydra-core",
# the search-path bridge that honours hydra.lernaplugins entry points
"lerna>=2.0.4",
"omegaconf",
"pydantic",
# read from pyslang.syntax and pyslang.parsing; 12 dropped the top-level re-exports
"pyslang>=11",
"pyyaml",
"typing_extensions",
]
[project.optional-dependencies]
develop = [
"build",
"bump-my-version",
"check-dist",
"cocotb>=2.0.1",
"codespell",
"hatchling",
"mdformat",
"mdformat-frontmatter",
"mdformat-tables>=1",
"pytest",
"pytest-cov",
"ruff",
"twine",
"ty",
"uv",
"wheel",
"verilator",
# tests
]
[project.scripts]
dau-build = "dau_build.cli:main"
# Register dau-build's config tree on the Hydra search path (via the lerna
# bridge). Its config groups become discoverable to the CLI and to any other
# package/user that composes with the search path — the extension mechanism:
# a package registers its own `pkg:<name>.config` to add boards, backends,
# designs, or tasks without touching dau-build.
[project.entry-points."hydra.lernaplugins"]
dau-build = "pkg:dau_build.config"
[project.urls]
Repository = "https://github.com/dau-dev/dau-build"
Homepage = "https://github.com/dau-dev/dau-build"
[tool.bumpversion]
current_version = "0.15.0"
commit = true
tag = true
commit_args = "-s"
[[tool.bumpversion.files]]
filename = "dau_build/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[tool.coverage.run]
omit = [
"dau_build/tests/integration/*",
]
[tool.coverage.report]
exclude_also = [
"raise NotImplementedError",
"if __name__ == .__main__.:",
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
fail_under = 50
[tool.hatch.build]
artifacts = []
[tool.hatch.build.sources]
src = "/"
[tool.hatch.build.targets.sdist]
packages = [
"dau_build",
]
# Force the config tree into the sdist verbatim: nested groups like
# task/tasks/build/ would otherwise be stripped by the `build/` .gitignore
# pattern, leaving the sdist and wheel out of sync.
[tool.hatch.build.targets.sdist.force-include]
"dau_build/config" = "dau_build/config"
[tool.hatch.build.targets.wheel]
packages = [
"dau_build",
]
[tool.hatch.build.targets.wheel.shared-data]
[tool.pytest.ini_options]
addopts = [
"-vvv",
"--junitxml=junit.xml",
]
testpaths = "dau_build/tests"
[tool.ruff]
line-length = 150
[tool.ruff.lint]
extend-select = [
"ARG", # accepted-but-unused parameters are defects (GUIDELINES Review Rules)
"I",
]
[tool.ruff.lint.isort]
combine-as-imports = true
default-section = "third-party"
known-first-party = [
"dau_build",
]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401",
"F403",
]
# test doubles conform to real interfaces and legitimately ignore arguments
"**/tests/**" = ["ARG"]
[tool.ty.analysis]
# dau-build does not depend on dau-core (dau-build is public and dau-core is
# not yet); the integration tests that read its registry skip without it
allowed-unresolved-imports = ["dau_core.**"]
[tool.yardang]
title = "dau-build"
root = "README.md"
pages = [
"docs/src/tutorial/first-build.md",
"docs/src/how-to/run-a-build.md",
"docs/src/how-to/program-hardware.md",
"docs/src/how-to/extend-dau-build.md",
"docs/src/reference/commands.md",
"docs/src/reference/config-groups.md",
"docs/src/reference/tasks-and-steps.md",
"docs/src/explanation/architecture.md",
]
use-autoapi = false