Skip to content

Commit

Permalink
Revert "Fix maturin sdist --manifest-path <PATH> for workspace proj…
Browse files Browse the repository at this point in the history
…ect"

This reverts commit 54973be.
  • Loading branch information
messense committed Mar 14, 2022
1 parent 9d45e5b commit a2a8e31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* Package license files in `.dist-info/license_files` following PEP 639 in [#837](https://github.com/PyO3/maturin/pull/837)
* Stop testing Python 3.6 on CI since it's already EOL in [#840](https://github.com/PyO3/maturin/pull/840)
* Fix `maturin sdist --manifest-path <PATH>` for workspace project in [#843](https://github.com/PyO3/maturin/pull/843)

## [0.12.10] - 2022-03-09

Expand Down
10 changes: 2 additions & 8 deletions src/source_distribution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,9 @@ fn add_crate_to_source_distribution(
known_path_deps: &HashMap<String, PathDependency>,
root_crate: bool,
) -> Result<()> {
let crate_dir = manifest_path.as_ref().parent().with_context(|| {
format!(
"Can't get parent directory of {}",
manifest_path.as_ref().display()
)
})?;
let output = Command::new("cargo")
.args(&["package", "--list", "--allow-dirty"])
.current_dir(crate_dir)
.args(&["package", "--list", "--allow-dirty", "--manifest-path"])
.arg(manifest_path.as_ref())
.output()
.context("Failed to run `cargo package --list --allow-dirty`")?;
if !output.status.success() {
Expand Down

0 comments on commit a2a8e31

Please sign in to comment.