Skip to content

Commit e8b85ff

Browse files
committed
chore: Fix publish duty (uv build adds a gitignore file to the dist folder)
1 parent bc86dc3 commit e8b85ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

duties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def publish(ctx: Context) -> None:
401401
"""
402402
if not Path("dist").exists():
403403
ctx.run("false", title="No distribution files found")
404-
dists = [str(dist) for dist in Path("dist").iterdir()]
404+
dists = [str(dist) for dist in Path("dist").iterdir() if dist.suffix in (".tar.gz", ".whl")]
405405
ctx.run(
406406
tools.twine.upload(*dists, skip_existing=True),
407407
title="Publishing source and wheel distributions to PyPI",

0 commit comments

Comments
 (0)