Skip to content

Commit 281d989

Browse files
build: add job for testing wheel contents
1 parent a9d45ed commit 281d989

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

noxfile.py

Lines changed: 9 additions & 2 deletions
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
@@ -254,7 +254,14 @@ def lint(session: nox.Session) -> None:
254254
def check_manifest(session: nox.Session) -> None:
255255
"""Run check-manifest."""
256256
install_deps(session)
257-
session.run("check-manifest", "-v")
257+
session.run("check-manifest")
258+
259+
260+
@nox.session(name="check-wheel-contents")
261+
def check_wheel_contents(session: nox.Session) -> None:
262+
"""Run check-wheel-contents."""
263+
install_deps(session)
264+
session.run("check-wheel-contents", "-v", "dist")
258265

259266

260267
@nox.session(python=get_version_for_session("slotscheck"))

pyproject.toml

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

0 commit comments

Comments
 (0)