Skip to content

Commit 4b3ed4d

Browse files
build: add job for testing wheel contents (#1455)
1 parent 0b11905 commit 4b3ed4d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

noxfile.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __post_init__(self) -> None:
9696
),
9797
# the other sessions, they don't need pyright, but they need to run
9898
ExecutionGroup(
99-
sessions=("lint", "slotscheck", "check-manifest"),
99+
sessions=("lint", "slotscheck", "check-manifest", "check-wheel-contents"),
100100
groups=("tools",),
101101
),
102102
# build
@@ -275,6 +275,13 @@ def build(session: nox.Session) -> None:
275275
session.run("python", "-m", "build", "--outdir", "dist")
276276

277277

278+
@nox.session(name="check-wheel-contents", requires=["build"], tags=["misc"])
279+
def check_wheel_contents(session: nox.Session) -> None:
280+
"""Run check-wheel-contents."""
281+
install_deps(session)
282+
session.run("check-wheel-contents", "dist")
283+
284+
278285
@nox.session(python=get_version_for_session("autotyping"))
279286
def autotyping(session: nox.Session) -> None:
280287
"""Run autotyping.

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ tools = [
8686
"prek>=0.2.0",
8787
"slotscheck==0.19.1",
8888
"check-manifest==0.50",
89+
"check-wheel-contents~=0.6.3",
8990
{ include-group = "ruff" },
9091
]
9192
changelog = [
@@ -436,3 +437,7 @@ ignore = [
436437
"tests/**",
437438
"scripts/**",
438439
]
440+
441+
[tool.check-wheel-contents]
442+
toplevel = ["disnake"]
443+
package = "disnake"

0 commit comments

Comments
 (0)