Skip to content

Commit

Permalink
feat: Include python313.def into the crate
Browse files Browse the repository at this point in the history
Generate `python313.dll.a` and `python313.lib` via unit tests.
  • Loading branch information
ravenexp committed Jun 24, 2024
1 parent 49d6ceb commit 586607f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ impl ImportLibraryGenerator {
Some((3, 10)) => ("python310.def", include_str!("python310.def")),
Some((3, 11)) => ("python311.def", include_str!("python311.def")),
Some((3, 12)) => ("python312.def", include_str!("python312.def")),
Some((3, 13)) => ("python313.def", include_str!("python313.def")),
_ => return Err(Error::new(ErrorKind::Other, "Unsupported Python version")),
},
PythonImplementation::PyPy => match self.version {
Expand Down Expand Up @@ -524,7 +525,7 @@ mod tests {
.generate(&dir)
.unwrap();

for minor in 7..=12 {
for minor in 7..=13 {
ImportLibraryGenerator::new("x86_64", "gnu")
.version(Some((3, minor)))
.generate(&dir)
Expand Down Expand Up @@ -563,7 +564,7 @@ mod tests {
.generate(&dir)
.unwrap();

for minor in 7..=12 {
for minor in 7..=13 {
ImportLibraryGenerator::new("x86_64", "msvc")
.version(Some((3, minor)))
.generate(&dir)
Expand Down

0 comments on commit 586607f

Please sign in to comment.