Skip to content

Commit 057fd56

Browse files
committed
ci: normalize uv build flags and drop tox
Use long-form flags across workflows, remove unused from dev deps (and refresh ), and update api-docs to run before Sphinx.
1 parent d6a6d58 commit 057fd56

6 files changed

Lines changed: 13 additions & 103 deletions

File tree

‎.github/workflows/publish-python.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: "Build wheel"
4343
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
4444
# see issue #350 for more information
45-
run: UV_PYTHON=${PYBIN}/python uv build --wheel -C=--build-option=--plat-name=manylinux_2_28_x86_64 -v
45+
run: UV_PYTHON=${PYBIN}/python uv build --wheel --config-setting=--build-option=--plat-name=manylinux_2_28_x86_64 --verbose
4646

4747
- uses: actions/upload-artifact@v4
4848
with:
@@ -84,7 +84,7 @@ jobs:
8484
- name: "Build wheel"
8585
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
8686
# see issue #350 for more information
87-
run: uv build --wheel -C=--build-option=--plat-name=macosx_11_0_arm64 -v
87+
run: uv build --wheel --config-setting=--build-option=--plat-name=macosx_11_0_arm64 --verbose
8888

8989
- name: "Upload artifacts"
9090
uses: actions/upload-artifact@v4
@@ -127,7 +127,7 @@ jobs:
127127
- name: "Build wheel"
128128
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
129129
# see issue #350 for more information
130-
run: uv build --wheel -C=--build-option=--plat-name=macosx_11_0_x86_64 -v
130+
run: uv build --wheel --config-setting=--build-option=--plat-name=macosx_11_0_x86_64 --verbose
131131

132132
- uses: actions/upload-artifact@v4
133133
with:
@@ -166,7 +166,7 @@ jobs:
166166
run: bash ./scripts/generate-windows.sh
167167

168168
- name: "Build wheel"
169-
run: uv build --wheel -v
169+
run: uv build --wheel --verbose
170170

171171
- name: "Upload artifacts"
172172
uses: actions/upload-artifact@v4

‎.github/workflows/test-bdk-ffi-latest.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: bash ./scripts/generate-linux.sh
6262

6363
- name: "Build wheel"
64-
run: UV_PYTHON=${PYBIN}/python uv build --wheel -C=--build-option=--plat-name=manylinux_2_28_x86_64 -v
64+
run: UV_PYTHON=${PYBIN}/python uv build --wheel --config-setting=--build-option=--plat-name=manylinux_2_28_x86_64 --verbose
6565

6666
- name: "Install wheel"
6767
run: uv pip install --system --python ${PYBIN}/python ./dist/*.whl
@@ -112,7 +112,7 @@ jobs:
112112
- name: "Build wheel"
113113
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
114114
# see issue #350 for more information
115-
run: uv build --wheel -C=--build-option=--plat-name=macosx_11_0_arm64 -v
115+
run: uv build --wheel --config-setting=--build-option=--plat-name=macosx_11_0_arm64 --verbose
116116

117117
- name: "Install wheel"
118118
run: uv pip install --system --python python3 ./dist/*.whl
@@ -160,7 +160,7 @@ jobs:
160160
run: bash ./scripts/generate-macos-x86_64.sh
161161

162162
- name: "Build wheel"
163-
run: uv build --wheel -C=--build-option=--plat-name=macosx_11_0_x86_64 -v
163+
run: uv build --wheel --config-setting=--build-option=--plat-name=macosx_11_0_x86_64 --verbose
164164

165165
- name: "Install wheel"
166166
run: uv pip install --system --python python3 ./dist/*.whl
@@ -209,7 +209,7 @@ jobs:
209209
run: bash ./scripts/generate-windows.sh
210210

211211
- name: "Build wheel"
212-
run: uv build --wheel -v
212+
run: uv build --wheel --verbose
213213

214214
- name: "Install dependencies"
215215
run: Get-ChildItem 'D:\a\bdk-python\bdk-python\dist\*.whl' | ForEach-Object {uv pip install --system --python python $_.FullName}

‎.github/workflows/test-python.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: bash ./scripts/generate-linux.sh
4343

4444
- name: "Build wheel"
45-
run: UV_PYTHON=${PYBIN}/python uv build --wheel -C=--build-option=--plat-name=manylinux_2_28_x86_64 -v
45+
run: UV_PYTHON=${PYBIN}/python uv build --wheel --config-setting=--build-option=--plat-name=manylinux_2_28_x86_64 --verbose
4646

4747
- name: "Install wheel"
4848
run: uv pip install --system --python ${PYBIN}/python ./dist/*.whl
@@ -91,7 +91,7 @@ jobs:
9191
- name: "Build wheel"
9292
# Specifying the plat-name argument is necessary to build a wheel with the correct name,
9393
# see issue #350 for more information
94-
run: uv build --wheel -C=--build-option=--plat-name=macosx_11_0_arm64 -v
94+
run: uv build --wheel --config-setting=--build-option=--plat-name=macosx_11_0_arm64 --verbose
9595

9696
- name: "Install wheel and run tests"
9797
run: |
@@ -136,7 +136,7 @@ jobs:
136136
run: bash ./scripts/generate-macos-x86_64.sh
137137

138138
- name: "Build wheel"
139-
run: uv build --wheel -C=--build-option=--plat-name=macosx_11_0_x86_64 -v
139+
run: uv build --wheel --config-setting=--build-option=--plat-name=macosx_11_0_x86_64 --verbose
140140

141141
- name: "Install wheel"
142142
run: uv pip install --system --python python3 ./dist/*.whl
@@ -183,7 +183,7 @@ jobs:
183183
run: bash ./scripts/generate-windows.sh
184184

185185
- name: "Build wheel"
186-
run: uv build --wheel -v
186+
run: uv build --wheel --verbose
187187

188188
- name: "Upload artifact test"
189189
uses: actions/upload-artifact@v4

‎justfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ install:
3030
[group("Build")]
3131
[doc("Build Sphinx api documentation.")]
3232
api-docs:
33+
uv run python docs/generate_docs.py
3334
uv run python -m sphinx -b html -W --keep-going -v docs/source docs/_build/html
3435

3536
[group("Submodule")]

‎pyproject.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,4 @@ dev = [
4040
"pytest==7.1.2",
4141
"sphinx>=8.1.3",
4242
"sphinx-rtd-theme>=3.1.0",
43-
"tox==3.25.1",
4443
]

‎uv.lock‎

Lines changed: 0 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)