Skip to content

Commit

Permalink
Merge pull request #3291 from nexB/release-32-rc3-prep
Browse files Browse the repository at this point in the history
Release v32.0.0rc3 prep
  • Loading branch information
AyanSinhaMahapatra committed Mar 20, 2023
2 parents 1f88f60 + c066764 commit 95a5f33
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
28 changes: 13 additions & 15 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Package detection:
License detection:
~~~~~~~~~~~~~~~~~~~

- The SPDX license list has been updated to the latest v3.19
- The SPDX license list has been updated to the latest v3.20

- This is a major update to license detection where we now combine one or more
license matches in a larger license detection. This approach improves the
Expand All @@ -78,11 +78,9 @@ License detection:
- There is a new ``license_detections`` codebase level attribute with all the
unique license detections in the whole scan, both in resources and packages.
This has the 3 attributes also present in package/resource level license
detections: ``license_expression``, ``matches`` and ``detection_log`` and has
two additional attributes:

- ``identifier``: which is the ``license_expression`` with an UUID created out
of the detection contents and is the same for same detections.
detections: ``license_expression``, ``identifier`` and ``detection_log``
(present optionally if the ``--license-diagnostics`` option is enabled) with
an additional attribute:

- ``count``: Number of times in the codebase this unique license detection
was encountered.
Expand All @@ -91,15 +89,14 @@ License detection:

- The ``licenses`` attribute is deleted.

- A new ``for_license_detections`` attribute is aded which references the codebase
level unique license detections, and this is a list of ``identifer`` strings from
the codebase level license detections it references.

- A new ``license_detections`` attribute contains license detections in that file.
This object has three attributes: ``license_expression``, ``detection_log``
This object has three attributes: ``license_expression``, ``identifier``
and ``matches``. ``matches`` is a list of license matches and is roughly
the same as ``licenses`` in the previous version with additional structure
changes detailed below.
changes detailed below. Identifier is the detected license-expression with an
UUID generated from the content of ``matches`` such that this is unique for
unique detections. We also have another attribute ``detection_log`` with
diagnostics information if the ``--license-diagnostics`` option is enabled.

- A new attribute ``license_clues`` contains license matches with the
same data structure as the ``matches`` attribute in ``license_detections``.
Expand Down Expand Up @@ -140,13 +137,14 @@ License detection:
avoiding nesting. See `license updates doc <https://scancode-toolkit.readthedocs.io/en/latest/explanations/license-detection-reference.html#licensematch-result-data>`_
for examples and details.

- There are new and codebase level attributes default with `--licenses` to report
- There are new and codebase level attributes with ``--license-references`` to report
reference license metadata and texts once for each license matched across the
scan; we now have two codebase level attributes: ``license_references`` and
``license_rule_references`` that list unique detected license and license rules.
for examples and details. This reference data is also removed from license matches
in all levels i.e. from codebase, package and resource level license detections and
resource level license clues.
resource level license clues, irrespective of this CLI option being used, i.e. default
with ``--licenses``.
See `license updates documentation <https://scancode-toolkit.readthedocs.io/en/latest/explanations/license-detection-reference.html#comparision-before-after-license-references>`_

- We replaced the ``scancode --reindex-licenses`` command line option with a
Expand All @@ -166,7 +164,7 @@ License detection:

- See https://github.com/nexB/scancode-toolkit/issues/480 for more details.

- We combined the licensedata file and text file of each license in a single
- We combined the license data file and text file of each license in a single
file with a .LICENSE extension. The .yml data file is now included at the
top of each .LICENSE file as "YAML frontmatter". The same applies to license
rules and their .RULE and .yml files. This halves the number of data files
Expand Down
2 changes: 1 addition & 1 deletion setup-mini.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = scancode-toolkit
version = 32.0.0rc2
version = 32.0.0rc3
license = Apache-2.0 AND CC-BY-4.0 AND LicenseRef-scancode-other-permissive AND LicenseRef-scancode-other-copyleft

# description must be on ONE line https://github.com/pypa/setuptools/issues/1390
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = scancode-toolkit
version = 32.0.0rc2
version = 32.0.0rc3
license = Apache-2.0 AND CC-BY-4.0 AND LicenseRef-scancode-other-permissive AND LicenseRef-scancode-other-copyleft

# description must be on ONE line https://github.com/pypa/setuptools/issues/1390
Expand Down
4 changes: 2 additions & 2 deletions src/scancode_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ def _create_dir(location):
# 4. hardcoded This is the default, fallback version in case package is not installed or we
# do not have a proper version otherwise.
if not __version__:
__version__ = '32.0.0rc2'
__version__ = '32.0.0rc3'

#######################
# used to warn user when the version is out of date
__release_date__ = datetime.datetime(2023, 1, 15)
__release_date__ = datetime.datetime(2023, 3, 20)

# See https://github.com/nexB/scancode-toolkit/issues/2653 for more information
# on the data format version
Expand Down

0 comments on commit 95a5f33

Please sign in to comment.