Skip to content

Commit d9a23a9

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

File tree

9 files changed

+229
-22
lines changed

9 files changed

+229
-22
lines changed

.github/workflows/scancode-release.yml

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Create ScanCode release archives, then test and publish to GH and PyPI
55
# Summary of the steps:
66
# - Build wheel and sdist for the "main" scancode, then build these for the "mini" flavor
77
# - test each wheel and sdist on every possible OS x Python version combinations
8-
# - Build release app archives, one for each of linux, windows, macos on Python 3.9 to 3.12
8+
# - Build release app archives, one for each of linux, windows, macos on Python 3.9 to 3.13
99
# - test each on its target OS and Python version
1010
# - Create gh-release and upload app archives to release
1111
# - Upload all wheels and sdist to PyPI
@@ -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

INSTALL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Prerequisites
1616
-------------
1717

1818
Before installing ScanCode make sure you have installed these prerequisites.
19-
The main one is to have Python installed version 3.9, 3.10, 3.11 or 3.12
19+
The main one is to have Python installed version 3.9, 3.10, 3.11, 3.12 or 3.13.
2020

2121
- For Linux(Ubuntu): ``sudo apt install python3.9-dev bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev``
2222
- For MacOS: Install Python 3.x from https://www.python.org/

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,5 @@ docs:
5555

5656
docs-check:
5757
@${ACTIVATE} sphinx-build -E -W -b html docs/source docs/_build/
58-
@${ACTIVATE} sphinx-build -E -W -b linkcheck docs/source docs/_build/
5958

6059
.PHONY: conf dev check valid clean test docs docs-check

README.rst

Lines changed: 190 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ Installation
139139
============
140140

141141
Before installing ScanCode make sure that you have installed the prerequisites
142-
properly. This means installing Python 3.9 for x86/64 architectures.
143-
We support Python 3.9, 3.10, 3.11 and 3.12.
142+
properly. This means installing Python 3.10 for x86/64 architectures.
143+
We support Python 3.9, 3.10, 3.11, 3.12 and 3.13.
144144

