Skip to content

Commit 7f135b1

Browse files
Update scancode release script for py3.13
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent d03a558 commit 7f135b1

File tree

3 files changed

+35
-17
lines changed

3 files changed

+35
-17
lines changed

.github/workflows/scancode-release.yml

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
fail-fast: true
3636
matrix:
37-
pyver: ["3.9", "3.10", "3.11", "3.12"]
37+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3838

3939
steps:
4040
- uses: actions/checkout@v4
@@ -74,7 +74,7 @@ jobs:
7474
- name: Set up Python
7575
uses: actions/setup-python@v5
7676
with:
77-
python-version: "3.12"
77+
python-version: "3.13"
7878

7979
- name: Install requirements then build main and mini sdist
8080
run: etc/release/scancode-create-pypi-sdist.sh
@@ -100,7 +100,7 @@ jobs:
100100
strategy:
101101
fail-fast: true
102102
matrix:
103-
pyver: ["3.9", "3.10", "3.11", "3.12"]
103+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
104104

105105
steps:
106106
- uses: actions/checkout@v4
@@ -135,7 +135,7 @@ jobs:
135135
strategy:
136136
fail-fast: true
137137
matrix:
138-
pyver: ["3.9", "3.10", "3.11", "3.12"]
138+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
139139

140140
steps:
141141
- uses: actions/checkout@v4
@@ -170,7 +170,7 @@ jobs:
170170
strategy:
171171
fail-fast: true
172172
matrix:
173-
pyver: ["3.9", "3.10", "3.11", "3.12"]
173+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
174174

175175
steps:
176176
- uses: actions/checkout@v4
@@ -211,7 +211,7 @@ jobs:
211211
- name: Set up Python
212212
uses: actions/setup-python@v5
213213
with:
214-
python-version: "3.12"
214+
python-version: "3.13"
215215

216216
- name: Build source archive with deps
217217
run: etc/release/scancode-create-release-app-sources.sh
@@ -240,7 +240,7 @@ jobs:
240240
fail-fast: true
241241
matrix:
242242
os: [ubuntu-24.04, ubuntu-24.04, macos-13, macos-14]
243-
pyver: ["3.9", "3.10", "3.11", "3.12"]
243+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
244244

245245
steps:
246246
- uses: actions/checkout@v4
@@ -286,7 +286,7 @@ jobs:
286286
fail-fast: true
287287
matrix:
288288
os: [windows-2025, windows-2022]
289-
pyver: ["3.9", "3.10", "3.11", "3.12"]
289+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
290290

291291
steps:
292292
- uses: actions/checkout@v4
@@ -331,7 +331,7 @@ jobs:
331331
fail-fast: true
332332
matrix:
333333
os: [ubuntu-24.04, ubuntu-24.04]
334-
pyver: ["3.9", "3.10", "3.11", "3.12"]
334+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
335335

336336
steps:
337337
- uses: actions/checkout@v4
@@ -372,7 +372,7 @@ jobs:
372372
fail-fast: true
373373
matrix:
374374
os: [macos-13, macos-14]
375-
pyver: ["3.9", "3.10", "3.11", "3.12"]
375+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
376376

377377
steps:
378378
- uses: actions/checkout@v4
@@ -413,7 +413,7 @@ jobs:
413413
fail-fast: true
414414
matrix:
415415
os: [windows-2025, windows-2022]
416-
pyver: ["3.9", "3.10", "3.11", "3.12"]
416+
pyver: ["3.9", "3.10", "3.11", "3.12", "3.13"]
417417

418418
steps:
419419
- uses: actions/checkout@v4
@@ -485,6 +485,12 @@ jobs:
485485
name: macos_app_py_3.12
486486
path: dist
487487

488+
- name: Download a single artifact macos_app for python 3.13
489+
uses: actions/download-artifact@v4
490+
with:
491+
name: macos_app_py_3.13
492+
path: dist
493+
488494
- name: Download a single artifact linux_app for python 3.9
489495
uses: actions/download-artifact@v4
490496
with:
@@ -509,6 +515,12 @@ jobs:
509515
name: linux_app_py_3.12
510516
path: dist
511517

518+
- name: Download a single artifact linux_app for python 3.13
519+
uses: actions/download-artifact@v4
520+
with:
521+
name: linux_app_py_3.13
522+
path: dist
523+
512524
- name: Download a single artifact windows_app for python 3.9
513525
uses: actions/download-artifact@v4
514526
with:
@@ -533,6 +545,12 @@ jobs:
533545
name: windows_app_py_3.12
534546
path: dist
535547

548+
- name: Download a single artifact windows_app for python 3.13
549+
uses: actions/download-artifact@v4
550+
with:
551+
name: windows_app_py_3.13
552+
path: dist
553+
536554
- name: Mock GH release
537555
run: |
538556
ls -al dist
@@ -559,13 +577,13 @@ jobs:
559577
strategy:
560578
fail-fast: true
561579
matrix:
562-
dist_names: ["wheels-3.9", "wheels-3.10", "wheels-3.11", "wheels-3.12", sdists]
580+
dist_names: ["wheels-3.9", "wheels-3.10", "wheels-3.11", "wheels-3.12", "wheels-3.13", sdists]
563581

564582
steps:
565583
- name: Set up Python
566584
uses: actions/setup-python@v5
567585
with:
568-
python-version: 3.9
586+
python-version: 3.13
569587

570588
- name: Download a single artifact
571589
uses: actions/download-artifact@v4

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ find_python() {
208208
if [ -f "$CFG_ROOT_DIR/PYTHON_EXECUTABLE" ]; then
209209
PYTHON_EXECUTABLE=$(cat "$CFG_ROOT_DIR/PYTHON_EXECUTABLE")
210210
else
211-
PYTHON_EXECUTABLE=python3
211+
PYTHON_EXECUTABLE=python3.13
212212
fi
213213
fi
214214
}
@@ -234,7 +234,7 @@ create_virtualenv() {
234234
fi
235235

236236
$PYTHON_EXECUTABLE "$VIRTUALENV_PYZ" \
237-
--pip embed --setuptools embed \
237+
--wheel embed --pip embed --setuptools embed \
238238
--seeder pip \
239239
--never-download \
240240
--no-periodic-update \

configure.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if not exist "%CFG_BIN_DIR%\python.exe" (
115115

116116
if exist "%CFG_ROOT_DIR%\etc\thirdparty\virtualenv.pyz" (
117117
%PYTHON_EXECUTABLE% "%CFG_ROOT_DIR%\etc\thirdparty\virtualenv.pyz" ^
118-
--pip embed --setuptools embed ^
118+
--wheel embed --pip embed --setuptools embed ^
119119
--seeder pip ^
120120
--never-download ^
121121
--no-periodic-update ^
@@ -131,7 +131,7 @@ if not exist "%CFG_BIN_DIR%\python.exe" (
131131
)
132132
)
133133
%PYTHON_EXECUTABLE% "%CFG_ROOT_DIR%\%VIRTUALENV_DIR%\virtualenv.pyz" ^
134-
--pip embed --setuptools embed ^
134+
--wheel embed --pip embed --setuptools embed ^
135135
--seeder pip ^
136136
--never-download ^
137137
--no-periodic-update ^

0 commit comments

Comments
 (0)