Listing the "Blender Foundation" as copyright holder implied the Blender Foundation holds copyright to files which may include work from many developers. While keeping copyright on headers makes sense for isolated libraries, Blender's own code may be refactored or moved between files in a way that makes the per file copyright holders less meaningful. Copyright references to the "Blender Foundation" have been replaced with "Blender Authors", with the exception of `./extern/` since these this contains libraries which are more isolated, any changed to license headers there can be handled on a case-by-case basis. Some directories in `./intern/` have also been excluded: - `./intern/cycles/` it's own `AUTHORS` file is planned. - `./intern/opensubdiv/`. An "AUTHORS" file has been added, using the chromium projects authors file as a template. Design task: #110784 Ref !110783.
49 lines
1.4 KiB
Python
Executable File
49 lines
1.4 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
# SPDX-FileCopyrightText: 2020-2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
import argparse
|
|
|
|
import lts_issue
|
|
import lts_download
|
|
|
|
DESCRIPTION = ("This python script is used to generate the release notes and "
|
|
"download URLs which we can copy-paste directly into the CMS of "
|
|
"www.blender.org and stores.")
|
|
|
|
# Parse arguments
|
|
parser = argparse.ArgumentParser(description=DESCRIPTION)
|
|
parser.add_argument(
|
|
"--version",
|
|
required=True,
|
|
help="Version string in the form of {major}.{minor}.{patch} (e.g. 3.3.2)")
|
|
parser.add_argument(
|
|
"--issue",
|
|
help="Task that is contains the release notes information (e.g. #77348)")
|
|
parser.add_argument(
|
|
"--format",
|
|
help="Format the result in `text`, `steam`, `wiki` or `html`",
|
|
default="text")
|
|
args = parser.parse_args()
|
|
|
|
# Determine issue number
|
|
version = args.version
|
|
issue = args.issue
|
|
if not issue:
|
|
if version.startswith("2.83."):
|
|
issue = "#77348"
|
|
elif version.startswith("2.93."):
|
|
issue = "#88449"
|
|
elif version.startswith("3.3."):
|
|
issue = "#100749"
|
|
else:
|
|
raise ValueError("Specify --issue or update script to include issue number for this version")
|
|
|
|
# Print
|
|
if args.format == "html":
|
|
lts_download.print_urls(version=version)
|
|
print("")
|
|
|
|
lts_issue.print_notes(version=version, format=args.format, issue=issue)
|