From 782516002031377912098b9218d7bc196a8b584e Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 30 Sep 2026 11:18:35 +0000 Subject: [PATCH 1/2] [50.0.x] Bump for 50.0.2 release + changelog Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FAY1qMQzUfataGR3NBtbsH --- CHANGELOG.rst | 10 ++++++++++ Cargo.lock | 16 ++++++++-------- Cargo.toml | 2 +- docs/spelling_wordlist.txt | 1 + pyproject.toml | 4 ++-- src/cryptography/__about__.py | 2 +- vectors/cryptography_vectors/__about__.py | 2 +- vectors/pyproject.toml | 2 +- 8 files changed, 25 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8262740cada1..7b9639568558 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,16 @@ Changelog ========= +.. _v50-0-2: + +50.0.2 - 2026-09-30 +~~~~~~~~~~~~~~~~~~~ + +* Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 4.0.3. +* Added ``abi3.abi3t`` wheels for free-threaded CPython 3.15 and later. +* Updated to PyO3 0.29.2, which fixes building ``cryptography`` on Cygwin and + MSYS2. + .. _v50-0-1: 50.0.1 - 2026-08-25 diff --git a/Cargo.lock b/Cargo.lock index 1ed4e16ff15f..82eb5e6da3ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -53,7 +53,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "cryptography-cffi" -version = "0.50.1" +version = "0.50.2" dependencies = [ "cc", "openssl-sys", @@ -63,21 +63,21 @@ dependencies = [ [[package]] name = "cryptography-crypto" -version = "0.50.1" +version = "0.50.2" dependencies = [ "openssl", ] [[package]] name = "cryptography-keepalive" -version = "0.50.1" +version = "0.50.2" dependencies = [ "pyo3", ] [[package]] name = "cryptography-key-parsing" -version = "0.50.1" +version = "0.50.2" dependencies = [ "asn1", "cfg-if", @@ -91,7 +91,7 @@ dependencies = [ [[package]] name = "cryptography-openssl" -version = "0.50.1" +version = "0.50.2" dependencies = [ "cfg-if", "foreign-types", @@ -102,7 +102,7 @@ dependencies = [ [[package]] name = "cryptography-rust" -version = "0.50.1" +version = "0.50.2" dependencies = [ "asn1", "base64", @@ -125,14 +125,14 @@ dependencies = [ [[package]] name = "cryptography-x509" -version = "0.50.1" +version = "0.50.2" dependencies = [ "asn1", ] [[package]] name = "cryptography-x509-verification" -version = "0.50.1" +version = "0.50.2" dependencies = [ "asn1", "cryptography-x509", diff --git a/Cargo.toml b/Cargo.toml index 704cab11930f..41deb3e22018 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ members = [ ] [workspace.package] -version = "0.50.1" +version = "0.50.2" authors = ["The cryptography developers "] edition = "2021" publish = false diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt index 6ac6827ed305..d574b71ec931 100644 --- a/docs/spelling_wordlist.txt +++ b/docs/spelling_wordlist.txt @@ -35,6 +35,7 @@ criticalities crypto cryptographic cryptographically +Cygwin de Debian deallocated diff --git a/pyproject.toml b/pyproject.toml index b56cda9dfca7..d23088eb5d92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ build-backend = "maturin" [project] name = "cryptography" -version = "50.0.1" +version = "50.0.2" authors = [ { name = "The Python Cryptographic Authority and individual contributors", email = "cryptography-dev@python.org" }, ] @@ -76,7 +76,7 @@ dev = [ ] nox = ["nox[uv] >=2024.04.15"] test = [ - "cryptography_vectors==50.0.1", + "cryptography_vectors==50.0.2", "pytest >=7.4.0", "pytest-benchmark >=4.0", "pytest-cov >=2.10.1", diff --git a/src/cryptography/__about__.py b/src/cryptography/__about__.py index d6fc1ae93164..53f1d8e08373 100644 --- a/src/cryptography/__about__.py +++ b/src/cryptography/__about__.py @@ -10,7 +10,7 @@ "__version__", ] -__version__ = "50.0.1" +__version__ = "50.0.2" __author__ = "The Python Cryptographic Authority and individual contributors" diff --git a/vectors/cryptography_vectors/__about__.py b/vectors/cryptography_vectors/__about__.py index 1e90827016f6..f81519926c21 100644 --- a/vectors/cryptography_vectors/__about__.py +++ b/vectors/cryptography_vectors/__about__.py @@ -6,4 +6,4 @@ "__version__", ] -__version__ = "50.0.1" +__version__ = "50.0.2" diff --git a/vectors/pyproject.toml b/vectors/pyproject.toml index 1a87b699188d..aeeae14c51dc 100644 --- a/vectors/pyproject.toml +++ b/vectors/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "uv_build" [project] name = "cryptography_vectors" -version = "50.0.1" +version = "50.0.2" authors = [ {name = "The Python Cryptographic Authority and individual contributors", email = "cryptography-dev@python.org"} ] From 9cc871ebf004e0a1a19d041ca98608221f482959 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 3 Sep 2026 10:18:48 -0400 Subject: [PATCH 2/2] [50.0.x] Fix nightly cargo unused_dependencies warning in cryptography-cffi (#15585) * Fix nightly cargo unused_dependencies warning in cryptography-cffi The new `cargo::unused_dependencies` lint (stabilized alongside `[lints.cargo]` in Rust 1.100) flags `openssl-sys` in cryptography-cffi because nothing in the crate references it. The dependency is required though: its build script reads `DEP_OPENSSL_INCLUDE` to compile the CFFI-generated C code against the right OpenSSL headers, and Cargo only exports a `links` crate's metadata to its immediate dependents. Mark the dependency as intentional with `use openssl_sys as _;`. * Shorten the openssl-sys dependency comment (cherry picked from commit b3f5a1295d289c13488e09782a5bab95e6cf1b73) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FAY1qMQzUfataGR3NBtbsH --- src/rust/cryptography-cffi/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rust/cryptography-cffi/src/lib.rs b/src/rust/cryptography-cffi/src/lib.rs index a54dcafa57d7..ca32a7bf29dd 100644 --- a/src/rust/cryptography-cffi/src/lib.rs +++ b/src/rust/cryptography-cffi/src/lib.rs @@ -4,6 +4,11 @@ #![deny(rust_2018_idioms, clippy::undocumented_unsafe_blocks)] +// Not called directly, but `build.rs` needs `DEP_OPENSSL_INCLUDE`, which +// Cargo only exposes to immediate dependents of `openssl-sys`. This `use` +// keeps `cargo::unused_dependencies` from flagging it. +use openssl_sys as _; + #[cfg(python_implementation = "PyPy")] extern "C" { fn Cryptography_make_openssl_module() -> std::os::raw::c_int;