Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
Make twine check failures just a warning (#9)
Browse files Browse the repository at this point in the history
Turns out Poetry doesn't set the content type for the long description.

python-poetry/poetry#769
  • Loading branch information
brettcannon authored Mar 29, 2020
1 parent 6a6a12f commit 3ef7917
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion release_often/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ def build():
output_dir = source_dir / "dist"
for builder in (pep517.envbuild.build_sdist, pep517.envbuild.build_wheel):
builder(source_dir, output_dir)
subprocess.run(["twine", "check", f"{output_dir}/*"], check=True)
# https://github.com/python-poetry/poetry/issues/769
check_result = subprocess.run(["twine", "check", f"{output_dir}/*"])
if check_result.returncode:
actions.command("warning", "`twine check` had a non-zero exit code")
return output_dir


Expand Down

0 comments on commit 3ef7917

Please sign in to comment.