Skip to content

Commit 17cebba

Browse files
authored
Merge pull request #3 from nexB/develop
Updating my fork
2 parents c697ec9 + 498defa commit 17cebba

File tree

1,097 files changed

+30206
-2155
lines changed

Some content is hidden

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

1,097 files changed

+30206
-2155
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.rst

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,35 @@
11
Changelog
22
=========
33

4+
45
v21.x (next)
56
------------
67

78

9+
v21.2.25
10+
--------
11+
12+
Installation:
13+
14+
- Resolve reported installation issues on macOS, Windows and Linux
15+
- Stop using extras for a default wheel installation
16+
- Build new scancode-toolkit-mini package with limited dependencies for use
17+
when packaging in distros and similar
18+
- The new Dockerfile will be create smaller images and containers
19+
20+
License scanning:
21+
22+
- Over 150 and and updated licenses
23+
- Support the latest SPDX license list v3.11
24+
- Improve license detection accuracy with over 740 new and improved license
25+
detection rules
26+
- Fix license cache handling issues
27+
28+
Misc.:
29+
30+
- Update extractcode, typecode and their native dependencies for better support
31+
of latests versions of macOS.
32+
833

934
v21.2.9
1035
-------
@@ -26,13 +51,16 @@ Operating system support:
2651

2752
License scanning:
2853

29-
- Improve license detection accuracy with over 8400 new license detection fules
54+
- Improve license detection accuracy with over 8400 new license detection rules
3055
added or updated
3156
- Remove the previously deprecated --license-diag option
3257
- Include pre-built license index in release archives to speed up start #988
3358
- Use SPDX LicenseRef-scancode namespace for all licenses keys not in SPDX
3459
- Replace DEJACODE_LICENSE_URL with SCANCODE_LICENSEDB_URL at
3560
https://scancode-licensedb.aboutcode.org #2165
61+
- Add new license flag in license detection results "is_license_intro" that
62+
is used to indicate that a license rule is a short license introduction
63+
statement (that typically may be reported as some unknown license)
3664

3765
Package scanning:
3866

@@ -58,7 +86,6 @@ Misc.:
5886
- Updated scancode.bat to handle % signs in the arguments #1876
5987

6088

61-
6289
v3.2.3 (2020-10-27)
6390
-------------------
6491

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
# limitations under the License.
2222
#
2323

24-
FROM python:3.6
24+
FROM python:3.6-slim-buster
2525

