Skip to content

Commit c7c6e45

Browse files
authored
Always use version tag in pybind11 dependency update (#517)
Always use the version tag for pybind11 as we don't want to track updates on a weekly basis. Related PRs: - #474 - #486 @ax3l Does this fix the issue that we discussed offline?
1 parent 8c34e68 commit c7c6e45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

update_dependencies.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ def update(args):
8989
else:
9090
# latest available tag (index 0) for all other dependencies
9191
repo_version_tag = tags_list_filtered[0]["name"]
92-
# use version tag instead of commit sha for a release update
93-
new_commit_sha = repo_version_tag if args.release else repo_commit_sha
92+
# use version tag instead of commit sha for a release update or for pybind11
93+
use_version_tag = args.release or (repo_name == "pybind11")
94+
new_commit_sha = repo_version_tag if use_version_tag else repo_commit_sha
9495
# update commit
9596
if repo_name != "pyamrex":
9697
print(f"- old commit: {dependencies_data[commit_key]}")

0 commit comments

Comments
 (0)