Skip to content

Commit

Permalink
Fix duplicated Cargo.toml of local dependencies in sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Sep 18, 2022
1 parent fb130c9 commit a017b98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* Fix `Cargo.toml` in new project template in [#1109](https://github.com/PyO3/maturin/pull/1109)
* Fix `maturin develop` on Windows when using Python installed from msys2 in [#1112](https://github.com/PyO3/maturin/pull/1112)
* Fix duplicated `Cargo.toml` of local dependencies in sdist in [#1114](https://github.com/PyO3/maturin/pull/1114)

## [0.13.3] - 2022-09-15

Expand Down
4 changes: 1 addition & 3 deletions src/source_distribution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ fn add_crate_to_source_distribution(
.filter(|(target, source)| {
// Skip generated files. See https://github.com/rust-lang/cargo/issues/7938#issuecomment-593280660
// and https://github.com/PyO3/maturin/issues/449
if target == Path::new("Cargo.toml.orig")
|| (root_crate && target.file_name() == Some("Cargo.toml".as_ref()))
{
if target == Path::new("Cargo.toml.orig") || target == Path::new("Cargo.toml") {
false
} else {
source.exists()
Expand Down

0 comments on commit a017b98

Please sign in to comment.