Skip to content

Commit 29431a2

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into misc-license-updates
2 parents 7fb0c97 + 4f49985 commit 29431a2

File tree

454 files changed

+25945
-15556
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

454 files changed

+25945
-15556
lines changed

.github/workflows/docs-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111

1212
strategy:
1313
max-parallel: 4

.github/workflows/scancode-release.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
contents: read # to fetch code (actions/checkout)
2626

2727
name: Build PyPI wheels
28-
runs-on: ubuntu-20.04
28+
runs-on: ubuntu-22.04
2929

3030
defaults:
3131
run:
@@ -34,10 +34,10 @@ jobs:
3434
strategy:
3535
fail-fast: true
3636
matrix:
37-
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
37+
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
3838

3939
steps:
40-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4141

4242
- name: Set up Python on ${{ matrix.pyver }}
4343
uses: actions/setup-python@v4
@@ -59,7 +59,7 @@ jobs:
5959
contents: read # to fetch code (actions/checkout)
6060

6161
name: Build PyPI sdist archives
62-
runs-on: ubuntu-20.04
62+
runs-on: ubuntu-22.04
6363

6464
defaults:
6565
run:
@@ -69,7 +69,7 @@ jobs:
6969
fail-fast: true
7070

7171
steps:
72-
- uses: actions/checkout@v3
72+
- uses: actions/checkout@v4
7373

7474
- name: Set up Python
7575
uses: actions/setup-python@v4
@@ -91,7 +91,7 @@ jobs:
9191
contents: read # to fetch code (actions/checkout)
9292

9393
name: Build app Release for linux
94-
runs-on: ubuntu-20.04
94+
runs-on: ubuntu-22.04
9595

9696
defaults:
9797
run:
@@ -100,10 +100,10 @@ jobs:
100100
strategy:
101101
fail-fast: true
102102
matrix:
103-
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
103+
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
104104

105105
steps:
106-
- uses: actions/checkout@v3
106+
- uses: actions/checkout@v4
107107

108108
- name: Set up Python on ${{ matrix.pyver }}
109109
uses: actions/setup-python@v4
@@ -125,7 +125,7 @@ jobs:
125125
contents: read # to fetch code (actions/checkout)
126126

127127
name: Build app Release for mac
128-
runs-on: ubuntu-20.04
128+
runs-on: ubuntu-22.04
129129

130130
defaults:
131131
run:
@@ -134,10 +134,10 @@ jobs:
134134
strategy:
135135
fail-fast: true
136136
matrix:
137-
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
137+
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
138138

139139
steps:
140-
- uses: actions/checkout@v3
140+
- uses: actions/checkout@v4
141141

142142
- name: Set up Python on ${{ matrix.pyver }}
143143
uses: actions/setup-python@v4
@@ -159,7 +159,7 @@ jobs:
159159
contents: read # to fetch code (actions/checkout)
160160

161161
name: Build app Release for windows
162-
runs-on: ubuntu-20.04
162+
runs-on: ubuntu-22.04
163163

164164
defaults:
165165
run:
@@ -168,10 +168,10 @@ jobs:
168168
strategy:
169169
fail-fast: true
170170
matrix:
171-
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
171+
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
172172

173173
steps:
174-
- uses: actions/checkout@v3
174+
- uses: actions/checkout@v4
175175

176176
- name: Set up Python on ${{ matrix.pyver }}
177177
uses: actions/setup-python@v4
@@ -193,7 +193,7 @@ jobs:
193193
contents: read # to fetch code (actions/checkout)
194194

195195
name: Build app source
196-
runs-on: ubuntu-20.04
196+
runs-on: ubuntu-22.04
197197

198198
defaults:
199199
run:
@@ -202,7 +202,7 @@ jobs:
202202
fail-fast: true
203203

204204
steps:
205-
- uses: actions/checkout@v3
205+
- uses: actions/checkout@v4
206206

207207
- name: Set up Python
208208
uses: actions/setup-python@v4
@@ -235,11 +235,11 @@ jobs:
235235
strategy:
236236
fail-fast: true
237237
matrix:
238-
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
239-
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
238+
os: [ubuntu-22.04, ubuntu-22.04, macos-11, macos-12]
239+
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
240240

