From 129c6f61d4a4f87edf7b4da41d506944d553e4b6 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 5 Nov 2024 19:36:11 -0600 Subject: [PATCH] Revert "Using `--build-backend` in `uv init` implies `--package` (#8837)" (#8850) This reverts commit 515993c743fd7a8ad8636dde353676799ae1c542 from https://github.com/astral-sh/uv/pull/8837 as it was already implemented differently in https://github.com/astral-sh/uv/pull/8593 and I missed it --- crates/uv/src/commands/project/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uv/src/commands/project/init.rs b/crates/uv/src/commands/project/init.rs index 8498a85fd..f0144b070 100644 --- a/crates/uv/src/commands/project/init.rs +++ b/crates/uv/src/commands/project/init.rs @@ -643,7 +643,7 @@ impl InitProjectKind { let mut pyproject = pyproject_project(name, requires_python, author.as_ref(), no_readme); // Include additional project configuration for packaged applications - if package || build_backend.is_some() { + if package { // Since it'll be packaged, we can add a `[project.scripts]` entry pyproject.push('\n'); pyproject.push_str(&pyproject_project_scripts(name, name.as_str(), "main"));