Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ impl ImportLibraryGenerator {
None => ("python313.def", include_str!("python313.def")),
_ => return Err(Error::new(ErrorKind::Other, "Unsupported Python ABI flags")),
},
Some((3, 14)) => match self.abiflags.as_deref() {
Some("t") => ("python314t.def", include_str!("python314t.def")),
None => ("python314.def", include_str!("python314.def")),
_ => return Err(Error::new(ErrorKind::Other, "Unsupported Python ABI flags")),
},
_ => return Err(Error::new(ErrorKind::Other, "Unsupported Python version")),
},
PythonImplementation::PyPy => match self.version {
Expand Down Expand Up @@ -561,15 +566,15 @@ mod tests {
.generate(&dir)
.unwrap();

for minor in 7..=13 {
for minor in 7..=14 {
ImportLibraryGenerator::new("x86_64", "gnu")
.version(Some((3, minor)))
.generate(&dir)
.unwrap();
}

// Free-threaded CPython v3.13+
for minor in 13..=13 {
for minor in 13..=14 {
ImportLibraryGenerator::new("x86_64", "gnu")
.version(Some((3, minor)))
.abiflags(Some("t"))
Expand Down Expand Up @@ -609,15 +614,15 @@ mod tests {
.generate(&dir)
.unwrap();

for minor in 7..=13 {
for minor in 7..=14 {
ImportLibraryGenerator::new("x86_64", "msvc")
.version(Some((3, minor)))
.generate(&dir)
.unwrap();
}

// Free-threaded CPython v3.13+
for minor in 13..=13 {
for minor in 13..=14 {
ImportLibraryGenerator::new("x86_64", "msvc")
.version(Some((3, minor)))
.abiflags(Some("t"))
Expand Down Expand Up @@ -656,15 +661,15 @@ mod tests {
.generate(&dir)
.unwrap();

for minor in 7..=13 {
for minor in 7..=14 {
ImportLibraryGenerator::new("aarch64", "msvc")
.version(Some((3, minor)))
.generate(&dir)
.unwrap();
}

// Free-threaded CPython v3.13+
for minor in 13..=13 {
for minor in 13..=14 {
let mut generator = ImportLibraryGenerator::new("aarch64", "msvc");
generator.version(Some((3, minor))).abiflags(Some("t"));
let implib_file_path = generator.implib_file_path(&dir, IMPLIB_EXT_MSVC);
Expand Down
Loading