Skip to content

Commit fdc03f4

Browse files
committed
Add a pth file to the wheel which works around an issue with doctest and CircuitPython projects.
1 parent b963fb1 commit fdc03f4

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = [ "whey",]
2+
requires = [ "whey", "whey-pth",]
33
build-backend = "whey"
44

55
[project]
@@ -156,3 +156,10 @@ reformat = true
156156
[tool.snippet-fmt.languages.ini]
157157

158158
[tool.snippet-fmt.languages.json]
159+
160+
[tool.whey-pth]
161+
name = "flake8_helper.pth"
162+
pth-content = "# Ensure these are imported before the current directory appears on path\nimport code\nimport doctest\n"
163+
164+
[tool.whey.builders]
165+
wheel = "whey_pth_wheel"

repo_helper.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ exclude_files:
5353
sphinx_conf_epilogue:
5454
- nitpicky = True
5555
- autosummary_widths_builders = ["latex"]
56+
57+
tox_unmanaged:
58+
- check-wheel-contents

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ exclude_lines =
155155
if __name__ == .__main__.:
156156
157157
[check-wheel-contents]
158-
ignore = W002
158+
ignore = W002,W102
159159
toplevel = flake8_helper
160160
package = flake8_helper
161161

0 commit comments

Comments
 (0)