Skip to content

Commit 9d12466

Browse files
authored
Fix PyPy 3.10 support (#46)
1 parent 66b5507 commit 9d12466

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ impl ImportLibraryGenerator {
262262
Some((3, 7)) => ("libpypy3-c.def", include_str!("libpypy3-c.def")),
263263
Some((3, 8)) => ("libpypy3-c.def", include_str!("libpypy3-c.def")),
264264
Some((3, 9)) => ("libpypy3.9-c.def", include_str!("libpypy3.9-c.def")),
265+
Some((3, 10)) => ("libpypy3.10-c.def", include_str!("libpypy3.10-c.def")),
265266
_ => return Err(Error::new(ErrorKind::Other, "Unsupported PyPy version")),
266267
},
267268
};
@@ -531,7 +532,7 @@ mod tests {
531532
}
532533

533534
// PyPy
534-
for minor in 7..=9 {
535+
for minor in 7..=10 {
535536
ImportLibraryGenerator::new("x86_64", "gnu")
536537
.version(Some((3, minor)))
537538
.implementation(PythonImplementation::PyPy)
@@ -570,7 +571,7 @@ mod tests {
570571
}
571572

572573
// PyPy
573-
for minor in 7..=9 {
574+
for minor in 7..=10 {
574575
ImportLibraryGenerator::new("x86_64", "msvc")
575576
.version(Some((3, minor)))
576577
.implementation(PythonImplementation::PyPy)

0 commit comments

Comments
 (0)