Skip to content

Commit 600759d

Browse files
Update scancode release script for py3.13
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent d03a558 commit 600759d

22 files changed

+316
-92
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

AUTHORS.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The following organizations or individuals have contributed to ScanCode:
4848
- Mankaran Singh @MankaranSingh
4949
- Marc-Etienne Vargenau @vargenau
5050
- Martin Petkov @MartinPetkov
51-
- Maximilian Huber @maxhbr
51+
- Maximilian Huber @maxhbr
5252
- Michael Herzog @mjherzog
5353
- Michael Rupprecht @michaelrup
5454
- Mike Rombout @mrombout
@@ -89,15 +89,15 @@ The following organizations or individuals have contributed to ScanCode:
8989
- Thomas Druez @tdruez
9090
- Thomas Steenbergen @tsteenbe
9191
- Thorsten Harter @ThorstenHarter
92-
- Till Jaeger @LeChasseur
92+
- Till Jaeger @LeChasseur
9393
- Tobias Furuholm @furuholm
9494
- Tushar Goel @TG1999
9595
- Tushar Mittal @techytushar
9696
- Tushar Upadhyay @tushar912
9797
- Van Lindberg @VanL
9898
- Vibhu Agarwal @Vibhu-Agarwal
9999
- Viktor Tiulpin @tiulpin
100-
- Vinay Kumar Singh @Vinay0001
100+
- Vinay Kumar Singh @Vinay0001
101101
- Virag Umathe @viragumathe5
102102
- Yash D. Saraf @yashdsaraf
103103
- Yash Nisar @yash-nisar

CHANGELOG.rst

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,14 +1791,16 @@ v3.2.0rc1 (2020-09-08)
17911791
- Add new license rules for "bad" licenses #1899 @viragumathe5
17921792
- Improve copyright detection @WizardOhio24
17931793
- Improve tests @hanif-ali
1794-
- Add and improve support for package manifest for #2080 Go, Ruby gem gemspec, Cocoapod podspec, opam, Python PKG-INFO - Rohit Potter @rpotter12
1795-
- Add and improve support for package lockfiles for Pipfile.lock, requirements.tx, Cargo.lock - Rohit Potter @rpotter12
1794+
- Add and improve support for package manifest for #2080 Go, Ruby gem gemspec,
1795+
Cocoapod podspec, opam, Python PKG-INFO - Rohit Potter @rpotter12
1796+
- Add and improve support for package lockfiles for Pipfile.lock,
1797+
requirements.tx, Cargo.lock - Rohit Potter @rpotter12
17961798
- Add new --max-depth option to limit sca depth - Hanif Ali @hanif-ali
17971799
- Add initial Debian packaging - @aj4ayushjain
17981800
- Add new documentation web site and documentation generation system
17991801
- The "headers" attribute in JSON outputs now contains a 'duration' field. #1942
18001802
- Rework packaging and third-party support handling: Create new scripts and
1801-
process to provision, install and manage third-party dependencies - Abhishek Kumar @Abhishek-Dev09
1803+
process to provision, install and manage third-party dependencies @Abhishek-Dev09
18021804
- Improve CSV output and fix manifest path bug #1718 Aditya Viki8
18031805
- Add new documentation, as well as tools and process. Ayan Sinha Mahapatra
18041806
- Add new license detection rules - Ayan Sinha Mahapatra
@@ -1826,9 +1828,12 @@ v3.2.0rc1 (2020-09-08)
18261828
- Improve Documentation - Michael Herzog
18271829
- Add new checksum type for sha256 - Nitish @nitish81299
18281830
- Improve documentation - Philippe Ombredanne
1829-
- Add new license detection rules and improve detection #1777 #1720 #1734 #1486 #1757 #1749 #1283 #1795 #2214 #1978
1830-
- Add new license detection rules and improve detection #2187 #2188 #2189 #1904 #2207 #1905 #419 #2190 #1910 #1911
1831-
- Add new license detection rules and improve detection #1841 #1913 #1795 #2124 #2145 #1800 #2200 #2206 #2186
1831+
- Add new license detection rules and improve detection
1832+
#1777 #1720 #1734 #1486 #1757 #1749 #1283 #1795 #2214 #1978
1833+
- Add new license detection rules and improve detection
1834+
#2187 #2188 #2189 #1904 #2207 #1905 #419 #2190 #1910 #1911
1835+
- Add new license detection rules and improve detection
1836+
#1841 #1913 #1795 #2124 #2145 #1800 #2200 #2206 #2186
18321837
- Allow to call "run_scan" as a function #1780
18331838
- Update license data to SPDX 3.7 #1789
18341839
- Collect matched license text correctly including with Turkish diacritics #1872
@@ -1869,7 +1874,8 @@ Major new feature:
18691874