145145
See `prerequisites <https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#prerequisites>`_
146146
for detailed information on the support platforms and Python versions.
@@ -207,3 +207,191 @@ and `how to extract archives <https://scancode-toolkit.readthedocs.io/en/latest/
207207

208208

209209
Support
210+
=======
211+
212+
If you have a problem, a suggestion or found a bug, please enter a ticket at:
213+
https://github.com/nexB/scancode-toolkit/issues
214+
215+
For discussions and chats, we have:
216+
217+
* an official Gitter channel for `web-based chats
218+
<https://matrix.to/#/#aboutcode-org_discuss:gitter.im>`_.
219+
Gitter is now accessible through `Element <https://element.io/download>`_
220+
or an `IRC bridge <https://matrix-org.github.io/matrix-appservice-irc/latest/usage.html>`_.
221+
There are other AboutCode project-specific channels available there too.
222+
223+
* The discussion channel for `scancode <https://matrix.to/#/#aboutcode-org_scancode:gitter.im>`_
224+
specifically aimed at users and developers using scancode-toolkit.
225+
226+
Source code and downloads
227+
=========================
228+
229+
* https://github.com/nexB/scancode-toolkit/releases
230+
* https://github.com/nexB/scancode-toolkit.git
231+
* https://pypi.org/project/scancode-toolkit/
232+
* https://github.com/nexB/scancode-thirdparty-src.git
233+
* https://github.com/nexB/scancode-plugins.git
234+
* https://github.com/nexB/thirdparty-packages.git
235+
236+
License
237+
=======
238+
239+
* Apache-2.0 as the overall license
240+
* CC-BY-4.0 for reference datasets (initially was in the Public Domain).
241+
* Multiple other secondary permissive or copyleft licenses (LGPL, MIT,
242+
BSD, GPL 2/3, etc.) for third-party components and test suite code and data.
243+
244+
245+
See the NOTICE file and the .ABOUT files that document the origin and license of
246+
the third-party code used in ScanCode for more details.
247+
248+
249+
250+
.. |azure| image:: https://dev.azure.com/nexB/scancode-toolkit/_apis/build/status/nexB.scancode-toolkit?branchName=develop
251+
:target: https://dev.azure.com/nexB/scancode-toolkit/_build/latest?definitionId=1&branchName=develop
252+
:alt: Azure tests status (Linux, macOS, Windows)
253+
254+
.. |docs-rtd| image:: https://readthedocs.org/projects/scancode-toolkit/badge/?version=latest
255+
:target: https://scancode-toolkit.readthedocs.io/en/latest/?badge=latest
256+
:alt: Documentation Status
257+
258+
.. |docs-github-actions| image:: https://github.com/nexB/scancode-toolkit/actions/workflows/docs-ci.yml/badge.svg?branch=develop
259+
:target: https://github.com/nexB/scancode-toolkit/actions/workflows/docs-ci.yml
260+
:alt: Documentation Tests
261+
262+
.. |release-github-actions| image:: https://github.com/nexB/scancode-toolkit/actions/workflows/scancode-release.yml/badge.svg?event=push
263+
:target: https://github.com/nexB/scancode-toolkit/actions/workflows/scancode-release.yml
264+
:alt: Release tests
265+
266+
267+
Acknowledgements, Funding, Support and Sponsoring
268+
--------------------------------------------------------
269+
270+
This project is funded, supported and sponsored by:
271+
272+
- Generous support and contributions from users like you!
273+
- the European Commission NGI programme
274+
- the NLnet Foundation
275+
- the Swiss State Secretariat for Education, Research and Innovation (SERI)
276+
- Google, including the Google Summer of Code and the Google Seasons of Doc programmes
277+
- Mercedes-Benz Group
278+
- Microsoft and Microsoft Azure
279+
- AboutCode ASBL
280+
- nexB Inc.
281+
282+
283+
284+
|europa| |dgconnect|
285+
286+
|ngi| |nlnet|
287+
288+
|aboutcode| |nexb|
289+
290+
291+
This project was funded through the NGI0 Discovery Fund, a fund established by NLnet with financial
292+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
293+
Communications Networks, Content and Technology under grant agreement No 825322.
294+
295+
|ngidiscovery| https://nlnet.nl/project/vulnerabilitydatabase/
296+
297+
298+
This project was funded through the NGI0 Entrust Fund, a fund established by NLnet with financial
299+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
300+
Communications Networks, Content and Technology under grant agreement No 101069594.
301+
302+
|ngizeroentrust| https://nlnet.nl/project/Back2source/
303+
304+
305+
This project was funded through the NGI0 Core Fund, a fund established by NLnet with financial
306+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
307+
Communications Networks, Content and Technology under grant agreement No 101092990.
308+
309+
|ngizerocore| https://nlnet.nl/project/Back2source-next/
310+
311+
312+
This project was funded through the NGI0 Core Fund, a fund established by NLnet with financial
313+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
314+
Communications Networks, Content and Technology under grant agreement No 101092990.
315+
316+
|ngizerocore| https://nlnet.nl/project/FastScan/
317+
318+
319+
This project was funded through the NGI0 Commons Fund, a fund established by NLnet with financial
320+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
321+
Communications Networks, Content and Technology under grant agreement No 101135429. Additional
322+
funding is made available by the Swiss State Secretariat for Education, Research and Innovation
323+
(SERI).
324+
325+
|ngizerocommons| |swiss| https://nlnet.nl/project/MassiveFOSSscan/
326+
327+
This project was funded through the NGI0 Entrust Fund, a fund established by NLnet with financial
328+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
329+
Communications Networks, Content and Technology under grant agreement No 101069594.
330+
331+
|ngizeroentrust| https://nlnet.nl/project/purl2sym/
332+
333+
334+
.. |nlnet| image:: https://nlnet.nl/logo/banner.png
335+
:target: https://nlnet.nl
336+
:height: 50
337+
:alt: NLnet foundation logo
338+
339+
.. |ngi| image:: https://ngi.eu/wp-content/uploads/thegem-logos/logo_8269bc6efcf731d34b6385775d76511d_1x.png
340+
:target: https://ngi.eu35
341+
:height: 50
342+
:alt: NGI logo
343+
344+
.. |nexb| image:: https://nexb.com/wp-content/uploads/2022/04/nexB.svg
345+
:target: https://nexb.com
346+
:height: 30
347+
:alt: nexB logo
348+
349+
.. |europa| image:: https://ngi.eu/wp-content/uploads/sites/77/2017/10/bandiera_stelle.png
350+
:target: http://ec.europa.eu/index_en.htm
351+
:height: 40
352+
:alt: Europa logo
353+
354+
.. |aboutcode| image:: https://aboutcode.org/wp-content/uploads/2023/10/AboutCode.svg
355+
:target: https://aboutcode.org/
356+
:height: 30
357+
:alt: AboutCode logo
358+
359+
.. |swiss| image:: https://www.sbfi.admin.ch/sbfi/en/_jcr_content/logo/image.imagespooler.png/1493119032540/logo.png
360+
:target: https://www.sbfi.admin.ch/sbfi/en/home/seri/seri.html
361+
:height: 40
362+
:alt: Swiss logo
363+
364+
.. |dgconnect| image:: https://commission.europa.eu/themes/contrib/oe_theme/dist/ec/images/logo/positive/logo-ec--en.svg
365+
:target: https://commission.europa.eu/about-european-commission/departments-and-executive-agencies/communications-networks-content-and-technology_en
366+
:height: 40
367+
:alt: EC DG Connect logo
368+
369+
.. |ngizerocore| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
370+
:target: https://nlnet.nl/core
371+
:height: 40
372+
:alt: NGI Zero Core Logo
373+
374+
.. |ngizerocommons| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
375+
:target: https://nlnet.nl/commonsfund/
376+
:height: 40
377+
:alt: NGI Zero Commons Logo
378+
379+
.. |ngizeropet| image:: https://nlnet.nl/image/logos/NGI0PET_tag.svg
380+
:target: https://nlnet.nl/PET
381+
:height: 40
382+
:alt: NGI Zero PET logo
383+
384+
.. |ngizeroentrust| image:: https://nlnet.nl/image/logos/NGI0Entrust_tag.svg
385+
:target: https://nlnet.nl/entrust
386+
:height: 38
387+
:alt: NGI Zero Entrust logo
388+
389+
.. |ngiassure| image:: https://nlnet.nl/image/logos/NGIAssure_tag.svg
390+
:target: https://nlnet.nl/image/logos/NGIAssure_tag.svg
391+
:height: 32
392+
:alt: NGI Assure logo
393+
394+
.. |ngidiscovery| image:: https://nlnet.nl/image/logos/NGI0Discovery_tag.svg
395+
:target: https://nlnet.nl/discovery/
396+
:height: 40
397+
:alt: NGI Discovery logo

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 \

0 commit comments

Comments
 (0)