Skip to content

chore: replace hatchling with uv_build as the build backend#54

Merged
quettabit merged 1 commit into
mainfrom
qb/uv-build
May 18, 2026
Merged

chore: replace hatchling with uv_build as the build backend#54
quettabit merged 1 commit into
mainfrom
qb/uv-build

Conversation

@quettabit

Copy link
Copy Markdown
Member

No description provided.

@quettabit quettabit marked this pull request as ready for review May 18, 2026 16:32
@quettabit quettabit requested a review from a team as a code owner May 18, 2026 16:32
@greptile-apps

greptile-apps Bot commented May 18, 2026

Copy link
Copy Markdown

Greptile Summary

Replaces hatchling with uv_build as the build backend. The explicit [tool.hatch.build.targets.wheel] stanza pointing at src/s2_sdk is removed because uv_build defaults to src/<normalized-package-name>, and s2-sdk normalizes to s2_sdk, so discovery works without any extra config.

  • The version pin >=0.11.14,<0.12 matches uv's own documentation recommendation to ensure reproducible builds across uv releases.
  • No other build-related configuration ([tool.uv.build-backend], module-root, etc.) is needed since this is a standard single-module src layout.

Confidence Score: 5/5

Safe to merge — the change is a straightforward build backend swap with no logic, API, or runtime behavior affected.

The only file changed is pyproject.toml. The new backend's default src-layout discovery correctly maps to the existing src/s2_sdk/ structure without any additional configuration, and the version pin follows uv's own published guidance.

No files require special attention.

Important Files Changed

Filename Overview
pyproject.toml Switches build backend from hatchling to uv_build; removes explicit wheel target config since uv_build discovers src/s2_sdk automatically via its default src-layout convention.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["uv build / pip wheel"] --> B["[build-system] in pyproject.toml"]
    B --> C["uv_build backend"]
    C --> D["Normalize project name\ns2-sdk → s2_sdk"]
    D --> E["Default module root: src/"]
    E --> F["Discover src/s2_sdk/__init__.py"]
    F --> G["Build wheel / sdist"]
Loading

Reviews (1): Last reviewed commit: "initial commit" | Re-trigger Greptile

@quettabit quettabit changed the title chore: switch to uv_build from hatchling as the build backend chore: replace hatchling with uv_build as the build backend May 18, 2026
@quettabit quettabit merged commit d7b16fd into main May 18, 2026
11 checks passed
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.

1 participant