Skip to content

Commit 3d7f33b

Browse files
committed
fix(ci): remove --no-build-isolation so uv can fetch hatchling build backend
uv sync/build --no-build-isolation requires the build backend to already be importable inside the venv. Since hatchling was only pip-installed into the system Python (not the venv uv creates), the editable install failed with ModuleNotFoundError. Letting uv handle build isolation naturally resolves hatchling from the configured index. Also unpins uv in publish.yml to match ci.yml (commit 4f058b3).
1 parent 343a09d commit 3d7f33b

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2323
with:
2424
python-version: "3.11"
25-
- run: pip install uv hatchling
25+
- run: pip install uv
2626
- name: Authenticate with Artifactory
2727
if: ${{ !github.event.pull_request.head.repo.fork }}
2828
uses: ./.github/actions/artifactory-oidc
29-
- run: uv sync --frozen --all-extras --no-build-isolation
29+
- run: uv sync --frozen --all-extras
3030
- run: uv run ruff check .
3131
- run: uv run ruff format --check .
3232

@@ -42,11 +42,11 @@ jobs:
4242
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
4343
with:
4444
python-version: ${{ matrix.python-version }}
45-
- run: pip install uv hatchling
45+
- run: pip install uv
4646
- name: Authenticate with Artifactory
4747
if: ${{ !github.event.pull_request.head.repo.fork }}
4848
uses: ./.github/actions/artifactory-oidc
49-
- run: uv sync --frozen --all-extras --no-build-isolation
49+
- run: uv sync --frozen --all-extras
5050
- run: uv run pytest
5151

5252
build:
@@ -57,12 +57,12 @@ jobs:
5757
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
5858
with:
5959
python-version: "3.11"
60-
- run: pip install uv hatchling
60+
- run: pip install uv
6161
- name: Authenticate with Artifactory
6262
if: ${{ !github.event.pull_request.head.repo.fork }}
6363
uses: ./.github/actions/artifactory-oidc
6464
- name: Build package
65-
run: uv build --no-build-isolation
65+
run: uv build
6666
- name: Verify installable
6767
run: |
6868
python -m venv test-env

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2828
with:
2929
python-version: ${{ matrix.python-version }}
30-
- run: pip install uv==0.9.26
30+
- run: pip install uv
3131
- run: uv sync --frozen --all-extras
3232
- run: uv run pytest
3333

@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
4949
with:
5050
python-version: "3.12"
51-
- run: pip install uv==0.9.26
51+
- run: pip install uv
5252

5353
- name: Validate tag format and version match
5454
run: |

0 commit comments

Comments
 (0)