Skip to content

Commit 387ca00

Browse files
authored
Hopefully add Window / MacOS PyPy 3.10 / 3.11 support (#12559)
* Hopefully add Window / MacOS PyPy 3.10 / 3.11 support Don't exclude win_x86 . . * Cherry-pick 6606c83
1 parent 56cfce6 commit 387ca00

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.github/workflows/wheel-builder.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ jobs:
204204
DEPLOYMENT_TARGET: '10.13'
205205
_PYTHON_HOST_PLATFORM: 'macosx-10.9-x86_64'
206206
ARCHFLAGS: '-arch x86_64'
207+
- VERSION: 'pypy-3.11'
208+
BIN_PATH: 'pypy3'
209+
DEPLOYMENT_TARGET: '10.13'
210+
_PYTHON_HOST_PLATFORM: 'macosx-10.9-x86_64'
211+
ARCHFLAGS: '-arch x86_64'
207212
name: "${{ matrix.PYTHON.VERSION }} ABI ${{ matrix.PYTHON.ABI_VERSION }} macOS ${{ matrix.PYTHON.ARCHFLAGS }}"
208213
steps:
209214
- name: Get build-requirements.txt from repository
@@ -291,10 +296,13 @@ jobs:
291296
- {VERSION: "3.11", "ABI_VERSION": "py37"}
292297
- {VERSION: "3.11", "ABI_VERSION": "py39"}
293298
- {VERSION: "pypy-3.10"}
299+
- {VERSION: "pypy-3.11"}
294300
exclude:
295301
# We need to exclude the below configuration because there is no 32-bit pypy3
296302
- WINDOWS: {ARCH: 'x86', WINDOWS: 'win32', RUST_TRIPLE: 'i686-pc-windows-msvc'}
297303
PYTHON: {VERSION: "pypy-3.10"}
304+
- WINDOWS: {ARCH: 'x86', WINDOWS: 'win32', RUST_TRIPLE: 'i686-pc-windows-msvc'}
305+
PYTHON: {VERSION: "pypy-3.11"}
298306
name: "${{ matrix.PYTHON.VERSION }} ${{ matrix.WINDOWS.WINDOWS }} ${{ matrix.PYTHON.ABI_VERSION }}"
299307
steps:
300308
- name: Get build-requirements.txt from repository

src/rust/cryptography-x509/src/pkcs12.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub enum AttributeSet<'a> {
5555
#[derive(asn1::Asn1DefinedByWrite)]
5656
pub enum BagValue<'a> {
5757
#[defined_by(CERT_BAG_OID)]
58-
CertBag(CertBag<'a>),
58+
CertBag(Box<CertBag<'a>>),
5959

6060
#[defined_by(KEY_BAG_OID)]
6161
KeyBag(asn1::Tlv<'a>),

src/rust/src/pkcs12.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,14 +386,14 @@ fn cert_to_bag<'a>(
386386
) -> CryptographyResult<cryptography_x509::pkcs12::SafeBag<'a>> {
387387
Ok(cryptography_x509::pkcs12::SafeBag {
388388
_bag_id: asn1::DefinedByMarker::marker(),
389-
bag_value: asn1::Explicit::new(cryptography_x509::pkcs12::BagValue::CertBag(
389+
bag_value: asn1::Explicit::new(cryptography_x509::pkcs12::BagValue::CertBag(Box::new(
390390
cryptography_x509::pkcs12::CertBag {
391391
_cert_id: asn1::DefinedByMarker::marker(),
392392
cert_value: asn1::Explicit::new(cryptography_x509::pkcs12::CertType::X509(
393393
asn1::OctetStringEncoded::new(cert.raw.borrow_dependent().clone()),
394394
)),
395395
},
396-
)),
396+
))),
397397
attributes: pkcs12_attributes(friendly_name, local_key_id)?,
398398
})
399399
}

0 commit comments

Comments
 (0)