Skip to content

Commit

Permalink
Merge pull request #302 from nexB/update-matchcode-toolkit
Browse files Browse the repository at this point in the history
Update scan_and_fingerprint_package pipeline #49 #285
  • Loading branch information
JonoYang authored Feb 24, 2024
2 parents 1272a61 + 28e6456 commit 6ea39be
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 83 deletions.
5 changes: 5 additions & 0 deletions matchcode-toolkit/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

v3.0.0
------

*2024-02-23* -- Update ``ScanAndFingerprintPackage`` pipeline to reflect the renaming of the ``ScanPackage`` pipeline to ``ScanSinglePackage`` in scancode.io

v2.0.1
------

Expand Down
125 changes: 117 additions & 8 deletions matchcode-toolkit/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,124 @@
[build-system]
requires = [ "flot>=0.7.0" ]
build-backend = "flot.buildapi"

[project]
name = "matchcode-toolkit"
version = "2.0.1"
version = "3.0.0"
description = "matchcode-toolkit"
readme = "README.rst"
license = { text = "Apache-2.0" }
requires-python = ">=3.7"

[build-system]
requires = ["setuptools >= 50", "wheel", "setuptools_scm[toml] >= 6"]
build-backend = "setuptools.build_meta"
authors = [
{ name = "nexB. Inc. and others", email = "[email protected]" },
]

keywords = [
"matchcode",
"ScanCode.io",
"open source",
]

classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development",
"Topic :: Utilities",
]

dependencies = [
"bitarray",
"commoncode",
"plugincode",
]

urls = { Homepage = "https://github.com/nexB/purldb/tree/main/matchcode-toolkit" }


[project.optional-dependencies]
docs = [
"doc8 >= 0.8.1",
"Sphinx == 5.1.0",
"sphinx-autobuild",
"sphinx-copybutton",
"sphinx-reredirects >= 0.1.2",
"sphinx-rtd-dark-mode>=1.3.0",
"sphinx_rtd_theme >= 0.5.1",
]

testing = [
"aboutcode-toolkit >= 7.0.2",
"black",
"isort",
"pycodestyle >= 2.8.0",
"pytest >= 6, != 7.0.0",
"pytest-rerunfailures",
"pytest-xdist >= 2",
"twine",
"vendorize >= 0.2.0",
"bump-my-version",
]


[project.entry-points."scancode_post_scan"]
fingerprint = "matchcode_toolkit.plugin_fingerprint:Fingerprint"


[tool.bumpversion]
current_version = "3.0.0"
allow_dirty = true

files = [
{ filename = "pyproject.toml" },
]


[tool.flot]
includes = [
"src/**/*",
]
excludes = [
# Python compiled files
"**/*.py[cod]",
"**/*.egg-info",
# Various junk and temp files
"**/.DS_Store",
"**/*~",
"**/.*.sw[po]",
"**/.ve",
"**/*.bak",
"**/.ipynb_checkpoints",
]

metadata_files = ["*.LICENSE", "NOTICE", ]
editable_paths = ["src", "tests"]
wheel_path_prefixes_to_strip = ["src"]
sdist_extra_includes = [
"etc/**/*",
"docs/**/*",
".github/**/*",
"tests/**/*",
".gitattributes",
".gitignore",
"thirdparty/**/*",
"*.LICENSE",
"NOTICE",
"*.ABOUT",
"*.toml",
"*.yml",
"*.rst",
"*.py",
]

[tool.isort]
force_single_line = "True"
line_length = 88
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
skip = "doc,venv,tmp,thirdparty,build,dist"

[tool.setuptools_scm]
# this is used populated when creating a git archive
# and when there is .git dir and/or there is no git installed
fallback_version = "9999.$Format:%h-%cs$"

[tool.pytest.ini_options]
norecursedirs = [
Expand Down
67 changes: 0 additions & 67 deletions matchcode-toolkit/setup.cfg

This file was deleted.

6 changes: 0 additions & 6 deletions matchcode-toolkit/setup.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
# ScanCode.io is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode.io for support and download.

from scanpipe.pipelines.scan_package import ScanPackage
from scanpipe.pipelines.scan_single_package import ScanSinglePackage
from scanpipe.pipes import matchcode


class ScanAndFingerprintPackage(ScanPackage):
class ScanAndFingerprintPackage(ScanSinglePackage):
"""
Scan a single package file or package archive with ScanCode-toolkit, then
calculate the directory fingerprints of the codebase.
Expand Down

0 comments on commit 6ea39be

Please sign in to comment.