Skip to content

Default build tool after "uv init --package" #5

Description

@sha-huang

At the set-up stage at the start of Day 1, after running

uv init --package

The pyproject.toml file has the [build-system] specified as:

[build-system]
requires = ["uv_build>=a.bb.cc,<d.ee"]
build-backend = "uv-build"

Understand this is the default after July 2025. With this setting, uv will still look for src/agent_code though the src directory has been removed. Hence, suggest either one of the following two changes to docs/day-01-hello-agent.md

  1. When initiating the project, run
    uv init --package --build-backend hatchling

  2. Manually modify the pyproject.toml content to:

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions