Skip to content

Commit 7d53f81

Browse files
alexrashedclaude
andcommitted
ci: constrain cryptography<49 only on macos-15-intel runner
Move the pin out of requirements.txt (which affects all platforms) and into a runner-specific PIP_CONSTRAINT set via GITHUB_ENV. All other runners continue to get the latest cryptography. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ba22e35 commit 7d53f81

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ jobs:
4545
with:
4646
python-version-file: .python-version
4747

48+
- name: Pin cryptography on macOS Intel
49+
# cryptography 49+ dropped macOS x86_64 wheel support and uses AWS-LC as its
50+
# Rust backend, producing a _rust.abi3.so that references _SSL_get0_group_name
51+
# — a symbol absent from the standard OpenSSL libssl.3.dylib that PyInstaller
52+
# bundles. Constrain to <49 to get the last universal2 wheel with bundled OpenSSL.
53+
if: matrix.runner == 'macos-15-intel'
54+
run: |
55+
echo "cryptography<49" > "$RUNNER_TEMP/constraints.txt"
56+
echo "PIP_CONSTRAINT=$RUNNER_TEMP/constraints.txt" >> "$GITHUB_ENV"
57+
4858
# Add a retry to avoid issues when this action is running
4959
# right after the package is published on PyPi
5060
# (and might not be distributed in the CDN yet)

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
pyinstaller
22
localstack==2026.5.0
33
cookiecutter==2.6.0
4-
cryptography<49

0 commit comments

Comments
 (0)