From c7148788c932f0547ffc5053a6e4c5ed4069797f Mon Sep 17 00:00:00 2001 From: Sergey Kvachonok Date: Tue, 10 May 2022 14:09:01 +0300 Subject: [PATCH 1/2] docs: Update crate level docs and package metadata --- Cargo.toml | 8 ++++---- LICENSE | 2 +- README.md | 15 +++++++-------- src/lib.rs | 13 +++++++------ 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 943b884..aa64a4d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,11 +2,11 @@ name = "python3-dll-a" version = "0.2.1" edition = "2021" -description = "Standalone python3.dll import library generator" +description = "Standalone python3(y).dll import library generator" repository = "https://github.com/pyo3/python3-dll-a" -authors = ["Sergey Kvachonok ", "messense "] -license = "MIT AND PSF-2.0" -keywords = ["build-dependencies", "python", "windows", "mingw"] +authors = ["Sergey Kvachonok ", "messense ", "Adam Reichold "] +license = "MIT" +keywords = ["build-dependencies", "python", "windows", "mingw", "msvc"] categories = ["development-tools::build-utils"] readme = "README.md" diff --git a/LICENSE b/LICENSE index de5c0e5..0c4eaff 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Sergey Kvachonok, Adam Reichold +Copyright (c) 2022 Sergey Kvachonok, Adam Reichold, messense Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c10dae3..96aad7b 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,19 @@ -Standalone `python3.dll` import library generator -================================================= +Standalone `python3(y).dll` import library generator +==================================================== -Generates import libraries for the Stable ABI Python DLL +Generates import libraries for the Python DLL +(either `python3.dll` or `python3y.dll`) for MinGW-w64 and MSVC (cross-)compile targets. -See for details. +See for the Stable ABI details. This crate **does not require** Python 3 distribution files to be present on the (cross-)compile host system. -**Note:** MSVC (cross-)compile targets require LLVM binutils +**Note:** MSVC cross-compile targets require LLVM binutils to be available on the host system. More specifically, `python3-dll-a` requires `llvm-dlltool` executable -to be present in `PATH` when targeting `*-pc-windows-msvc`. +to be present in `PATH` when targeting `*-pc-windows-msvc` from Linux. PyO3 integration ---------------- @@ -79,7 +80,5 @@ This crate embeds Module-Defitions based on the `stable_abi.toml` file from CPyt The upstream version of this file is located in the [CPython project][cpython] repository under the path `Misc/stable_abi.toml`. -This file should be updated for every subsequent CPython release -(e.g. for CPython 3.12). [cpython]: https://github.com/python/cpython/blob/main/Misc/stable_abi.toml diff --git a/src/lib.rs b/src/lib.rs index 4944af2..070702a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,18 +1,19 @@ -//! Standalone `python3.dll` import library generator -//! ================================================= +//! Standalone `python3(y).dll` import library generator +//! ==================================================== //! -//! Generates import libraries for the Stable ABI Python DLL +//! Generates import libraries for the Python DLL +//! (either `python3.dll` or `python3y.dll`) //! for MinGW-w64 and MSVC (cross-)compile targets. //! -//! See for details. +//! See for the Stable ABI details. //! //! This crate **does not require** Python 3 distribution files //! to be present on the (cross-)compile host system. //! -//! **Note:** MSVC (cross-)compile targets require LLVM binutils +//! **Note:** MSVC cross-compile targets require LLVM binutils //! to be available on the host system. //! More specifically, `python3-dll-a` requires `llvm-dlltool` executable -//! to be present in `PATH` when targeting `*-pc-windows-msvc`. +//! to be present in `PATH` when targeting `*-pc-windows-msvc` from Linux. //! //! PyO3 integration //! ---------------- From 121c7b625c5542a7772b577807ba73442830f567 Mon Sep 17 00:00:00 2001 From: Sergey Kvachonok Date: Tue, 10 May 2022 14:21:00 +0300 Subject: [PATCH 2/2] release: Prepare for v0.2.2 Bump the crate version and update the ChangeLog. --- CHANGELOG.md | 11 +++++++++++ Cargo.toml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d2111d..3a81a71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file. +## [0.2.2] - 2022-05-10 + +### Features + +- Include `python3.def` itself in the Rust source in [#10](https://github.com/pyo3/python3-dll-a/pull/10) +- Add support for generating non-abi3 `pythonXY.dll` in [#15](https://github.com/pyo3/python3-dll-a/pull/15) + +### CI + +- Automate `stable_abi.txt` updates in [#6](https://github.com/pyo3/python3-dll-a/pull/6) + ## [0.2.1] - 2022-04-17 ### Features diff --git a/Cargo.toml b/Cargo.toml index aa64a4d..ea2d6ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "python3-dll-a" -version = "0.2.1" +version = "0.2.2" edition = "2021" description = "Standalone python3(y).dll import library generator" repository = "https://github.com/pyo3/python3-dll-a"