Update to v45.0.2

This update includes two backwards-incompatible changes with v44:

  - Made SSH private key loading more consistent with other private key
    loading:
    :func:`~cryptography.hazmat.primitives.serialization.load_ssh_private_key`
    now raises a TypeError if the key is unencrypted but a password is
    provided (previously no exception was raised), and raises a
    TypeError if the key is encrypted but no password is provided
    (previously a ValueError was raised).
  - The :meth:`VerifiedClient.subject
    <cryptography.x509.verification.VerifiedClient.subjects>` property
    can now be None since a custom extension policy may allow
    certificates without a Subject Alternative Name extension.

Full changelog: https://github.com/pyca/cryptography/blob/45.0.2/CHANGELOG.rst
This commit is contained in:
Jeremy Cline 2025-05-19 10:49:48 -04:00
commit f06f4c2804
No known key found for this signature in database
4 changed files with 5 additions and 41 deletions

2
.gitignore vendored
View file

@ -69,3 +69,5 @@
/cryptography-43.0.0-vendor.tar.bz2
/cryptography-44.0.0.tar.gz
/cryptography-44.0.0-vendor.tar.bz2
/cryptography-45.0.2.tar.gz
/cryptography-45.0.2-vendor.tar.bz2

View file

@ -1,34 +0,0 @@
From 68369a6dbae71a9314ac0ecc8b88c435600cb4e9 Mon Sep 17 00:00:00 2001
From: Johan Andersson <johan.andersson@lime.tech>
Date: Tue, 3 Dec 2024 00:43:31 +0100
Subject: [PATCH] build: remove cargo.toml files from wheels
---
pyproject.toml | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/pyproject.toml b/pyproject.toml
index 4266e3bd5ba4..0378e78815e3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -101,15 +101,17 @@ include = [
"src/_cffi_src/**/*.c",
"src/_cffi_src/**/*.h",
- "**/Cargo.toml",
- "**/Cargo.lock",
+ "Cargo.toml",
+ "Cargo.lock",
+ "src/rust/**/Cargo.toml",
+ "src/rust/**/Cargo.lock",
"src/rust/**/*.rs",
"tests/**/*.py",
]
exclude = [
"vectors/**/*",
- "src/rust/target/**/*",
+ "target/**/*",
"docs/_build/**/*",
".github/**/*",
".readthedocs.yml",

View file

@ -5,7 +5,7 @@
%global srcname cryptography
Name: python-%{srcname}
Version: 44.0.0
Version: 45.0.2
Release: %autorelease
Summary: PyCA's cryptography library
@ -25,10 +25,6 @@ Source0: https://github.com/pyca/cryptography/archive/%{version}/%{srcnam
Source1: cryptography-%{version}-vendor.tar.bz2
Source2: conftest-skipper.py
# Merged for 45.0.0+
# https://github.com/pyca/cryptography/pull/12091
Patch: 12091.patch
ExclusiveArch: %{rust_arches}
BuildRequires: openssl-devel

View file

@ -1,2 +1,2 @@
SHA512 (cryptography-44.0.0.tar.gz) = 6a0320ef3ece42e5b501d5381f719e01cb20b2971f0334a8a37f7b9a941482399901500f59817bffb1da579673e7785741a3016f51ac3bbf9bec55ff5df611ad
SHA512 (cryptography-44.0.0-vendor.tar.bz2) = 53b52a5aac5de01ac878e5fb477e890b093e6886d8a0b210801402900000560d7a3b8a85414b81f0ff22aadf6f7bbd94ccace70666709197b97424207942af2b
SHA512 (cryptography-45.0.2.tar.gz) = c0393f7e75cf5bba3ae8b6deea00d2a27b097ab6c4a5b59727e76d0df537fbbb648bb1879cd85f26aff93e8f4bedfdf178090330dc42e7d1c939a4b4379443e0
SHA512 (cryptography-45.0.2-vendor.tar.bz2) = 5ff616412e65bd342d2b98110d0b058aaa1719ddf0d1a1164b49451b8f5bc49def81cf4913b6b4c2917f28a33cef28a74ad4391b303c2e36752b81f491a4da06