241241
steps:
242-
- uses: actions/checkout@v3
242+
- uses: actions/checkout@v4
243243

244244
- name: Set up Python ${{ matrix.pyver }} on ${{ matrix.os }}
245245
uses: actions/setup-python@v4
@@ -282,10 +282,10 @@ jobs:
282282
fail-fast: true
283283
matrix:
284284
os: [windows-2019, windows-2022]
285-
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
285+
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
286286

287287
steps:
288-
- uses: actions/checkout@v3
288+
- uses: actions/checkout@v4
289289

290290
- name: Set up Python ${{ matrix.pyver }} on ${{ matrix.os }}
291291
uses: actions/setup-python@v4
@@ -326,11 +326,11 @@ jobs:
326326
strategy:
327327
fail-fast: true
328328
matrix:
329-
os: [ubuntu-20.04, ubuntu-22.04]
330-
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
329+
os: [ubuntu-22.04, ubuntu-22.04]
330+
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
331331

332332
steps:
333-
- uses: actions/checkout@v3
333+
- uses: actions/checkout@v4
334334

335335
- name: Set up Python ${{ matrix.pyver }} on ${{ matrix.os }}
336336
uses: actions/setup-python@v4
@@ -368,10 +368,10 @@ jobs:
368368
fail-fast: true
369369
matrix:
370370
os: [macos-11, macos-12]
371-
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
371+
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
372372

373373
steps:
374-
- uses: actions/checkout@v3
374+
- uses: actions/checkout@v4
375375

376376
- name: Set up Python ${{ matrix.pyver }} on ${{ matrix.os }}
377377
uses: actions/setup-python@v4
@@ -409,10 +409,10 @@ jobs:
409409
fail-fast: true
410410
matrix:
411411
os: [windows-2019, windows-2022]
412-
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
412+
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
413413

414414
steps:
415-
- uses: actions/checkout@v3
415+
- uses: actions/checkout@v4
416416

417417
- name: Set up Python ${{ matrix.pyver }} on ${{ matrix.os }}
418418
uses: actions/setup-python@v4
@@ -443,7 +443,7 @@ jobs:
443443
- build_scancode_for_release_linux
444444
- build_scancode_for_release_macos
445445

446-
runs-on: ubuntu-20.04
446+
runs-on: ubuntu-22.04
447447
defaults:
448448
run:
449449
shell: bash
@@ -457,12 +457,6 @@ jobs:
457457
name: source_app
458458
path: dist
459459

460-
- name: Download a single artifact macos_app for python 3.7
461-
uses: actions/download-artifact@v3
462-
with:
463-
name: macos_app_py_3.7
464-
path: dist
465-
466460
- name: Download a single artifact macos_app for python 3.8
467461
uses: actions/download-artifact@v3
468462
with:
@@ -487,10 +481,10 @@ jobs:
487481
name: macos_app_py_3.11
488482
path: dist
489483

490-
- name: Download a single artifact linux_app for python 3.7
484+
- name: Download a single artifact macos_app for python 3.12
491485
uses: actions/download-artifact@v3
492486
with:
493-
name: linux_app_py_3.7
487+
name: macos_app_py_3.12
494488
path: dist
495489

496490
- name: Download a single artifact linux_app for python 3.8
@@ -517,10 +511,10 @@ jobs:
517511
name: linux_app_py_3.11
518512
path: dist
519513

520-
- name: Download a single artifact windows_app for python 3.7
514+
- name: Download a single artifact linux_app for python 3.12
521515
uses: actions/download-artifact@v3
522516
with:
523-
name: windows_app_py_3.7
517+
name: linux_app_py_3.12
524518
path: dist
525519

526520
- name: Download a single artifact windows_app for python 3.8
@@ -547,6 +541,12 @@ jobs:
547541
name: windows_app_py_3.11
548542
path: dist
549543

