docs: record rc1 publication dry-run evidence (#1822)

This commit is contained in:
Affaan Mustafa
2026-05-12 16:27:52 -04:00
committed by GitHub
parent 0598af70a5
commit bfacf37715
6 changed files with 148 additions and 21 deletions

View File

@@ -71,9 +71,16 @@ function buildExpectedPublishPaths(repoRoot) {
"agent.yaml",
"VERSION",
]
const exclusionPaths = [
"!**/__pycache__/**",
"!**/*.pyc",
"!**/*.pyo",
"!**/*.pyd",
"!**/.pytest_cache/**",
]
const combined = new Set(
[...modules.flatMap((module) => module.paths || []), ...extraPaths].map(normalizePublishPath)
[...modules.flatMap((module) => module.paths || []), ...extraPaths, ...exclusionPaths].map(normalizePublishPath)
)
return [...combined]
@@ -139,6 +146,17 @@ function main() {
`npm pack should not include ${excludedPath}`
)
}
for (const packagedPath of packagedPaths) {
assert.ok(
!packagedPath.includes("__pycache__/"),
`npm pack should not include Python bytecode cache path ${packagedPath}`
)
assert.ok(
!/\.py[cod]$/.test(packagedPath),
`npm pack should not include Python bytecode file ${packagedPath}`
)
}
}],
]