Skip to content

Commit 576c09d

Browse files
authored
Merge pull request #120 from bozemanpass/dboreham/uv-migration
Migrate to uv for build and packaging
2 parents 6c6b42d + 7d9f5fb commit 576c09d

19 files changed

Lines changed: 910 additions & 75 deletions

.envrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
. venv/bin/activate
1+
. .venv/bin/activate

.github/workflows/lint.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ jobs:
1515
steps:
1616
- name: "Clone project repository"
1717
uses: actions/checkout@v3
18-
- name: "Install Python"
19-
uses: actions/setup-python@v4
18+
- name: "Install uv"
19+
uses: astral-sh/setup-uv@v4
2020
with:
2121
python-version: '3.12'
22-
- name : "Run flake8"
23-
uses: py-actions/flake8@v2
22+
- name: "Install dependencies"
23+
run: uv sync
24+
- name: "Run flake8"
25+
run: uv run flake8 --config tox.ini

.github/workflows/publish.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,10 @@ jobs:
1818
run: |
1919
build_tag=$(./scripts/create_build_tag_file.sh)
2020
echo "build-tag=v${build_tag}" >> $GITHUB_OUTPUT
21-
- name: "Install Python"
22-
uses: actions/setup-python@v4
21+
- name: "Install uv"
22+
uses: astral-sh/setup-uv@v4
2323
with:
2424
python-version: '3.12'
25-
- name: "Print Python version"
26-
run: python3 --version
27-
- name: "Install shiv"
28-
run: pip install shiv
2925
- name: "Build local shiv package"
3026
id: build
3127
run: |

.github/workflows/test-deploy-k8s.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,12 @@ jobs:
1919
steps:
2020
- name: "Clone project repository"
2121
uses: actions/checkout@v3
22-
- name: "Install Python"
23-
uses: actions/setup-python@v4
22+
- name: "Install uv"
23+
uses: astral-sh/setup-uv@v4
2424
with:
2525
python-version: '3.12'
26-
- name: "Print Python version"
27-
run: python3 --version
2826
- name: "Print kind version"
2927
run: kind version
30-
- name: "Install shiv"
31-
run: pip install shiv
3228
- name: "Generate build version file"
3329
run: ./scripts/create_build_tag_file.sh
3430
- name: "Build local shiv package"

.github/workflows/test-deploy.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,10 @@ jobs:
1515
steps:
1616
- name: "Clone project repository"
1717
uses: actions/checkout@v3
18-
- name: "Install Python"
19-
uses: actions/setup-python@v4
18+
- name: "Install uv"
19+
uses: astral-sh/setup-uv@v4
2020
with:
2121
python-version: '3.12'
22-
- name: "Print Python version"
23-
run: python3 --version
24-
- name: "Install shiv"
25-
run: pip install shiv
2622
- name: "Generate build version file"
2723
run: ./scripts/create_build_tag_file.sh
2824
- name: "Build local shiv package"

.github/workflows/test-webapp.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,10 @@ jobs:
1515
steps:
1616
- name: "Clone project repository"
1717
uses: actions/checkout@v3
18-
- name: "Install Python"
19-
uses: actions/setup-python@v4
18+
- name: "Install uv"
19+
uses: astral-sh/setup-uv@v4
2020
with:
2121
python-version: '3.12'
22-
- name: "Print Python version"
23-
run: python3 --version
24-
- name: "Install shiv"
25-
run: pip install shiv
2622
- name: "Generate build version file"
2723
run: ./scripts/create_build_tag_file.sh
2824
- name: "Build local shiv package"

.github/workflows/test.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,10 @@ jobs:
1515
steps:
1616
- name: "Clone project repository"
1717
uses: actions/checkout@v3
18-
- name: "Install Python"
19-
uses: actions/setup-python@v4
18+
- name: "Install uv"
19+
uses: astral-sh/setup-uv@v4
2020
with:
2121
python-version: '3.12'
22-
- name: "Print Python version"
23-
run: python3 --version
24-
- name: "Install shiv"
25-
run: pip install shiv
2622
- name: "Generate build version file"
2723
run: ./scripts/create_build_tag_file.sh
2824
- name: "Build local shiv package"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.idea
22
venv
3+
.venv
34
.vscode
45
stack.egg-info
56
__pycache__

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

MANIFEST.in

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)