Skip to content

Commit 4b8430c

Browse files
authored
Merge branch 'pyca:main' into dm/mldsa65-aws-lc
2 parents 530aa92 + ce4ac8e commit 4b8430c

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/bin/bump_dependency.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ def version_key(tag: str) -> tuple[int, ...]:
3535
return sorted(tags, key=version_key)[-1]
3636

3737

38-
def get_current_version_from_file(file_path: str, pattern: str) -> str:
38+
def get_current_versions_from_file(file_path: str, pattern: str) -> list[str]:
3939
with open(file_path) as f:
4040
content = f.read()
4141

42-
match = re.search(pattern, content)
43-
return match.group(1)
42+
return re.findall(pattern, content)
4443

4544

4645
def update_file_version(
@@ -148,22 +147,23 @@ def main() -> int:
148147

149148
args = parser.parse_args()
150149

151-
current_version = get_current_version_from_file(
152-
args.file_path, args.current_version_pattern
153-
)
154-
155150
if args.tag:
156151
latest_version = get_remote_latest_tag(args.repo_url, args.tag_pattern)
157152
else:
158153
latest_version = get_remote_commit_sha(args.repo_url, args.branch)
159154

160-
if current_version == latest_version:
161-
print(f"{args.name}: No update needed (current: {current_version})")
155+
current_versions = get_current_versions_from_file(
156+
args.file_path, args.current_version_pattern
157+
)
158+
159+
if all(v == latest_version for v in current_versions):
160+
print(f"{args.name}: No update needed (current: {latest_version})")
162161
if not args.commit_message_fd:
163162
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
164163
f.write("HAS_UPDATES=false\n")
165164
return 0
166165

166+
current_version = next(v for v in current_versions if v != latest_version)
167167
print(
168168
f"{args.name}: Update available "
169169
f"({current_version} -> {latest_version})"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
CONFIG_FLAGS: ${{ matrix.PYTHON.OPENSSL.CONFIG_FLAGS }}
9898
if: matrix.PYTHON.OPENSSL
9999
- name: Load OpenSSL cache
100-
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
100+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
101101
id: ossl-cache
102102
timeout-minutes: 2
103103
with:

ci-constraints-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ build==1.2.2.post1 ; python_full_version < '3.9'
1818
# via
1919
# cryptography (pyproject.toml)
2020
# check-sdist
21-
build==1.4.1 ; python_full_version >= '3.9'
21+
build==1.4.2 ; python_full_version >= '3.9'
2222
# via
2323
# cryptography (pyproject.toml)
2424
# check-sdist
@@ -128,7 +128,7 @@ mypy==1.19.1 ; python_full_version >= '3.9'
128128
# via cryptography (pyproject.toml)
129129
mypy-extensions==1.1.0
130130
# via mypy
131-
nh3==0.3.3
131+
nh3==0.3.4
132132
# via readme-renderer
133133
nox==2026.2.9
134134
# via cryptography (pyproject.toml)

0 commit comments

Comments
 (0)