From a63574fd75662c2db852131ffa65973b93de9293 Mon Sep 17 00:00:00 2001 From: messense Date: Sun, 30 Oct 2022 16:13:23 +0800 Subject: [PATCH] Explictly add `readme` to `Cargo.toml` of `pyo3-pure` Otherwise it might add `README.md` to sdist on case-insensitive fs like macOS. TODO: fix https://github.com/PyO3/maturin/blob/e8b6df4ca64078715966659cf96e7c737a84c155/src/metadata.rs#L315-L330 to consider fs case sensitivity? --- test-crates/pyo3-pure/Cargo.toml | 1 + tests/run.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test-crates/pyo3-pure/Cargo.toml b/test-crates/pyo3-pure/Cargo.toml index ed8864658..fae9e64a9 100644 --- a/test-crates/pyo3-pure/Cargo.toml +++ b/test-crates/pyo3-pure/Cargo.toml @@ -5,6 +5,7 @@ version = "2.1.2" edition = "2018" description = "Implements a dummy function (get_fortytwo.DummyClass.get_42()) in rust" license = "MIT" +readme = "Readme.md" [dependencies] pyo3 = { version = "0.17.2", features = ["abi3-py37", "extension-module", "generate-import-lib"] } diff --git a/tests/run.rs b/tests/run.rs index 452cada80..ab2736372 100644 --- a/tests/run.rs +++ b/tests/run.rs @@ -387,6 +387,7 @@ fn workspace_members_non_local_dep_sdist() { edition = "2018" description = "Implements a dummy function (get_fortytwo.DummyClass.get_42()) in rust" license = "MIT" + readme = "Readme.md" [dependencies] pyo3 = { version = "0.17.2", features = ["abi3-py37", "extension-module", "generate-import-lib"] } @@ -403,7 +404,6 @@ fn workspace_members_non_local_dep_sdist() { "pyo3_pure-0.1.0+abc123de/Cargo.toml", "pyo3_pure-0.1.0+abc123de/LICENSE", "pyo3_pure-0.1.0+abc123de/PKG-INFO", - "pyo3_pure-0.1.0+abc123de/README.md", "pyo3_pure-0.1.0+abc123de/Readme.md", "pyo3_pure-0.1.0+abc123de/check_installed/check_installed.py", "pyo3_pure-0.1.0+abc123de/pyo3_pure.pyi",