From b7c2836427480e81ed658334217f90df1ff85277 Mon Sep 17 00:00:00 2001 From: messense Date: Thu, 8 Jul 2021 21:41:51 +0800 Subject: [PATCH] Fix sdist error when VCS has dirty renamed files Fixes https://github.com/PyO3/maturin/issues/449#issuecomment-876448861 --- src/source_distribution.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/source_distribution.rs b/src/source_distribution.rs index 7f232ecfe..546b27804 100644 --- a/src/source_distribution.rs +++ b/src/source_distribution.rs @@ -124,12 +124,8 @@ fn add_crate_to_source_distribution( // and https://github.com/PyO3/maturin/issues/449 if target == Path::new("Cargo.toml.orig") || target == Path::new("Cargo.toml") { false - } else if target == Path::new(".cargo_vcs_info.json") - || target == Path::new("Cargo.lock") - { - source.exists() } else { - true + source.exists() } }) .collect();