Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

v7.2.1
------

*2025-02-25* -- Update ScanAndFingerprintPackage pipeline to use the ``fingerprint_codebase`` step from the FingerprintCodebase pipeline.

v7.2.0
------

Expand Down
10 changes: 3 additions & 7 deletions src/matchcode_toolkit/pipelines/scan_and_fingerprint_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
from scanpipe.pipelines.scan_single_package import ScanSinglePackage
from scanpipe.pipes import matchcode

from matchcode_toolkit.pipelines.fingerprint_codebase import FingerprintCodebase

class ScanAndFingerprintPackage(ScanSinglePackage):

class ScanAndFingerprintPackage(FingerprintCodebase, ScanSinglePackage):
"""
Scan a single package file or package archive with ScanCode-toolkit, then
calculate the directory fingerprints of the codebase.
Expand Down Expand Up @@ -55,9 +57,3 @@ def steps(cls):
"--classify",
"--summary",
]

def fingerprint_codebase(self):
"""
Compute directory fingerprints for matching purposes
"""
matchcode.fingerprint_codebase_directories(self.project)