Skip to content

Commit

Permalink
chore: update make_a_release too
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Jun 20, 2024
1 parent 238924b commit 45b93f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/make_a_release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ Prerequisites

.. code:: console
$ git tag --sign -m 'cmake-python-distributions 3.29.1' 3.29.1 main
$ git push origin 3.29.1
$ git tag --sign -m 'cmake-python-distributions 3.29.6' 3.29.6 main
$ git push origin 3.29.6
.. warning::

Expand Down
6 changes: 3 additions & 3 deletions scripts/update_cmake_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,9 @@ def update_pyproject_toml(version: str) -> set[str]:
return {filename}


def update_raw_versions(version: str) -> set[str]:
def update_raw_versions(version: str, filename: str) -> set[str]:
pattern = re.compile(r"\d\.\d+\.\d")
replacement = version
filename = "docs/update_cmake_version.rst"
_update_file(
ROOT_DIR / filename, pattern, replacement
)
Expand Down Expand Up @@ -239,7 +238,8 @@ def main() -> None:
filenames |= update_cmake_urls_script(args.cmake_version)
filenames |= update_docs(args.cmake_version)
filenames |= update_tests(args.cmake_version)
filenames |= update_raw_versions(args.cmake_version)
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)

if args.quiet:
Expand Down

0 comments on commit 45b93f4

Please sign in to comment.