Skip to content

Commit e26653f

Browse files
committed
build(windows): use uv to manage dependencies
Move dependencies to the pyproject.toml file
1 parent a0d13f3 commit e26653f

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/windows_build.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,25 @@ jobs:
3636
- name: Checkout
3737
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3838

39-
- name: Set up Python ${{ matrix.python-version }}
40-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
39+
# https://docs.astral.sh/uv/guides/integration/github/
40+
- name: Install uv and set the python version
41+
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
4142
with:
42-
python-version: ${{ matrix.python-version }}
43+
python-version: ${{ matrix.python-version }}
44+
activate-environment: true
4345

4446
- name: Install dependencies
4547
run: |
46-
python -m pip install -U wheel pip
47-
python -m pip install -U pywin32
48-
python -m pip install -U pyinstaller packaging
48+
uv pip install .[win_dist]
4949
5050
- name: Download Inno Setup installer
5151
run: curl -L -o installer.exe http://files.jrsoftware.org/is/6/innosetup-6.3.3.exe
5252

5353
- name: Install Inno Setup
5454
run: ./installer.exe /verysilent /allusers /dir=inst
5555

56-
- name: Build ardupilot_methodic_configurator
56+
- name: List installed software versions
5757
run: |
58-
python -m pip install . --user
5958
python -m pip list
6059
6160
- name: Prepare installer

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ scripts = [
7979
"bs4",
8080
]
8181

82+
win_dist = [
83+
"wheel==0.45.1",
84+
"pip==25.1.1",
85+
"pywin32==310",
86+
"pyinstaller==6.13.0",
87+
"packaging==25.0",
88+
]
89+
8290
[project.scripts]
8391
ardupilot_methodic_configurator = "ardupilot_methodic_configurator.__main__:main"
8492
extract_param_defaults = "ardupilot_methodic_configurator.extract_param_defaults:main"

0 commit comments

Comments
 (0)