diff --git a/CMakeUrls.cmake b/CMakeUrls.cmake index 63824fe4..40ac75fd 100644 --- a/CMakeUrls.cmake +++ b/CMakeUrls.cmake @@ -1,11 +1,11 @@ #----------------------------------------------------------------------------- # CMake sources -set(unix_source_url "https://github.com/Kitware/CMake/releases/download/v4.1.2/cmake-4.1.2.tar.gz") -set(unix_source_sha256 "643f04182b7ba323ab31f526f785134fb79cba3188a852206ef0473fee282a15") +set(unix_source_url "https://github.com/Kitware/CMake/releases/download/v3.31.9/cmake-3.31.9.tar.gz") +set(unix_source_sha256 "5d4fdec04247ca8a8e8f63692f0d0f1e9d6d082a2bdd008dff8ab3ba7215aa83") -set(windows_source_url "https://github.com/Kitware/CMake/releases/download/v4.1.2/cmake-4.1.2.zip") -set(windows_source_sha256 "2fac01cc2cd7f432554543f750fa7ec58ab1504ca097e4417958db11d9f7a559") +set(windows_source_url "https://github.com/Kitware/CMake/releases/download/v3.31.9/cmake-3.31.9.zip") +set(windows_source_sha256 "ccc7a506b2d9f878089ce0a8c2d71c71245e71bf560b0a539b134ae73f269e83") #----------------------------------------------------------------------------- # CMake binaries @@ -13,17 +13,17 @@ set(windows_source_sha256 "2fac01cc2cd7f432554543f750fa7ec58ab1504ca097e44179 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/v4.1.2/cmake-4.1.2-linux-x86_64.tar.gz") -set(linux64_binary_sha256 "773cc679c3a7395413bd096523f8e5d6c39f8718af4e12eb4e4195f72f35e4ab") +set(linux64_binary_url "https://github.com/Kitware/CMake/releases/download/v3.31.9/cmake-3.31.9-linux-x86_64.tar.gz") +set(linux64_binary_sha256 "312d78e0b7c5c9b4a97a87a46c3e525aa84895fe8135c238c4616bba73dc9518") -set(macos10_10_binary_url "https://github.com/Kitware/CMake/releases/download/v4.1.2/cmake-4.1.2-macos10.10-universal.tar.gz") -set(macos10_10_binary_sha256 "ec5dce73ff03191feb46032a9ae94a3c9410343cc1fa3cbdd054bb5d8951fc78") +set(macos10_10_binary_url "https://github.com/Kitware/CMake/releases/download/v3.31.9/cmake-3.31.9-macos10.10-universal.tar.gz") +set(macos10_10_binary_sha256 "709726f0c10c5b5255e9eeee2ac586cdaf7595b0070c7f35def15b1a38fa0c95") -set(win32_binary_url "https://github.com/Kitware/CMake/releases/download/v4.1.2/cmake-4.1.2-windows-i386.zip") -set(win32_binary_sha256 "5af2f262d20dbb7d3ecf1d0afa11563b8d1783ec7d05a016586e6cd6fd81e08a") +set(win32_binary_url "https://github.com/Kitware/CMake/releases/download/v3.31.9/cmake-3.31.9-windows-i386.zip") +set(win32_binary_sha256 "54accab85dbdd1b22a8d6b2d5483d3fb5f6dfe4c7d90b0d829cc046c375644a2") -set(win64_binary_url "https://github.com/Kitware/CMake/releases/download/v4.1.2/cmake-4.1.2-windows-x86_64.zip") -set(win64_binary_sha256 "82730741149681597510a4bc7095da1460b472dac24eaf9c23ad7440f47753ab") +set(win64_binary_url "https://github.com/Kitware/CMake/releases/download/v3.31.9/cmake-3.31.9-windows-x86_64.zip") +set(win64_binary_sha256 "dc16867d0c0ffb35026976aff119335d5b47def44e76ae82ffafdc1f98b3d59d") -set(winarm64_binary_url "https://github.com/Kitware/CMake/releases/download/v4.1.2/cmake-4.1.2-windows-arm64.zip") -set(winarm64_binary_sha256 "396bb14c77d12615dfbd666ef6ecd67d3442eb449c321aad25d738216fd9962d") +set(winarm64_binary_url "https://github.com/Kitware/CMake/releases/download/v3.31.9/cmake-3.31.9-windows-arm64.zip") +set(winarm64_binary_sha256 "45b319a85083cedb4e9e0ecc38c2747cdfde19954e645fd2137370e03c4b333a") diff --git a/README.rst b/README.rst index 8f000f69..2c0fd08a 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 4.1.2 `_. +The CMake python wheels provide `CMake 3.31.9 `_. Latest Release -------------- diff --git a/docs/index.rst b/docs/index.rst index f1704129..76d3ac54 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 4.1.2 `_. +The CMake python wheels provide `CMake 3.31.9 `_. .. toctree:: :maxdepth: 2 diff --git a/docs/make_a_release.rst b/docs/make_a_release.rst index bf364210..1658e681 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 4.1.2' 4.1.2 main - $ git push origin 4.1.2 + $ git tag --sign -m 'cmake-python-distributions 3.31.9' 3.31.9 main + $ git push origin 3.31.9 .. warning:: diff --git a/docs/update_cmake_version.rst b/docs/update_cmake_version.rst index aecda885..446b3c0b 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=4.1.2 + $ release=3.31.9 $ ./scripts/update_cmake_version.py $release - Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v4.1.2' + Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v3.31.9' [...] - Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v4.1.2' - done - Updating 'CMakeUrls.cmake' with CMake version 4.1.2 - Updating 'CMakeUrls.cmake' with CMake version 4.1.2 - done + Collecting URLs and SHA256s from 'https://api.github.com/repos/Kitware/CMake/releases/tags/v3.31.9' - done + Updating 'CMakeUrls.cmake' with CMake version 3.31.9 + Updating 'CMakeUrls.cmake' with CMake version 3.31.9 - 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=4.1.2 + release=3.31.9 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 608ac314..f7b7a912 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ backend-path = ["_build_backend"] [project] name = "cmake" -version = "4.1.2" +version = "3.31.9" 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 9ee82830..a1afa636 100644 --- a/tests/test_cmake.py +++ b/tests/test_cmake.py @@ -64,7 +64,7 @@ def _get_scripts(): @all_tools def test_cmake_script(tool): - expected_version = "4.1.2" + expected_version = "3.31.9" 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") @@ -72,6 +72,6 @@ def test_cmake_script(tool): def test_cmake_main(): - expected_version = "4.1.2" + expected_version = "3.31.9" 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}"