From 6f863086ad1bc29e00dd525afbb286293ad8e8c0 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 29 Nov 2026 13:06:32 +0100 Subject: [PATCH] chore: update CMake license files --- cmake-licenses/CONTRIBUTORS.rst | 103 ++++++++++++++++++++ LICENSE_BSD_3 => cmake-licenses/LICENSE.rst | 20 ++-- pyproject.toml | 2 +- scripts/update_cmake_version.py | 15 +++ 4 files changed, 126 insertions(+), 14 deletions(-) create mode 100644 cmake-licenses/CONTRIBUTORS.rst rename LICENSE_BSD_3 => cmake-licenses/LICENSE.rst (62%) diff --git a/cmake-licenses/CONTRIBUTORS.rst b/cmake-licenses/CONTRIBUTORS.rst new file mode 100644 index 000000000..de5864730 --- /dev/null +++ b/cmake-licenses/CONTRIBUTORS.rst @@ -0,0 +1,103 @@ +Contributors +************ + +The following individuals and institutions are among the contributors: + +* `Aaron C. Meadows `__ +* `Adriaan de Groot `__ +* `Aleksey Avdeev `__ +* `Alexander Neundorf `__ +* `Alexander Smorkalov `__ +* `Alexey Sokolov `__ +* `Alex Merry `__ +* `Alex Turbov `__ +* `Andreas Pakulat `__ +* `Andreas Schneider `__ +* `André Rigland Brodtkorb `__ +* Axel Huebl, Helmholtz-Zentrum Dresden - Rossendorf +* Benjamin Eikel +* `Bjoern Ricks `__ +* `Brad Hards `__ +* Christopher Harvey +* `Christoph Grüninger `__ +* `Clement Creusot `__ +* `Daniel Blezek `__ +* `Daniel Pfeifer `__ +* `Dawid Wróbel `__ +* `Enrico Scholz `__ +* `Eran Ifrah `__ +* Esben Mose Hansen, Ange Optimization ApS +* `Geoffrey Viola `__ +* `Georg Brandl `__ +* `Google Inc `__ +* Gregor Jasny +* `Helio Chissini de Castro `__ +* `Ilya Lavrenov `__ +* `Insight Software Consortium `__ +* `Intel Corporation `__ +* Jan Woetzel +* `Jordan Williams `__ +* Julien Schueller +* `Kelly Thompson `__ +* `Konstantin Podsvirov `__ +* `Laurent Montel `__ +* `Mario Bensi `__ +* `Martin Gräßlin `__ +* `Mathieu Malaterre `__ +* Matthaeus G. Chajdas +* `Matthias Kretz `__ +* `Matthias Maennich `__ +* `Michael Hirsch, Ph.D. `__ +* Michael Stürmer +* Miguel A. Figueroa-Villanueva +* `Mike Durso `__ +* Mike Jackson +* `Mike McQuaid `__ +* `Nicolas Bock `__ +* `Nicolas Despres `__ +* `Nikita Krupen'ko `__ +* `NVIDIA Corporation `__ +* `OpenGamma Ltd. `__ +* `Patrick Stotko `__ +* `Per Øyvind Karlsen `__ +* `Peter Collingbourne `__ +* `Petr Gotthard `__ +* `Philip Lowman `__ +* `Philippe Proulx `__ +* `Qualcomm Technologies, Inc. `__ +* Raffi Enficiaud, Max Planck Society +* Raumfeld +* `Roger Leigh `__ +* `Rolf Eike Beer `__ +* `Roman Donchenko `__ +* `Roman Kharitonov `__ +* Ruslan Baratov +* `Sebastian Holtermann `__ +* `Stephen Kelly `__ +* `Sylvain Joubert `__ +* `The Khronos Group `__ +* `The Qt Company Ltd. `__ +* `Thomas Sondergaard `__ +* `Tobias Hunger `__ +* `Todd Gamblin `__ +* Tristan Carel +* `University of Dundee `__ +* Vadim Zhukov +* `Will Dicharry `__ + +See version control history for details of individual contributions. + +Copyright +========= + +The accompanying `LICENSE.rst`_ notice applies to distributions of CMake +in source and binary form. We do not require any formal copyright +assignment or contributor license agreement. Any contributions +intentionally sent upstream are presumed to be offered under terms +of the OSI-approved BSD 3-clause License. + +Third-party software packages supplied with CMake under compatible +licenses provide their own copyright notices documented in corresponding +subdirectories or source files. + +.. _`LICENSE.rst`: LICENSE.rst diff --git a/LICENSE_BSD_3 b/cmake-licenses/LICENSE.rst similarity index 62% rename from LICENSE_BSD_3 rename to cmake-licenses/LICENSE.rst index 17820f3da..3ddcf8774 100644 --- a/LICENSE_BSD_3 +++ b/cmake-licenses/LICENSE.rst @@ -1,25 +1,19 @@ -CMake is distributed under the OSI-approved BSD 3-clause License: - -CMake - Cross Platform Makefile Generator -Copyright 2000-2014 Kitware, Inc. -Copyright 2000-2011 Insight Software Consortium -All rights reserved. +Copyright 2000-2026 Kitware, Inc. and `Contributors `_ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. + notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright -notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. -* Neither the names of Kitware, Inc., the Insight Software Consortium, -nor the names of their contributors may be used to endorse or promote -products derived from this software without specific prior written -permission. +* Neither the name of Kitware, Inc. nor the names of Contributors + may be used to endorse or promote products derived from this + software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT diff --git a/pyproject.toml b/pyproject.toml index 0423e6c71..3cec757e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ description = "CMake is an open-source, cross-platform family of tools designed keywords = ["CMake", "build", "c++", "fortran", "cross-platform", "cross-compilation"] readme = "README.rst" license = "Apache-2.0 AND BSD-3-Clause" -license-files = ["LICENSE_Apache_20", "LICENSE_BSD_3"] +license-files = ["LICENSE_Apache_20", "cmake-licenses/CONTRIBUTORS.rst", "cmake-licenses/LICENSE.rst"] authors = [ {name = "Jean-Christophe Fillion-Robin", email = "jchris.fillionr@kitware.com"}, ] diff --git a/scripts/update_cmake_version.py b/scripts/update_cmake_version.py index b35c8dde9..11e79f642 100755 --- a/scripts/update_cmake_version.py +++ b/scripts/update_cmake_version.py @@ -205,6 +205,20 @@ def update_raw_versions(version: str, filename: str) -> set[str]: return {filename} +def update_license_files(version: str) -> set[str]: + base_url = f"https://raw.githubusercontent.com/Kitware/CMake/refs/tags/v{version}" + dest_dir = ROOT_DIR / "cmake-licenses" + updated_files = set() + for file in ["CONTRIBUTORS.rst", "LICENSE.rst"]: + url = f"{base_url}/{file}" + dest_path = dest_dir / file + request = requests.get(url) + request.raise_for_status() + dest_path.write_text(request.text, newline="\n") + updated_files.add(str(dest_path.relative_to(ROOT_DIR))) + return updated_files + + def main() -> None: parser = argparse.ArgumentParser(description=__doc__) parser.add_argument( @@ -236,6 +250,7 @@ def main() -> None: filenames |= update_raw_versions(args.cmake_version, "docs/update_cmake_version.rst") filenames |= update_raw_versions(args.cmake_version, "docs/make_a_release.rst") filenames |= update_pyproject_toml(args.cmake_version) + filenames |= update_license_files(args.cmake_version) if args.quiet: return