From 734ce733ed4ee5a9027ab32410bbd9dbd09a9bd3 Mon Sep 17 00:00:00 2001 From: messense Date: Sun, 11 Sep 2022 22:48:41 +0800 Subject: [PATCH] Remove default manifest path for `maturin sdist` command --- src/main.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index c3ba9a6ab..f5933fdc8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -102,14 +102,9 @@ enum Opt { /// This command is a workaround for [pypa/pip#6041](https://github.com/pypa/pip/issues/6041) #[clap(name = "sdist")] SDist { - #[clap( - short = 'm', - long = "manifest-path", - parse(from_os_str), - default_value = "Cargo.toml" - )] + #[clap(short = 'm', long = "manifest-path", parse(from_os_str))] /// The path to the Cargo.toml - manifest_path: PathBuf, + manifest_path: Option, /// The directory to store the built wheels in. Defaults to a new "wheels" /// directory in the project's target directory #[clap(short, long, parse(from_os_str))] @@ -413,7 +408,7 @@ fn run() -> Result<()> { let build_options = BuildOptions { out, cargo: CargoOptions { - manifest_path: Some(manifest_path), + manifest_path, ..Default::default() }, ..Default::default()