Prepare for 42.0.7 release (#10949)

* Prepare for 42.0.7 release

* Fix build with Rust nightly (#10936)

* Extra cfg
This commit is contained in:
Alex Gaynor 2024-05-06 12:37:54 -04:00 committed by GitHub
parent cfad00478a
commit 0cc7fc3843
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 32 additions and 5 deletions

View file

@ -326,7 +326,7 @@ jobs:
architecture: ${{ matrix.WINDOWS.ARCH }}
- uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8
with:
toolchain: stable
toolchain: 1.77.2
target: ${{ matrix.WINDOWS.RUST_TRIPLE }}
- uses: dawidd6/action-download-artifact@e7466d1a7587ed14867642c2ca74b5bcc1e19a2d # v3.0.0

View file

@ -1,6 +1,16 @@
Changelog
=========
.. _v42-0-7:
42.0.7 - 2024-05-06
~~~~~~~~~~~~~~~~~~~
* Restored Windows 7 compatibility for our pre-built wheels. Note that we do
not test on Windows 7 and wheels for our next release will not support it.
Microsoft no longer provides support for Windows 7 and users are encouraged
to upgrade.
.. _v42-0-6:
42.0.6 - 2024-05-04

View file

@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "cryptography"
version = "42.0.6"
version = "42.0.7"
authors = [
{name = "The Python Cryptographic Authority and individual contributors", email = "cryptography-dev@python.org"}
]

View file

@ -10,7 +10,7 @@ __all__ = [
"__copyright__",
]
__version__ = "42.0.6"
__version__ = "42.0.7"
__author__ = "The Python Cryptographic Authority and individual contributors"

View file

@ -6,6 +6,13 @@ use std::env;
#[allow(clippy::unusual_byte_groupings)]
fn main() {
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_OPENSSL_300_OR_GREATER)");
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_OPENSSL_320_OR_GREATER)");
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_IS_LIBRESSL)");
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_LIBRESSL_380_OR_GREATER)");
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_IS_BORINGSSL)");
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_OSSLCONF, values(\"OPENSSL_NO_IDEA\", \"OPENSSL_NO_CAST\", \"OPENSSL_NO_BF\", \"OPENSSL_NO_CAMELLIA\", \"OPENSSL_NO_SEED\", \"OPENSSL_NO_SM4\"))");
if let Ok(version) = env::var("DEP_OPENSSL_VERSION_NUMBER") {
let version = u64::from_str_radix(&version, 16).unwrap();

View file

@ -7,6 +7,8 @@ use std::path::Path;
use std::process::Command;
fn main() {
println!("cargo:rustc-check-cfg=cfg(python_implementation, values(\"CPython\", \"PyPy\"))");
let target = env::var("TARGET").unwrap();
let openssl_static = env::var("OPENSSL_STATIC")
.map(|x| x == "1")

View file

@ -5,6 +5,9 @@
use std::env;
fn main() {
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_IS_LIBRESSL)");
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_IS_BORINGSSL)");
if env::var("DEP_OPENSSL_LIBRESSL_VERSION_NUMBER").is_ok() {
println!("cargo:rustc-cfg=CRYPTOGRAPHY_IS_LIBRESSL");
}

View file

@ -6,6 +6,11 @@ use std::env;
#[allow(clippy::unusual_byte_groupings)]
fn main() {
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_OPENSSL_300_OR_GREATER)");
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_OPENSSL_320_OR_GREATER)");
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_IS_LIBRESSL)");
println!("cargo:rustc-check-cfg=cfg(CRYPTOGRAPHY_IS_BORINGSSL)");
if let Ok(version) = env::var("DEP_OPENSSL_VERSION_NUMBER") {
let version = u64::from_str_radix(&version, 16).unwrap();

View file

@ -6,4 +6,4 @@ __all__ = [
"__version__",
]
__version__ = "42.0.6"
__version__ = "42.0.7"

View file

@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
[project]
name = "cryptography_vectors"
version = "42.0.6"
version = "42.0.7"
authors = [
{name = "The Python Cryptographic Authority and individual contributors", email = "cryptography-dev@python.org"}
]