Skip to content

Commit 706b994

Browse files
committed
Build: simplified CI setup
Signed-off-by: Tim Lehr <tim.lehr@disneyanimation.com>
1 parent 75f1ebc commit 706b994

File tree

2 files changed

+12
-61
lines changed

2 files changed

+12
-61
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,12 @@ jobs:
150150
path: |
151151
build_win64/Release/*
152152
build_win64/Debug/*
153-
Linux_Python_Wheels:
154-
runs-on: ubuntu-latest
153+
package_wheels:
154+
runs-on: ${{ matrix.os }}
155155
strategy:
156156
matrix:
157-
python-version: ["3.12", "3.11", "3.10", "3.9"]
157+
python-version: ["3.9"]
158+
os: [ ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-latest ]
158159
steps:
159160
- uses: actions/checkout@v4
160161
with:
@@ -164,71 +165,20 @@ jobs:
164165
run: |
165166
sudo apt-get update
166167
sudo apt-get install -y libglfw3-dev libgtk-3-dev
168+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm'
167169
- name: Install UV
168170
uses: astral-sh/setup-uv@v6
169171
with:
170172
# Install a specific version of UV.
171173
version: "0.8.22"
172174
python-version: ${{ matrix.python-version }}
173-
- name: Install Python ${{ matrix.python-version }}
174-
run: uv python install ${{ matrix.python-version }}
175+
- name: Install Python
176+
run: uv python install
175177
- name: Build Python wheel
176178
run: |
177-
uv build --wheel --python ${{ matrix.python-version }}
179+
uv build --wheel
178180
- name: Archive Python wheel
179181
uses: actions/upload-artifact@v4
180182
with:
181-
name: raven-wheel-linux-py${{ matrix.python-version }}
182-
path: dist/*.whl
183-
macOS_Python_Wheels:
184-
runs-on: macOS-latest
185-
strategy:
186-
matrix:
187-
python-version: ["3.12", "3.11", "3.10", "3.9"]
188-
steps:
189-
- uses: actions/checkout@v4
190-
with:
191-
fetch-depth: 1
192-
submodules: recursive
193-
- name: Install UV
194-
uses: astral-sh/setup-uv@v6
195-
with:
196-
# Install a specific version of UV.
197-
version: "0.8.22"
198-
python-version: ${{ matrix.python-version }}
199-
- name: Install Python ${{ matrix.python-version }}
200-
run: uv python install ${{ matrix.python-version }}
201-
- name: Build Python wheel
202-
run: |
203-
uv build --wheel --python ${{ matrix.python-version }}
204-
- name: Archive Python wheel
205-
uses: actions/upload-artifact@v4
206-
with:
207-
name: raven-wheel-macos-py${{ matrix.python-version }}
208-
path: dist/*.whl
209-
Windows_Python_Wheels:
210-
runs-on: windows-latest
211-
strategy:
212-
matrix:
213-
python-version: [ "3.12", "3.11", "3.10", "3.9" ]
214-
steps:
215-
- uses: actions/checkout@v4
216-
with:
217-
fetch-depth: 1
218-
submodules: recursive
219-
- name: Install UV
220-
uses: astral-sh/setup-uv@v6
221-
with:
222-
# Install a specific version of UV.
223-
version: "0.8.22"
224-
python-version: ${{ matrix.python-version }}
225-
- name: Install Python ${{ matrix.python-version }}
226-
run: uv python install ${{ matrix.python-version }}
227-
- name: Build Python wheel
228-
run: |
229-
uv build --wheel --python ${{ matrix.python-version }}
230-
- name: Archive Python wheel
231-
uses: actions/upload-artifact@v4
232-
with:
233-
name: raven-wheel-windows-py${{ matrix.python-version }}
234-
path: dist/*.whl
183+
name: raven-wheel-linux-py3-${{ matrix.os }}
184+
path: dist/*.whl

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "OTIO Viewer - C++ executable bundled as a Python package"
99
authors = [{ name = "Your Name", email = "your@email.com" }]
1010
license = { file = "LICENSE.txt" }
1111
readme = "README.md"
12-
requires-python = ">=3.7"
12+
requires-python = ">=3.9,<3.13"
1313

1414
[project.scripts]
1515
raven = "otio_raven._wrapper:main"
@@ -19,3 +19,4 @@ cmake.version = ">=3.10"
1919
cmake.build-type = "Release"
2020
wheel.packages = ["python/otio_raven"]
2121
wheel.install-dir = "otio_raven"
22+
wheel.py-api = "py3"

0 commit comments

Comments
 (0)