diff --git a/CMakeUrls.cmake b/CMakeUrls.cmake index 567934de..ba3f0385 100644 --- a/CMakeUrls.cmake +++ b/CMakeUrls.cmake @@ -1,11 +1,11 @@ #----------------------------------------------------------------------------- # CMake sources -set(unix_source_url "https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6.tar.gz") -set(unix_source_sha256 "653427f0f5014750aafff22727fb2aa60c6c732ca91808cfb78ce22ddd9e55f0") +set(unix_source_url "https://github.com/Kitware/CMake/releases/download/v4.0.0/cmake-4.0.0.tar.gz") +set(unix_source_sha256 "ddc54ad63b87e153cf50be450a6580f1b17b4881de8941da963ff56991a4083b") -set(windows_source_url "https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6.zip") -set(windows_source_sha256 "106df3d82f20aaa52a5f575c836effc5713a2fe3235f38e9be5c8a14b8d35530") +set(windows_source_url "https://github.com/Kitware/CMake/releases/download/v4.0.0/cmake-4.0.0.zip") +set(windows_source_sha256 "7691fb5621e4852d1561cc81d5a09cea6fdff646d4d12d2e893b2c0d4ea4dd10") #----------------------------------------------------------------------------- # CMake binaries @@ -13,17 +13,17 @@ set(windows_source_sha256 "106df3d82f20aaa52a5f575c836effc5713a2fe3235f38e9be set(linux32_binary_url "NA") # Linux 32-bit binaries not available set(linux32_binary_sha256 "NA") -set(linux64_binary_url "https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-linux-x86_64.tar.gz") -set(linux64_binary_sha256 "5a1133ff103c71eb5120e2cc3de922733e7d8a26a98ae716397e8676adb367bf") +set(linux64_binary_url "https://github.com/Kitware/CMake/releases/download/v4.0.0/cmake-4.0.0-linux-x86_64.tar.gz") +set(linux64_binary_sha256 "a06e6e32da747e569162bc0442a3fd400fadd9db7d4f185c9e4464ab299a294b") -set(macos10_10_binary_url "https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-macos10.10-universal.tar.gz") -set(macos10_10_binary_sha256 "dc49fe67e0841e1d21b9e694d4858bbc06118165be5ebd8da0f2028216d56e6c") +set(macos10_10_binary_url "https://github.com/Kitware/CMake/releases/download/v4.0.0/cmake-4.0.0-macos10.10-universal.tar.gz") +set(macos10_10_binary_sha256 "94c92c76ac861da7e450d44805be828a8c9b2c3c5dd75144c91248fe1d177eea") -set(win32_binary_url "https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-windows-i386.zip") -set(win32_binary_sha256 "005ef676975aa0f8348fc2c8011a913f9676f07f602ca624ee0811b427d3fd84") +set(win32_binary_url "https://github.com/Kitware/CMake/releases/download/v4.0.0/cmake-4.0.0-windows-i386.zip") +set(win32_binary_sha256 "28408c0ca3b4461550bbcad94c526846699ed79366d81b57db0375cb119875dd") -set(win64_binary_url "https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-windows-x86_64.zip") -set(win64_binary_sha256 "d163cd3ab4959b0a53fa8988f2ddbd2e6c501658201e6a154386bad9dbe4f836") +set(win64_binary_url "https://github.com/Kitware/CMake/releases/download/v4.0.0/cmake-4.0.0-windows-x86_64.zip") +set(win64_binary_sha256 "89e87f3e297b70f1349ee7c5f90783ca96efb986b70c558c799c3c9b1b716456") -set(winarm64_binary_url "https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-windows-arm64.zip") -set(winarm64_binary_sha256 "fa648fd417f44e6cb08928964a480ade0d18df421f9b623639dba22f9b301e4e") +set(winarm64_binary_url "https://github.com/Kitware/CMake/releases/download/v4.0.0/cmake-4.0.0-windows-arm64.zip") +set(winarm64_binary_sha256 "6a24f1ea0965a10a2508b16db1ec8b62c83d5323ac33a1aa7d201797ba147302") diff --git a/README.rst b/README.rst index 9b30ac67..0071c147 100644 --- a/README.rst +++ b/README.rst @@ -11,7 +11,7 @@ The suite of CMake tools were created by Kitware in response to the need for a powerful, cross-platform build environment for open-source projects such as ITK and VTK. -The CMake python wheels provide `CMake 3.31.6 `_. +The CMake python wheels provide `CMake 4.0.0 `_. Latest Release -------------- diff --git a/docs/index.rst b/docs/index.rst index d3f0da70..88198194 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -15,7 +15,7 @@ The suite of CMake tools were created by Kitware in response to the need for a powerful, cross-platform build environment for open-source projects such as `ITK `_ and `VTK `_. -The CMake python wheels provide `CMake 3.31.6 `_. +The CMake python wheels provide `CMake 4.0.0 `_. .. toctree:: :maxdepth: 2 diff --git a/docs/make_a_release.rst b/docs/make_a_release.rst index abc00930..5d872628 100644 --- a/docs/make_a_release.rst +++ b/docs/make_a_release.rst @@ -44,8 +44,8 @@ Prerequisites .. code:: console - $ git tag --sign -m 'cmake-python-distributions 3.31.6' 3.31.6 main - $ git push origin 3.31.6 + $ git tag --sign -m 'cmake-python-distributions 4.0.0' 4.0.0 main + $ git push origin 4.0.0 .. warning:: diff --git a/docs/update_cmake_version.rst b/docs/update_cmake_version.rst index 04b42d8e..3ba8d0f9 100644 --- a/docs/update_cmake_version.rst +++ b/docs/update_cmake_version.rst @@ -29,13 +29,13 @@ Classic procedure: 2. Execute `scripts/update_cmake_version.py` command line tool with the desired ``X.Y.Z`` CMake version available for download. For example:: - $ release=3.31.6 + $ release=4.0.0 $ ./scripts/update_cmake_version.py $release - Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v3.31.6' + Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v4.0.0' [...] - Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v3.31.6' - done - Updating 'CMakeUrls.cmake' with CMake version 3.31.6 - Updating 'CMakeUrls.cmake' with CMake version 3.31.6 - done + Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v4.0.0' - done + Updating 'CMakeUrls.cmake' with CMake version 4.0.0 + Updating 'CMakeUrls.cmake' with CMake version 4.0.0 - done Updating docs/index.rst Updating docs/index.rst - done Updating README.rst @@ -46,7 +46,7 @@ Classic procedure: 3. Create a topic named `update-to-cmake-X.Y.Z` and commit the changes. For example:: - release=3.31.6 + release=4.0.0 git switch -c update-to-cmake-$release git add -u CMakeUrls.cmake docs/index.rst README.rst tests/test_cmake.py docs/update_cmake_version.rst git commit -m "Update to CMake $release" diff --git a/pyproject.toml b/pyproject.toml index 187c2acf..3bd756fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ backend-path = ["_build_backend"] [project] name = "cmake" -version = "3.31.6" +version = "4.0.0" description = "CMake is an open-source, cross-platform family of tools designed to build, test and package software" keywords = ["CMake", "build", "c++", "fortran", "cross-platform", "cross-compilation"] readme = "README.rst" diff --git a/tests/test_cmake.py b/tests/test_cmake.py index c51c205d..3c90344c 100644 --- a/tests/test_cmake.py +++ b/tests/test_cmake.py @@ -68,7 +68,7 @@ def _get_scripts(): @all_tools def test_cmake_script(tool): - expected_version = "3.31.6" + expected_version = "4.0.0" scripts = [script for script in _get_scripts() if script.stem == tool] assert len(scripts) == 1 output = subprocess.check_output([str(scripts[0]), "--version"]).decode("ascii") @@ -76,6 +76,6 @@ def test_cmake_script(tool): def test_cmake_main(): - expected_version = "3.31.6" + expected_version = "4.0.0" output = subprocess.run([sys.executable, "-m", "cmake", "--version"], text=True, capture_output=True, check=False).stdout assert output.splitlines()[0] == f"cmake version {expected_version}"