Skip to content

Commit 586607f

Browse files
committed
feat: Include python313.def into the crate
Generate `python313.dll.a` and `python313.lib` via unit tests.
1 parent 49d6ceb commit 586607f

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
@@ -256,6 +256,7 @@ impl ImportLibraryGenerator {
256256
Some((3, 10)) => ("python310.def", include_str!("python310.def")),
257257
Some((3, 11)) => ("python311.def", include_str!("python311.def")),
258258
Some((3, 12)) => ("python312.def", include_str!("python312.def")),
259+
Some((3, 13)) => ("python313.def", include_str!("python313.def")),
259260
_ => return Err(Error::new(ErrorKind::Other, "Unsupported Python version")),
260261
},
261262
PythonImplementation::PyPy => match self.version {
@@ -524,7 +525,7 @@ mod tests {
524525
.generate(&dir)
525526
.unwrap();
526527

527-
for minor in 7..=12 {
528+
for minor in 7..=13 {
528529
ImportLibraryGenerator::new("x86_64", "gnu")
529530
.version(Some((3, minor)))
530531
.generate(&dir)
@@ -563,7 +564,7 @@ mod tests {
563564
.generate(&dir)
564565
.unwrap();
565566

566-
for minor in 7..=12 {
567+
for minor in 7..=13 {
567568
ImportLibraryGenerator::new("x86_64", "msvc")
568569
.version(Some((3, minor)))
569570
.generate(&dir)

0 commit comments

Comments
 (0)