544+
- name: Download a single artifact windows_app for python 3.12
545+
uses: actions/download-artifact@v3
546+
with:
547+
name: windows_app_py_3.12
548+
path: dist
549+
550550
- name: Mock GH release
551551
run: |
552552
ls -al dist
@@ -566,14 +566,14 @@ jobs:
566566
- smoke_test_install_and_run_pypi_wheels_on_windows
567567
- smoke_test_install_and_run_pypi_wheels_on_posix
568568
- publish_to_gh_release
569-
runs-on: ubuntu-20.04
569+
runs-on: ubuntu-22.04
570570
defaults:
571571
run:
572572
shell: bash
573573
strategy:
574574
fail-fast: true
575575
matrix:
576-
dist_names: ["wheels-3.7", "wheels-3.8", "wheels-3.9", "wheels-3.10", "wheels-3.11", sdists]
576+
dist_names: ["wheels-3.8", "wheels-3.9", "wheels-3.10", "wheels-3.11", "wheels-3.12", sdists]
577577

578578
steps:
579579
- name: Set up Python
@@ -592,6 +592,6 @@ jobs:
592592
ls -al dist
593593
594594
- name: Publish distributions to PyPI
595-
uses: pypa/gh-action-pypi-publish@master
595+
uses: pypa/gh-action-pypi-publish@release/v1
596596
with:
597597
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ TAGS
108108
Procfile
109109
local.cfg
110110
geckodriver.log
111-
var
112111
.metaflow
113112
selenium
114113
/dist/

CHANGELOG.rst

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ v33.0.0 (next next, roadmap)
3737
v32.1.0 (next, roadmap)
3838
----------------------------
3939

40+
New CLI options:
41+
42+
- A new CLI option ``--package-only`` has been added which performs
43+
a faster package scan by skipping the package assembly step and
44+
also skipping license/copyright detection on package metadata.
45+
4046
Major API/other changes:
4147

4248
- Output Format Version updated to 3.1.0 (minor version bump)
@@ -89,11 +95,32 @@ Changes in Output Data Structure:
8995
is_license_notice, is_license_intro etc, as applicable).
9096

9197
- New and updated licenses, including support for newly released
92-
SPDX license list version 3.22. This release of the SPDX license
93-
list had 48 new licenses, and several of them we already had as
94-
licenses/rules, and these has been modified to be consistent with
95-
the SPDX list. And the rest have been added as new licenses.
96-
For more details see https://github.com/nexB/scancode-toolkit/pull/3554
98+
SPDX license list versions:
99+
- SPDX License List 3.22:
100+
This release of the SPDX license list had 48 new licenses,
101+
and several of them we already had as licenses/rules, and
102+
these has been modified to be consistent with the SPDX list.
103+
And the rest have been added as new licenses.
104+
For more details see https://github.com/nexB/scancode-toolkit/pull/3554
105+
106+
- SPDX License List 3.23:
107+
This release of the SPDX license list had 43 new licenses,
108+
and out of them 22 were present as licenses and 10 were
109+
present as rules already. There were 4 new license/exception
110+
texts added, and the rest were either texts with small variations,
111+
additions to texts or several rule texts together.
112+
For more details see https://github.com/nexB/scancode-toolkit/pull/3653
113+
114+
- We also have lots of other misc new licenses and rules added to
115+
LicenseDB, see PRs below for more details:
116+
https://github.com/nexB/scancode-toolkit/pull/3663
117+
https://github.com/nexB/scancode-toolkit/pull/3642
118+
https://github.com/nexB/scancode-toolkit/pull/3586
119+
https://github.com/nexB/scancode-toolkit/pull/3584
120+
https://github.com/nexB/scancode-toolkit/pull/3575
121+
https://github.com/nexB/scancode-toolkit/pull/3570
122+
https://github.com/nexB/scancode-toolkit/pull/3568
123+
https://github.com/nexB/scancode-toolkit/pull/3562
97124

98125
- Improve debian namespace detection based on clues and fix
99126
namespace and qualifier bugs for debian purls.

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.7, 3.8, 3.9 or 3.10
19+
The main one is to have Python installed version 3.8, 3.9, 3.10, 3.11 or 3.12
2020

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

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Installation
140140

141141
Before installing ScanCode make sure that you have installed the prerequisites
142142
properly. This means installing Python 3.8 for x86/64 architectures.
143-
We support Python 3.8, 3.9, 3.10 and 3.11.
143+
We support Python 3.8, 3.9, 3.10, 3.11 and 3.12.
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.

0 commit comments

Comments
 (0)