From a9983a06d341b35ede7258b7863c0d5fdb06ffca Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Sat, 1 Apr 2023 20:40:07 +0200 Subject: [PATCH 1/2] Add PyPy wheels for Windows temporary run workflow update --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4fbc1bb6..e53f0de92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -278,7 +278,7 @@ jobs: platform: linux - os: windows ls: dir - interpreter: 3.7 3.8 3.9 3.10 3.11 + interpreter: 3.7 3.8 3.9 3.10 3.11 pypy3.8 pypy3.9 - os: windows ls: dir target: i686 From 41aed1217e37f3a87b0b6a80082d887a94202d62 Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Mon, 3 Apr 2023 08:53:10 +0200 Subject: [PATCH 2/2] Add maturin generate-import-lib --- Cargo.lock | 10 ++++++++++ Cargo.toml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index cd646b4ef..58734d66f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -269,6 +269,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75439f995d07ddfad42b192dfcf3bc66a7ecfd8b4a1f5f6f046aa5c2c5d7677d" dependencies = [ "once_cell", + "python3-dll-a", "target-lexicon", ] @@ -305,6 +306,15 @@ dependencies = [ "syn", ] +[[package]] +name = "python3-dll-a" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a915bd72824962bf190bbd3e8a044cccb695d1409f73ff5493712eda5136c7a8" +dependencies = [ + "cc", +] + [[package]] name = "quote" version = "1.0.23" diff --git a/Cargo.toml b/Cargo.toml index fb70fedd8..078285ce0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ crate-type = ["cdylib", "rlib"] extension-module = ["pyo3/extension-module"] # required for cargo bench auto-initialize = ["pyo3/auto-initialize"] -default = ["mimalloc", "extension-module", "mimalloc/local_dynamic_tls"] +default = ["mimalloc", "extension-module", "mimalloc/local_dynamic_tls", "pyo3/generate-import-lib"] [package.metadata.maturin] name = "pydantic_core._pydantic_core"