snap: pin cryptography to 3.4
Metadata
Current evaluation
Merged changes pinning cryptography to version 3.4, resolving a pip KeyError and build failure on s390x architecture during Snapcraft packaging. Approved and passed CI.
Suggested action: —
No scores available.
Issue body
Latest version that works with Snapcraft on all architectures with
current requirements.
E.g. on s390x with 3.4.1 it runs into an issue with pip:
```
Collecting PyYAML==5.3
Downloading PyYAML-5.3.tar.gz (268 kB)
ERROR: Exception:
Traceback (most recent call last):
File "/build/snapcraft-snapcraft-b7d60c/parts/snapcraft/install/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 171, in _merge_into_criterion
crit = self.state.criteria[name]
KeyError: 'pyyaml'
```
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged changes pinning cryptography to version 3.4, resolving a pip KeyError and build failure on s390x architecture during Snapcraft packaging. Approved and passed CI. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged pinning cryptography to version 3.4 to resolve a pip resolution error on s390x during Snapcraft builds. Code coverage remains unchanged. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged PR pinning cryptography to version 3.4. This resolves a pip resolution error causing a KeyError for PyYAML on s390x, ensuring stable Snapcraft builds across all architectures. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #619 setup, packaging: pin cryptography package and update dependencies | charmcraft | merged | Merged. Pins the cryptography package and updates dependencies to prevent build failures on armhf, ppc64el, and s390x architectures by avoiding versions requiring a Rust compiler. Approved and passed CI checks. | |
| #1091 snap: ensure cryptography builds correctly on all architectures | charmcraft | merged | Merged a temporary workaround fixing cryptography build failures across all architectures for the snap. Approved by one reviewer, the change modifies two files (+48/-9 lines). A more robust fix is planned. |