Skip to content

Commit

Permalink
Merge #1573
Browse files Browse the repository at this point in the history
1573: Fix module_writers::write_python_part include target check r=messense a=viccie30

It is only called from functions that create wheels, not sdists.

Co-authored-by: Victor Westerhuis <victor.westerhuis@alliander.com>
  • Loading branch information
bors[bot] and viccie30 authored Apr 20, 2023
2 parents 277dbcd + bcb208f commit d6fd8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ pub fn write_python_part(
if let Some(glob_patterns) = pyproject.include() {
for pattern in glob_patterns
.iter()
.filter_map(|glob_pattern| glob_pattern.targets(Format::Sdist))
.filter_map(|glob_pattern| glob_pattern.targets(Format::Wheel))
{
eprintln!("📦 Including files matching \"{pattern}\"");
for source in glob::glob(&pyproject_dir.join(pattern).to_string_lossy())
Expand Down

0 comments on commit d6fd8e2

Please sign in to comment.