Skip to content

Commit

Permalink
Explictly add readme to Cargo.toml of pyo3-pure
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
messense committed Oct 30, 2022
1 parent ae9acb9 commit a63574f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test-crates/pyo3-pure/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand All @@ -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",
Expand Down

0 comments on commit a63574f

Please sign in to comment.