Skip to content

Commit 30d62fb

Browse files
committed
chore(ci): Use build-and-inspect-python-package v2.8
1 parent 9a6385b commit 30d62fb

File tree

1 file changed

+14
-65
lines changed

1 file changed

+14
-65
lines changed

.github/workflows/build_test_deploy.yml

Lines changed: 14 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -46,73 +46,22 @@ jobs:
4646
with:
4747
fetch-depth: 0
4848
persist-credentials: false
49-
## Stuck on https://github.com/astral-sh/uv/issues/5450
50-
## or https://github.com/hynek/build-and-inspect-python-package/issues/155
51-
# - uses: hynek/build-and-inspect-python-package@v2
52-
# with:
53-
# upload-name-suffix: -main
54-
# attest-build-provenance-github: ${{ github.event_name != 'pull_request' }}
55-
# - uses: hynek/build-and-inspect-python-package@v2
56-
# with:
57-
# path: wrapper
58-
# upload-name-suffix: -wrapper
59-
# attest-build-provenance-github: ${{ github.event_name != 'pull_request' }}
60-
## Manually reproducing with pyproject-build
61-
## Probably slightly slower
62-
- name: Install the latest version of uv
63-
uses: astral-sh/setup-uv@v4
64-
- name: Build smriprep
65-
run: uvx --from=build pyproject-build --installer uv .
66-
- name: Upload smriprep as Packages-main
67-
uses: actions/upload-artifact@v4
49+
# Note that we cannot upgrade this past 2.9 until uv build resolves a bug
50+
# or build-and-inspect-python-package lets us select build as a backend
51+
#
52+
# https://github.com/astral-sh/uv/issues/5450
53+
# or https://github.com/hynek/build-and-inspect-python-package/issues/155
54+
#
55+
# When we do move on, we should leave a comment to fall back in case of future uv build bugs
56+
- uses: hynek/[email protected]
6857
with:
69-
name: Packages-main
70-
path: dist/
71-
72-
- name: Show package contents hierarchically, including metadata.
73-
shell: bash
74-
run: |
75-
echo -e '\n<details><summary>SDist contents</summary>\n' >> $GITHUB_STEP_SUMMARY
76-
tar -tvzf dist/*.tar.gz | sed 's/^/ /' | tee -a $GITHUB_STEP_SUMMARY
77-
echo -e '\n</details>\n' >> $GITHUB_STEP_SUMMARY
78-
79-
echo -e '\n<details><summary>Wheel contents</summary>\n' >> $GITHUB_STEP_SUMMARY
80-
unzip -l dist/*.whl | sed 's/^/ /' | tee -a $GITHUB_STEP_SUMMARY
81-
echo -e '\n</details>\n' >> $GITHUB_STEP_SUMMARY
82-
83-
echo ----- Metadata Follows -----
84-
echo -e '\n<details><summary>Metadata</summary>\n' >> $GITHUB_STEP_SUMMARY
85-
tar --wildcards -xOf dist/*.tar.gz "*/PKG-INFO" | sed 's/^/ /' | tee -a $GITHUB_STEP_SUMMARY
86-
echo -e '\n</details>\n' >> $GITHUB_STEP_SUMMARY
87-
echo ----- End of Metadata -----
88-
89-
- name: Report on smriprep packages
90-
run: |
91-
echo "name=Packages-main" >>${GITHUB_OUTPUT}
92-
- name: Build smriprep-docker
93-
run: uvx --from=build pyproject-build --installer uv ./wrapper
94-
- name: Upload smriprep as Packages-wrapper
95-
uses: actions/upload-artifact@v4
58+
upload-name-suffix: -main
59+
attest-build-provenance-github: ${{ github.event_name != 'pull_request' }}
60+
- uses: hynek/build-and-inspect-python-package@v2
9661
with:
97-
name: Packages-wrapper
98-
path: wrapper/dist/
99-
100-
- name: Show package contents hierarchically, including metadata.
101-
shell: bash
102-
run: |
103-
echo -e '\n<details><summary>SDist contents</summary>\n' >> $GITHUB_STEP_SUMMARY
104-
tar -tvzf wrapper/dist/*.tar.gz | sed 's/^/ /' | tee -a $GITHUB_STEP_SUMMARY
105-
echo -e '\n</details>\n' >> $GITHUB_STEP_SUMMARY
106-
107-
echo -e '\n<details><summary>Wheel contents</summary>\n' >> $GITHUB_STEP_SUMMARY
108-
unzip -l wrapper/dist/*.whl | sed 's/^/ /' | tee -a $GITHUB_STEP_SUMMARY
109-
echo -e '\n</details>\n' >> $GITHUB_STEP_SUMMARY
110-
111-
echo ----- Metadata Follows -----
112-
echo -e '\n<details><summary>Metadata</summary>\n' >> $GITHUB_STEP_SUMMARY
113-
tar --wildcards -xOf wrapper/dist/*.tar.gz "*/PKG-INFO" | sed 's/^/ /' | tee -a $GITHUB_STEP_SUMMARY
114-
echo -e '\n</details>\n' >> $GITHUB_STEP_SUMMARY
115-
echo ----- End of Metadata -----
62+
path: wrapper
63+
upload-name-suffix: -wrapper
64+
attest-build-provenance-github: ${{ github.event_name != 'pull_request' }}
11665

11766
test:
11867
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)