Skip to content

Package explicitly requested applications by default - #20773

Merged
zanieb merged 2 commits into
astral-sh:release/0.12.0from
zaniebot:zb/package-app-by-default
Jul 28, 2026
Merged

zanieb merged 2 commits into
astral-sh:release/0.12.0from
zaniebot:zb/package-app-by-default

Conversation

@zaniebot

Copy link
Copy Markdown
Contributor

With package-by-default enabled, uv init --app still implicitly selected the unpackaged application layout, so explicitly requesting an application produced a different project than uv init.

Apply the packaged default to explicitly requested applications as well, while retaining --no-package for applications that should remain unpackaged.

@zanieb
zanieb marked this pull request as ready for review July 28, 2026 16:55
@zanieb
zanieb merged commit 5f2fc7a into astral-sh:release/0.12.0 Jul 28, 2026
55 of 56 checks passed
@zanieb zanieb mentioned this pull request Jul 28, 2026
zanieb added a commit that referenced this pull request Jul 28, 2026
With package-by-default enabled, `uv init --app` still implicitly
selected the unpackaged application layout, so explicitly requesting an
application produced a different project than `uv init`.

Apply the packaged default to explicitly requested applications as well,
while retaining `--no-package` for applications that should remain
unpackaged.

---------

Co-authored-by: Zanie Blue <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants