Skip to content

Commit 9ee9fcd

Browse files
Merge pull request #61 from Annotation-Garden/copilot/migrate-from-pip-to-uv
Migrate from pip to uv for faster CI and Docker builds
2 parents 08d432a + 1bac5a6 commit 9ee9fcd

File tree

7 files changed

+27
-13
lines changed

7 files changed

+27
-13
lines changed

.github/workflows/publish-testpypi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ jobs:
6262
with:
6363
python-version: '3.12'
6464

65+
- name: Install uv
66+
uses: astral-sh/setup-uv@v4
67+
6568
- name: Install build dependencies
6669
run: |
67-
python -m pip install --upgrade pip
68-
pip install build twine
70+
uv pip install --system build twine
6971
7072
- name: Build package
7173
run: python -m build

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ jobs:
2626
with:
2727
python-version: '3.12'
2828

29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v4
31+
2932
- name: Install build dependencies
3033
run: |
31-
python -m pip install --upgrade pip
32-
pip install build twine
34+
uv pip install --system build twine
3335
3436
- name: Build package
3537
run: python -m build

.github/workflows/test.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ jobs:
1919
with:
2020
python-version: '3.12'
2121

22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v4
24+
2225
- name: Install linting tools
2326
run: |
24-
pip install ruff
27+
uv pip install --system ruff
2528
2629
- name: Lint with Ruff
2730
run: ruff check src tests
@@ -44,9 +47,12 @@ jobs:
4447
with:
4548
python-version: ${{ matrix.python-version }}
4649

50+
- name: Install uv
51+
uses: astral-sh/setup-uv@v4
52+
4753
- name: Install dependencies
4854
run: |
49-
pip install -e ".[dev]"
55+
uv pip install --system -e ".[dev]"
5056
5157
- name: Run unit tests (excluding integration)
5258
run: |
@@ -124,10 +130,13 @@ jobs:
124130
with:
125131
python-version: '3.12'
126132

133+
- name: Install uv
134+
uses: astral-sh/setup-uv@v4
135+
127136
- name: Install dependencies
128137
run: |
129-
pip install -e ".[dev]"
130-
pip install pytest-timeout
138+
uv pip install --system -e ".[dev]"
139+
uv pip install --system pytest-timeout
131140
132141
- name: Run integration tests only
133142
env:

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ COPY src/ ./src/
6161
COPY scripts/ ./scripts/
6262

6363
# Install Python dependencies with API extras (includes uvicorn, FastAPI, etc.)
64-
RUN pip install --no-cache-dir ".[api]"
64+
RUN pip install uv && \
65+
uv pip install --system --no-cache ".[api]"
6566

6667
# Set environment variables for HED resources (internal paths)
6768
ENV HED_SCHEMA_DIR=/app/hed-schemas/schemas_latest_json \

deploy/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ ENV GIT_COMMIT=${GIT_COMMIT}
4040

4141
# Copy requirements and install Python dependencies with API extras
4242
COPY pyproject.toml README.md /app/
43-
RUN pip install --no-cache-dir --upgrade pip && \
44-
pip install --no-cache-dir ".[api]"
43+
RUN pip install uv && \
44+
uv pip install --system --no-cache ".[api]"
4545

4646
# Copy the application code
4747
COPY src /app/src

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "hedit"
7-
version = "0.6.3a2"
7+
version = "0.6.3a3"
88
description = "Multi-agent system for HED annotation generation and validation"
99
readme = "PKG_README.md"
1010
requires-python = ">=3.12"

src/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Version information for HEDit."""
22

3-
__version__ = "0.6.3a2"
3+
__version__ = "0.6.3a3"
44
__version_info__ = (0, 6, 3, "alpha")
55

66

0 commit comments

Comments
 (0)