Skip to content

Switch build backend from hatchling to uv_build#2

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-pyproject-uv-build
Draft

Switch build backend from hatchling to uv_build#2
Copilot wants to merge 2 commits intomainfrom
copilot/update-pyproject-uv-build

Conversation

Copy link
Contributor

Copilot AI commented Oct 15, 2025

Changes

Updated the build system configuration in pyproject.toml to use uv_build as the build backend instead of hatchling. This change aligns the build system with the project's use of uv for dependency management and provides a more integrated development experience.

Details

The modification updates the [build-system] section:

  • requires = ["hatchling"]requires = ["uv_build"]
  • build-backend = "hatchling.build"build-backend = "uv_build"

Benefits

  • Consistency: The project already uses uv for dependency management (uv sync, uv run), so using uv_build for building creates a unified toolchain
  • Simplicity: Reduces the number of external dependencies needed for the build process
  • Integration: uv build works seamlessly with the uv_build backend

Testing

All existing functionality has been verified:

  • ✅ Package builds successfully with uv build
  • ✅ Generated wheel and source distribution contain correct files
  • ✅ All tests pass
  • ✅ Entry points (e.g., train command) work correctly
  • ✅ No security vulnerabilities introduced

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command: curl -LsSf REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

On pyproject.toml, use uv build instead of hatchling


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: will-rice <25072137+will-rice@users.noreply.github.com>
Copilot AI changed the title [WIP] Update pyproject.toml to use uv build instead of hatchling Switch build backend from hatchling to uv_build Oct 15, 2025
Copilot AI requested a review from will-rice October 15, 2025 11:51
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