18701875
New features:
18711876

1872-
- Improve package manifest support for #1643 RPMs, #1628 Cran, Python #1600, Maven #1649 Chef #1600 @licodeli @JonoYang
1877+
- Improve package manifest support for #1643 RPMs, #1628 Cran, Python #1600,
1878+
Maven #1649 Chef #1600 @licodeli @JonoYang
18731879
- Add plugin to collect ELF and LKM clues #1685 @licodeli
18741880
- Add runtime support for FreeBSD #1695 @knobix
18751881
- Add support to extract lzip archives #245 #989
@@ -1946,15 +1952,18 @@ Other:
19461952
v2.9.9 (2018-12-12)
19471953
-------------------
19481954

1949-
This is the penultimate pre-release of what will come up for 3.0 with some API change for packages.
1955+
This is the penultimate pre-release of what will come up for 3.0
1956+
with some API change for packages.
19501957

19511958
API changes:
1952-
- Streamline Package models #1226 #1324 and #1327. In particular the way checksums are managed has changed
1959+
- Streamline Package models #1226 #1324 and #1327.
1960+
In particular the way checksums are managed has changed
19531961

19541962
Other changes:
19551963
- Copyright detection improvements #1305 by @JonoYang
19561964
- Correct CC-BY V3.0 and V4.0 license texts by correct one by @sschuberth #1320
1957-
- Add new and improved licenses and license detection rules including the latest SPDX list 3.4 and #1322 #1324
1965+
- Add new and improved licenses and license detection rules including
1966+
the latest SPDX list 3.4 and #1322 #1324
19581967
- Rename proprietary license key to proprietary-license
19591968
- Rename commercial license key to commercial-license
19601969
- Improve npm package.json handling #1308 and #1314 by @majurg
@@ -1967,14 +1976,16 @@ This is a close-to-final pre-release of what will come up for 3.0 with some API
19671976

19681977
API changes:
19691978
- In Package models, rename normalized_license to license_expression and
1970-
add license detection on the declared_license to populate the license_expression #1092 #1268 #1278
1979+
add license detection on the declared_license to populate
1980+
the license_expression #1092 #1268 #1278
19711981

19721982
Outputs:
19731983
- Do not open output files until the command lines are validated as correct #1266
19741984
- The html-app output is marked as DEPRECATED. Use the AboutCode manager app instead #
19751985
- Ensure HTML outputs can deal with non-ASCII file paths without crashsing #1292
19761986
- JSON outputs now use a "headers" attributes for top-level scan headers #
1977-
- SPDX output is now possible even without "--info" SHA1 checksums. This creates a partially valid document
1987+
- SPDX output is now possible even without "--info" SHA1 checksums.
1988+
This creates a partially valid document
19781989
- LicenseRef for non-SPDX ScanCode licenses are named as "LicenseRef-scancode-<scancode key>" #
19791990
- license_expression are correctly included in the CSV output #1238
19801991
- do not crash with multiple outputs #1199
@@ -1986,7 +1997,8 @@ License detection:
19861997
- An optional "relevance" attribute has been added to the license YAML
19871998
attributes. This is to store the relevance to e matched .LICENSE text when used
19881999
as a rule.
1989-
- Licenses have been synchronized with the latest v3.3 SPDX license list and the latest DejaCode licenses #1242
2000+
- Licenses have been synchronized with the latest v3.3 SPDX license list
2001+
and the latest DejaCode licenses #1242
19902002
- Duplicated SPDX keys have been fixed #1264
19912003
- Add new and improved license detection rules #1313 #1306 #1302 #1298 #1293
19922004
#1291 #1289 #1270 #1269 #1192 #1186 #1170 #1164 #1128 #1124 #1112 #1110 #1108
@@ -1996,7 +2008,8 @@ Packages:
19962008
- Add support for haxe "haxelib" package manifests #1227
19972009
- Remove code_type attribute from Package models
19982010
- In Package models, rename normalized_license to license_expression and
1999-
add license detection on the declared_license to populate the license_expression #1092 #1268 #1278
2011+
add license detection on the declared_license to populate the
2012+
license_expression #1092 #1268 #1278
20002013
- Improve data returned for PHP Composer packages
20012014
- Add PackageURL to top level output for packages
20022015
- Report nuget as proper packages #1088
@@ -2122,7 +2135,8 @@ API change:
21222135
- The returned copyright data structure has changed and is now simpler and less nested
21232136

