Skip to content

Commit

Permalink
♻️ Raise error if LICENSE exists but --pypi misses
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Sep 8, 2024
1 parent 1576ec0 commit f3f46d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions laminci/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ def main():
"Please pass a link to the changelog entry via: --changelog"
" 'your-link'"
)
if Path("./LICENSE").exists() and args.pypi is None:
raise SystemExit(
"Did you forgot to publish to PyPI? A LICENSE file exists."
)
else:
assert Path.cwd().name == "laminhub"
if not (Path.cwd().parent / "laminhub-public").exists():
Expand Down

0 comments on commit f3f46d9

Please sign in to comment.