Skip to content

Commit 6213948

Browse files
committed
Add wheel repair dependencies
Signed-off-by: Cristian Le <[email protected]>
1 parent 1aaa903 commit 6213948

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ repos:
8888
- setuptools-scm
8989
- tomli
9090
- types-setuptools>=70.1
91+
- pyelftools
9192

9293
- repo: https://github.com/henryiii/check-sdist
9394
rev: "v1.2.0"

pyproject.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ wheels = [
8484
"cmake",
8585
"ninja; sys_platform!='win32'",
8686
]
87+
repair-wheel = [
88+
"pyelftools; sys_platform=='linux'",
89+
"macholib; sys_platform=='darwin'",
90+
"pefile; sys_platform=='win32'",
91+
]
8792
dev = [
8893
"rich",
8994
]
@@ -179,7 +184,15 @@ disallow_untyped_defs = true
179184
disallow_incomplete_defs = true
180185

181186
[[tool.mypy.overrides]]
182-
module = ["numpy", "pathspec", "setuptools_scm", "hatch_fancy_pypi_readme", "virtualenv"]
187+
module = [
188+
"numpy",
189+
"pathspec",
190+
"setuptools_scm",
191+
"hatch_fancy_pypi_readme",
192+
"virtualenv",
193+
"macholib",
194+
"pefile",
195+
]
183196
ignore_missing_imports = true
184197

185198

0 commit comments

Comments
 (0)