2626
# Requirements as per https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html
2727
RUN apt-get update \
28-
&& apt-get install -y bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev \
29-
&& rm -rf /var/lib/apt/lists/*
28+
&& apt-get install -y bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev libgomp1 \
29+
&& apt-get clean \
30+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
3031

3132
# Create directory for scancode sources
3233
RUN mkdir scancode-toolkit

README.rst

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,18 @@ Why use ScanCode?
4141
companion `ScanCode workbench GUI app <https://github.com/nexB/scancode-workbench>`_
4242
to review and display scan results, statistics and graphics.
4343

44+
- You can also organize and run ScanCode server-side with the
45+
companion `ScanCode.io web app <https://github.com/nexB/scancodeio>`_
46+
to organize and store multiple scan projects including scripting scanning piplines.
47+
48+
4449
- ScanCode is **actively maintained**, has a **growing users and contributors
4550
community**.
4651

4752
- ScanCode is heavily **tested** with an automated test suite of over **20,000 tests**.
4853

54+
- ScanCode has an extensive and growing documentation.
55+
4956
See our `roadmap <https://scancode-toolkit.readthedocs.io/en/latest/contribute/roadmap.html>`_
5057
for upcoming features.
5158

@@ -91,7 +98,9 @@ Other Important Documentation Pages:
9198
- An exhaustive list of `all available options <https://scancode-toolkit.readthedocs.io/en/latest/cli-reference/list-options.html>`_
9299

93100
- Documentation on `Contributing to Code Development <https://scancode-toolkit.readthedocs.io/en/latest/contribute/contrib_dev.html>`_
101+
94102
- Documentation on `Plugin Architecture <https://scancode-toolkit.readthedocs.io/en/latest/plugins/plugin_arch.html>`_
103+
95104
- `FAQ <https://scancode-toolkit.readthedocs.io/en/latest/misc/faq.html>`_
96105

97106
See also https://aboutcode.org for related companion projects and tools.
@@ -101,7 +110,7 @@ Installation
101110
============
102111

103112
Before installing ScanCode make sure that you have installed the prerequisites
104-
properly. This means installing Python (Python 3.6 is required in most cases).
113+
properly. This means installing Python (Python 3.6+ is required).
105114
See `prerequisites <https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#prerequisites>`_
106115
for detailed information on the support platforms and Python versions.
107116

@@ -110,17 +119,16 @@ There are a few common ways to `install ScanCode <https://scancode-toolkit.readt
110119
- `*Recommended* installation as an application: Download a release archive, extract and run.
111120
<https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#installation-as-an-application-downloading-releases>`_
112121

113-
- `Development installation from source code: git clone
122+
- `Development installation from source code using a git clone
114123
<https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#installation-from-source-code-git-clone>`_
115124

116-
- `Development installation as a library: via pip install scancode-toolkit[full]
125+
- `Development installation as a library with "pip install scancode-toolkit"
117126
<https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#pip-install>`_
118127

119-
- `Run as a Docker container: git clone and docker run
128+
- `Run in a Docker container with a git clone and "docker run"
120129
<https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html#installation-via-docker>`_
121130

122131

123-
124132
Quick Start
125133
===========
126134

@@ -146,17 +154,17 @@ for more information.
146154

147155
You can also refer to the `command line options synopsis
148156
<https://scancode-toolkit.readthedocs.io/en/latest/cli-reference/synopsis.html>`_
149-
and an exhaustive list of `all available options
157+
and an exhaustive list of `all available command line options
150158
<https://scancode-toolkit.readthedocs.io/en/latest/cli-reference/list-options.html>`_.
151159

152160

153161
Archive extraction
154162
==================
155163

156-
ScanCode does not extract by default files from tarballs, zip files, and
164+
By default ScanCode does not extract files from tarballs, zip files, and
157165
other archives as part of the scan. The archives that exist in a codebase
158-
must be extracted before running a scan: the bundled utility `extractcode`
159-
is a mostly-universal archive extractor. For example, this command will
166+
must be extracted before running a scan: `extractcode` is a bundled utility
167+
behaving as a mostly-universal archive extractor. For example, this command will
160168
recursively extract the mytar.tar.bz2 tarball in the mytar.tar.bz2-extract
161169
directory::
162170

@@ -198,7 +206,7 @@ License
198206
=======
199207

200208
* Apache-2.0 as the overall license
201-
* CC-BY-4.0 for reference datasets (initially was in the Public Domain.
209+
* CC-BY-4.0 for reference datasets (initially was in the Public Domain).
202210
* Multiple other secondary permissive or copyleft licenses (LGPL, MIT,
203211
BSD, GPL 2/3, etc.) for third-party components.
204212

azure-pipelines.yml

Lines changed: 95 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ jobs:
1717
python_versions: ['3.6']
1818
test_suites:
1919
misc: |
20-
bin/pytest -n 3 -vvs --reruns=2 --test-suite=all \
20+
bin/pytest -n 3 -vvs --test-suite=all \
2121
--ignore=tests/scancode \
2222
--ignore=tests/cluecode \
2323
--ignore=tests/licensedcode
2424
2525
scancode: |
26-
bin/pytest --reruns=2 -vvs --test-suite=all \
26+
bin/pytest -vvs --test-suite=all \
2727
tests/scancode
2828
2929
cluecode: |
30-
bin/pytest -n 3 --reruns=2 -vvs --test-suite=all \
30+
bin/pytest -n 3 -vvs --test-suite=all \
3131
tests/cluecode \
3232
--cov=src --cov-report=term
3333
3434
license_base: |
35-
bin/pytest -n 3 --reruns=2 -vvs --test-suite=all \
35+
bin/pytest -n 3 -vvs --test-suite=all \
3636
--ignore=tests/licensedcode/test_zzzz_cache.py \
3737
--ignore=tests/licensedcode/test_detection_datadriven_external.py \
3838
--ignore=tests/licensedcode/test_detection_datadriven1.py \
@@ -72,39 +72,108 @@ jobs:
7272
-k TestValidateLicenseExtended
7373
7474
license_cache: |
75-
bin/pytest -n 3 --reruns=2 -vvs --test-suite=all \
75+
bin/pytest -n 3 -vvs --test-suite=all \
7676
tests/licensedcode/test_zzzz_cache.py
7777
7878
- template: etc/ci/azure-mac.yml
7979
parameters:
80-
job_name: macos1015_py36
80+
job_name: macos_1014_py3x
81+
image_name: macos-10.14
82+
python_versions: ['3.6', '3.7', '3.8', '3.9']
83+
test_suites:
84+
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
85+
86+
87+
- template: etc/ci/azure-mac.yml
88+
parameters:
89+
job_name: macos_1015_py3x
8190
image_name: macos-10.15
82-
python_versions: ['3.6']
91+
python_versions: ['3.6', '3.7', '3.8', '3.9']
8392
test_suites:
84-
all: bin/pytest -n 3 -vvs --reruns=2
93+
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
94+
95+
96+
# - template: etc/ci/azure-mac.yml
97+
# parameters:
98+
# job_name: macos_110_py3x
99+
# image_name: macos-11.0
100+
# python_versions: ['3.6', '3.7', '3.8', '3.9']
101+
# test_suites:
102+
# all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
103+
85104

86105
- template: etc/ci/azure-win.yml
87106
parameters:
88-
job_name: Win2016_py36
107+
job_name: win_2016_py3x
89108
image_name: vs2017-win2016
90-
python_versions: ['3.6']
109+
python_versions: ['3.6', '3.7', '3.8', '3.9']
110+
python_architecture: x64
111+
test_suites:
112+
all: Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
113+
114+
115+
- template: etc/ci/azure-win.yml
116+
parameters:
117+
job_name: win_2019_py3x
118+
image_name: windows-2019
119+
python_versions: ['3.6', '3.7', '3.8', '3.9']
91120
python_architecture: x64
92121
test_suites:
93-
all: Scripts\pytest -n 3 -vvs --reruns=2
122+
all: Scripts\pytest -n 2 -vvs tests\scancode\test_cli.py
123+
124+
125+
- template: etc/ci/azure-linux.yml
126+
parameters:
127+
job_name: vm_ubuntu16_py3x
128+
image_name: ubuntu-16.04
129+
python_versions: ['3.7', '3.8', '3.9']
130+
test_suites:
131+
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
132+
133+
134+
- template: etc/ci/azure-linux.yml
135+
parameters:
136+
job_name: vm_ubuntu18_py3x
137+
image_name: ubuntu-18.04
138+
python_versions: ['3.6', '3.7', '3.8', '3.9']
139+
test_suites:
140+
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
141+
142+
143+
- template: etc/ci/azure-linux.yml
144+
parameters:
145+
job_name: vm_ubuntu20_py3x
146+
image_name: ubuntu-20.04
147+
python_versions: ['3.6', '3.7', '3.8', '3.9']
148+
test_suites:
149+
all: bin/pytest -n 2 -vvs tests/scancode/test_cli.py
150+
94151

95152
################################################################################
96153
# These jobs are using containers and their own Python 3.6
97154
################################################################################
98155

99-
- template: etc/ci/azure-container-deb.yml
100-
parameters:
101-
job_name: ubuntu18_py36
102-
container: ubuntu:bionic
103-
python_path: python3.6
104-
python_version: '3.6'
105-
install_python: sudo apt-get install -y python3.6 python3.6-venv python3.6-dev
106-
test_suite_label: all
107-
test_suite: bin/pytest -n 3 -vvs --reruns=2
156+
# - template: etc/ci/azure-container-deb.yml
157+
# parameters:
158+
# job_name: ubuntu18_py36
159+
# container: ubuntu:bionic
160+
# python_path: python3.6
161+
# python_version: '3.6'
162+
# install_python: sudo apt-get install -y python3.6 python3.6-venv python3.6-dev
163+
# test_suite_label: all
164+
# test_suite: bin/pytest -n 3 -vvs tests/scancode
165+
166+
167+
# - template: etc/ci/azure-container-deb.yml
168+
# parameters:
169+
# job_name: ubuntu20_py38
170+
# container: ubuntu:focal
171+
# python_path: python3.8
172+
# python_version: '3.8'
173+
# install_python: sudo apt-get install -y python3.8 python3.8-venv python3.8-dev
174+
# test_suite_label: all
175+
# test_suite: bin/pytest -n 3 -vvs tests/scancode
176+
108177

109178
# - template: etc/ci/azure-container-rpm.yml
110179
# parameters:
@@ -117,7 +186,7 @@ jobs:
117186
# sudo yum install -y epel-release
118187
# sudo yum install -y python36 python36-devel python36-virtualenv
119188
# test_suite_label: all
120-
# test_suite: bin/pytest -n 2 -vvs --reruns=3
189+
# test_suite: bin/pytest -n 2 -vvs
121190
#
122191
# - template: etc/ci/azure-container-rpm.yml
123192
# parameters:
@@ -128,7 +197,7 @@ jobs:
128197
# install_packages: echo "No extra packages for now"
129198
# install_python: echo "Python is pre-installed"
130199
# test_suite_label: all
131-
# test_suite: bin/pytest -n 2 -vvs --reruns=3
200+
# test_suite: bin/pytest -n 2 -vvs
132201
#
133202
# - template: etc/ci/azure-container-rpm.yml
134203
# parameters:
@@ -139,7 +208,7 @@ jobs:
139208
# install_packages: echo "No extra packages for now"
140209
# install_python: echo "Python is pre-installed"
141210
# test_suite_label: all
142-
# test_suite: bin/pytest -n 2 -vvs --reruns=3
211+
# test_suite: bin/pytest -n 2 -vvs
143212

144213

145214
################################################################################
@@ -157,7 +226,7 @@ jobs:
157226
# set -e -x
158227
# sudo dnf install -y python3 python3-devel python3-virtualenv
159228
# test_suite_label: all
160-
# test_suite: bin/pytest -n 2 -vvs --reruns=3
229+
# test_suite: bin/pytest -n 2 -vvs
161230
#
162231
# - template: etc/ci/azure-container-rpm.yml
163232
# parameters:
@@ -168,7 +237,7 @@ jobs:
168237
# install_packages: echo "No extra packages for now"
169238
# install_python: echo "Python is pre-installed"
170239
# test_suite_label: all
171-
# test_suite: bin/pytest -n 2 -vvs --reruns=3
240+
# test_suite: bin/pytest -n 2 -vvs
172241

173242

174243
################################################################################
@@ -199,7 +268,7 @@ jobs:
199268
# make -j8
200269
# sudo make altinstall
201270
# test_suite_label: basic tests
202-
# test_suite: bin/pytest -n 2 -vvs --reruns=3
271+
# test_suite: bin/pytest -n 2 -vvs
203272

204273

205274
########################################################################

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export THIRDPARTY_LINKS="https://thirdparty.aboutcode.org/pypi"
5151

5252
# requirements used by default or with --dev.
5353
# note the use of constraints with -c
54-
REQUIREMENTS="--editable .[full] --constraint requirements.txt"
55-
DEV_REQUIREMENTS="--editable .[full] --constraint requirements.txt --editable .[dev] --constraint requirements-dev.txt"
54+
REQUIREMENTS="--editable . --constraint requirements.txt"
55+
DEV_REQUIREMENTS="--editable .[dev] --constraint requirements.txt --constraint requirements-dev.txt"
5656

5757
# default supported Python version
5858
if [[ "$CONFIGURE_SUPPORTED_PYTHON" == "" ]]; then

0 commit comments

Comments
 (0)