21242137
Licenses:
2125-
- Add new license and rules and improve licene rules #1186 #1108 #1124 #1171 #1173 #1039 #1098 #1111
2138+
- Add new license and rules and improve licene rules
2139+
#1186 #1108 #1124 #1171 #1173 #1039 #1098 #1111
21262140
- Add new license clarity scoring #1180
21272141
This is also for use in the ClearlyDefined project
21282142
- Add is_exception to license scan results #1159

CONTRIBUTING.rst

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Documentation improvements
7777
==========================
7878

7979
Documentation can come in the form of new documentation pages/sections, tutorials/how-to documents,
80-
any other general upgrades, etc. Even a minor typo fix is welcomed.
80+
any other general upgrades, etc. Even a minor typo fix is welcomed.
8181

8282
If something is missing in the documentation or if you found some part confusing,
8383
please file an issue with your suggestions for improvement. Use the “Documentation Improvement”
@@ -104,33 +104,33 @@ To set up ScanCode for local development:
104104

105105
git clone https://github.com/your_name_here/scancode-toolkit.git
106106

107-
See also GitHub docs for `SSH <https://help.github.com/articles/connecting-to-github-with-ssh/>`_
107+
See also GitHub docs for `SSH <https://help.github.com/articles/connecting-to-github-with-ssh/>`_
108108
or `HTTPS <https://help.github.com/articles/which-remote-url-should-i-use/#cloning-with-https-urls-recommended>`_
109-
109+
110110
If you want to change the connection type, do following
111-
111+
112112
SSH to HTTPS ::
113-
113+
114114
git remote set-url <repository-alias-name> https://github.com/your_name_here/scancode-toolkit.git
115-
115+
116116
HTTPS to SSH ::
117-
117+
118118
git remote set-url <repository-alias-name> git@github.com:your_name_here/scancode-toolkit.git
119-
119+
120120
Generally <repository-alias-name> is named origin, but in the case of multiple fetch/pull source of repository you can choose whatever name you want
121-
121+
122122
3. Create a branch for local development::
123123

124124
git checkout -b name-of-your-bugfix-or-feature
125-
125+
126126
4. Check out the Contributing to Code Development `documentation <https://scancode-toolkit.readthedocs.io/en/stable/contribute/contrib_dev.html>`_, as it contains more in-depth guide for contributing code and documentation.
127127

128128
5. To configure your local environment for development, locate to the main
129129
directory of the local repository, and run the configure script.
130130
The configure script creates an isolated Python `virtual environment` in
131131
your checkout directory, the Python `pip` tool, and installs the third-party
132132
libraries (from the `thirdparty/ directory`), setup the paths, etc.
133-
See https://virtualenv.pypa.io/en/latest/ for more details.
133+
See https://virtualenv.pypa.io/en/latest/ for more details.
134134

135135
Run this command to configure ScanCode::
136136

@@ -160,15 +160,17 @@ To set up ScanCode for local development:
160160
6. Now you can make your code changes in your local clone.
161161
Please create new unit tests for your code. We love tests!
162162

163-
7. An update to the ``CHANGELOG`` is required if any important changes are made that needs to be communicated such as:
163+
7. An update to the ``CHANGELOG`` is required if any important changes are made
164+
that needs to be communicated such as:
164165

165166
* Changes in the API.
166167

167168
* Addition or deletion of CLI options.
168169

169170
* Addition of any new feature or any other miscellaneous changes to the program.
170-
171-
8. If there is a code change, a significant document, or any other changes, you must update the ``AUTHORS`` to include your own name.
171+
172+
8. If there is a code change, a significant document, or any other changes,
173+
you must update the ``AUTHORS`` to include your own name.
172174

173175
9. When you are done with your changes, run all the tests.
174176
Use this command::

0 commit comments

Comments
 (0)