Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

整理: License 登録を一箇所に集約 #1210

Merged
merged 1 commit into from
May 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 74 additions & 78 deletions build_util/generate_licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,83 +41,6 @@ def __init__(
def generate_licenses() -> list[License]:
licenses: list[License] = []

licenses += [
# https://sourceforge.net/projects/open-jtalk/files/Open%20JTalk/open_jtalk-1.11/
License(
name="Open JTalk",
version="1.11",
license="Modified BSD license",
text="docs/licenses/open_jtalk/COPYING",
license_text_type="local_address",
),
License(
name="MeCab",
version=None,
license="Modified BSD license",
text="docs/licenses/open_jtalk/mecab/COPYING",
license_text_type="local_address",
),
License(
name="NAIST Japanese Dictionary",
version=None,
license="Modified BSD license",
text="docs/licenses//open_jtalk/mecab-naist-jdic/COPYING",
license_text_type="local_address",
),
License(
name='HTS Voice "Mei"',
version=None,
license="Creative Commons Attribution 3.0 license",
text="https://raw.githubusercontent.com/r9y9/pyopenjtalk/master/pyopenjtalk/htsvoice/LICENSE_mei_normal.htsvoice", # noqa: B950
license_text_type="remote_address",
),
License(
name="VOICEVOX CORE",
version=None,
license="MIT license",
text="https://raw.githubusercontent.com/VOICEVOX/voicevox_core/main/LICENSE",
license_text_type="remote_address",
),
License(
name="VOICEVOX ENGINE",
version=None,
license="LGPL license",
text="https://raw.githubusercontent.com/VOICEVOX/voicevox_engine/master/LGPL_LICENSE",
license_text_type="remote_address",
),
License(
name="world",
version=None,
license="Modified BSD license",
text="https://raw.githubusercontent.com/mmorise/World/master/LICENSE.txt",
license_text_type="remote_address",
),
License(
name="PyTorch",
version="1.9.0",
license="BSD-style license",
text="https://raw.githubusercontent.com/pytorch/pytorch/master/LICENSE",
license_text_type="remote_address",
),
License(
name="ONNX Runtime",
version="1.13.1",
license="MIT license",
text="https://raw.githubusercontent.com/microsoft/onnxruntime/master/LICENSE",
license_text_type="remote_address",
),
]
python_version = "3.11.3"
licenses += [
License(
name="Python",
version=python_version,
license="Python Software Foundation License",
text=f"https://raw.githubusercontent.com/python/cpython/v{python_version}/LICENSE",
license_text_type="remote_address",
)
]

# pip
try:
pip_licenses_output = subprocess.run(
Expand Down Expand Up @@ -225,8 +148,81 @@ def generate_licenses() -> list[License]:

licenses.append(license)

# OpenBLAS
python_version = "3.11.3"

licenses += [
# https://sourceforge.net/projects/open-jtalk/files/Open%20JTalk/open_jtalk-1.11/
License(
name="Open JTalk",
version="1.11",
license="Modified BSD license",
text="docs/licenses/open_jtalk/COPYING",
license_text_type="local_address",
),
License(
name="MeCab",
version=None,
license="Modified BSD license",
text="docs/licenses/open_jtalk/mecab/COPYING",
license_text_type="local_address",
),
License(
name="NAIST Japanese Dictionary",
version=None,
license="Modified BSD license",
text="docs/licenses//open_jtalk/mecab-naist-jdic/COPYING",
license_text_type="local_address",
),
License(
name='HTS Voice "Mei"',
version=None,
license="Creative Commons Attribution 3.0 license",
text="https://raw.githubusercontent.com/r9y9/pyopenjtalk/master/pyopenjtalk/htsvoice/LICENSE_mei_normal.htsvoice", # noqa: B950
license_text_type="remote_address",
),
License(
name="VOICEVOX CORE",
version=None,
license="MIT license",
text="https://raw.githubusercontent.com/VOICEVOX/voicevox_core/main/LICENSE",
license_text_type="remote_address",
),
License(
name="VOICEVOX ENGINE",
version=None,
license="LGPL license",
text="https://raw.githubusercontent.com/VOICEVOX/voicevox_engine/master/LGPL_LICENSE",
license_text_type="remote_address",
),
License(
name="world",
version=None,
license="Modified BSD license",
text="https://raw.githubusercontent.com/mmorise/World/master/LICENSE.txt",
license_text_type="remote_address",
),
License(
name="PyTorch",
version="1.9.0",
license="BSD-style license",
text="https://raw.githubusercontent.com/pytorch/pytorch/master/LICENSE",
license_text_type="remote_address",
),
License(
name="ONNX Runtime",
version="1.13.1",
license="MIT license",
text="https://raw.githubusercontent.com/microsoft/onnxruntime/master/LICENSE",
license_text_type="remote_address",
),
License(
name="Python",
version=python_version,
license="Python Software Foundation License",
text=f"https://raw.githubusercontent.com/python/cpython/v{python_version}/LICENSE",
license_text_type="remote_address",
),
# OpenBLAS
License(
name="OpenBLAS",
version=None,
Expand Down