Skip to content

Commit

Permalink
Fix: CI エラーを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Dec 25, 2024
1 parent 29bed35 commit 27fa753
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/generate_licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def generate_licenses() -> list[License]:
elif package_name == "pyproject_hooks":
text_url = "https://raw.githubusercontent.com/pypa/pyproject-hooks/v1.1.0/LICENSE" # noqa: B950
license_json["LicenseText"] = get_license_text(text_url)
elif package_name == "pywin32":
continue # ライセンスファイルがリポジトリにない
elif package_name == "safetensors":
text_url = "https://raw.githubusercontent.com/huggingface/safetensors/v0.4.3/LICENSE" # noqa: B950
license_json["LicenseText"] = get_license_text(text_url)
Expand All @@ -146,6 +148,8 @@ def generate_licenses() -> list[License]:
elif package_name == "types-pyyaml":
text_url = "https://raw.githubusercontent.com/python/typeshed/57f3dcac8dbed008479b251512975901a0206deb/LICENSE" # noqa: B950
license_json["LicenseText"] = get_license_text(text_url)
elif package_name == "wmi":
continue # ライセンスファイルがリポジトリにない
else:
# ライセンスがpypiに無い
raise Exception(f"No License info provided for {package_name}")
Expand Down

0 comments on commit 27fa753

Please sign in to comment.