Skip to content

Commit

Permalink
Fix sdist when all Cargo workspace members are excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Dec 7, 2022
1 parent 82aa66a commit 630c4c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* **Breaking Change**: Remove deprecated `python-source` option in `Cargo.toml` in [#1335](https://github.com/PyO3/maturin/pull/1335)
* **Breaking Change**: Turn `patchelf` version warning into a hard error in [#1335](https://github.com/PyO3/maturin/pull/1335)
* Support `SOURCE_DATE_EPOCH` when building wheels in [#1334](https://github.com/PyO3/maturin/pull/1334)
* Fix sdist when all Cargo workspace members are excluded in [#1343](https://github.com/PyO3/maturin/pull/1343)

## [0.14.4] - 2022-12-05

Expand Down
4 changes: 3 additions & 1 deletion src/source_distribution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ fn rewrite_cargo_toml(
}
if !new_members.is_empty() {
workspace["members"] = toml_edit::value(new_members);
rewritten = true;
} else {
workspace.remove("members");
}
rewritten = true;
}
}
}
Expand Down

0 comments on commit 630c4c7

Please sign in to comment.