Revert "Using --build-backend in uv init implies --package (#8837)" (#8850)

This reverts commit 515993c743 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
This commit is contained in:
Zanie Blue
2024-11-05 19:36:11 -06:00
committed by GitHub
parent 8963de26a7
commit 129c6f61d4
+1 -1
View File
@@ -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"));