Skip to content

Commit 005b737

Browse files
authored
Merge branch 'main' into fully-qualified-image-names
2 parents 6e74f9f + 83695a5 commit 005b737

File tree

55 files changed

+2613
-1366
lines changed

Some content is hidden

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

55 files changed

+2613
-1366
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Generate SBOMS
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "v*.*.*"
8+
9+
env:
10+
INPUTS_PATH: scancode-inputs
11+
12+
jobs:
13+
generate-sboms:
14+
runs-on: ubuntu-24.04
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Ensure INPUTS_PATH directory exists
21+
run: mkdir -p "${{ env.INPUTS_PATH }}"
22+
23+
- name: Build the Docker image from local Dockerfile
24+
run: docker build -t local-image .
25+
26+
- name: Run pip freeze inside the built Docker container
27+
run: docker run --rm local-image pip freeze --all --exclude scancodeio > "${{ env.INPUTS_PATH }}/requirements.txt"
28+
29+
- name: Collect all .ABOUT files in the scancodeio/ directory
30+
run: |
31+
mkdir -p "${{ env.INPUTS_PATH }}/about-files"
32+
find scancodeio/ -type f -name "*.ABOUT" -exec cp {} "${{ env.INPUTS_PATH }}/about-files/" \;
33+
34+
- name: Resolve the dependencies using ScanCode-action
35+
uses: nexB/scancode-action@main
36+
with:
37+
pipelines: "resolve_dependencies:DynamicResolver"
38+
inputs-path: ${{ env.INPUTS_PATH }}
39+
scancodeio-repo-branch: main

CHANGELOG.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,37 @@
11
Changelog
22
=========
33

4+
5+
=======
6+
v34.11.0 (2025-05-02)
7+
---------------------
8+
9+
- Add a ``UUID`` field on the DiscoveredDependency model.
10+
Use the UUID for the DiscoveredDependency spdx_id for better SPDX compatibility.
11+
https://github.com/aboutcode-org/scancode.io/issues/1651
12+
13+
- Add MatchCode-specific functions to compute fingerprints from stemmed code
14+
files. Update CodebaseResource file content view to display snippet matches,
15+
if available, when the codebase has been sent for matching to MatchCode.
16+
https://github.com/aboutcode-org/scancode.io/pull/1656
17+
18+
- Add the ability to export filtered QuerySet of a FilterView into the JSON format.
19+
https://github.com/aboutcode-org/scancode.io/pull/1572
20+
21+
- Include ``ProjectMessage`` records in the JSON output ``headers`` section.
22+
https://github.com/aboutcode-org/scancode.io/issues/1659
23+
24+
v34.10.1 (2025-03-26)
25+
---------------------
26+
27+
- Convert the ``declared_license`` field value return by ``python-inspector`` in
28+
``resolve_pypi_packages``.
29+
Resolving requirements.txt files will now return proper license data.
30+
https://github.com/aboutcode-org/scancode.io/issues/1598
31+
32+
- Add support for installing on Apple Silicon (macOS ARM64) in dev mode.
33+
https://github.com/aboutcode-org/scancode.io/pull/1646
34+
435
v34.10.0 (2025-03-21)
536
---------------------
637

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ VENV_LOCATION=.venv
2626
ACTIVATE?=. ${VENV_LOCATION}/bin/activate;
2727
MANAGE=${VENV_LOCATION}/bin/python manage.py
2828
VIRTUALENV_PYZ=etc/thirdparty/virtualenv.pyz
29+
PIP_ARGS=--find-links=./etc/thirdparty/dummy_dist
2930
# Do not depend on Python to generate the SECRET_KEY
3031
GET_SECRET_KEY=`head -c50 /dev/urandom | base64 | head -c50`
3132
# Customize with `$ make envfile ENV_FILE=/etc/scancodeio/.env`
@@ -51,11 +52,11 @@ virtualenv:
5152

5253
conf: virtualenv
5354
@echo "-> Install dependencies"
54-
@${ACTIVATE} pip install -e .
55+
@${ACTIVATE} pip install ${PIP_ARGS} --editable .
5556

5657
dev: virtualenv
5758
@echo "-> Configure and install development dependencies"
58-
@${ACTIVATE} pip install -e .[dev]
59+
@${ACTIVATE} pip install ${PIP_ARGS} --editable .[dev]
5960

6061
envfile:
6162
@echo "-> Create the .env file and generate a secret key"
@@ -80,6 +81,8 @@ check:
8081
@echo "-> Run Ruff format validation"
8182
@${ACTIVATE} ruff format --check
8283
@$(MAKE) doc8
84+
@echo "-> Run ABOUT files validation"
85+
@${ACTIVATE} about check --exclude .venv/ --exclude scanpipe/tests/ .
8386

8487
check-deploy:
8588
@echo "-> Check Django deployment settings"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Dummy Wheel Distributions for Apple Silicon (macOS ARM64)
2+
=========================================================
3+
4+
Overview
5+
--------
6+
This directory provides **empty wheel distributions** designed as a workaround to
7+
allow the installation of `ScanCode.io` on **Apple Silicon (macOS ARM64)** platforms.
8+
9+
The issue arises because certain required packages, such as `extractcode-7z`, do not
10+
offer pre-built wheels compatible with Apple Silicon.
11+
Consequently, `pip` encounters dependency resolution errors during installation.
12+
13+
Purpose
14+
-------
15+
The dummy wheels in this project serve as placeholders. These wheels:
16+
- **Contain no functionality** and are completely empty.
17+
- Allow `pip` to resolve dependencies correctly by tricking it into treating the
18+
required package as already installed.
19+
20+
Caution
21+
-------
22+
These dummy wheels **do not provide any actual functionality**.
23+
They only exist to bypass `pip` dependency resolution issues and allow `ScanCode.io`
24+
to be installed on Apple Silicon.
Binary file not shown.
Binary file not shown.
Binary file not shown.

etc/thirdparty/virtualenv.pyz

1.24 MB
Binary file not shown.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
about_resource: virtualenv.pyz
22
name: get-virtualenv
3-
version: 20.27.1
4-
download_url: https://github.com/pypa/get-virtualenv/raw/20.27.1/public/virtualenv.pyz
3+
version: 20.29.3
4+
download_url: https://github.com/pypa/get-virtualenv/raw/20.29.3/public/virtualenv.pyz
55
description: virtualenv is a tool to create isolated Python environments.
66
homepage_url: https://github.com/pypa/virtualenv
77
license_expression: lgpl-2.1-plus AND (bsd-new OR apache-2.0) AND mit AND python AND bsd-new
@@ -10,4 +10,4 @@ copyright: Copyright (c) The Python Software Foundation and others
1010
redistribute: yes
1111
attribute: yes
1212
track_changes: yes
13-
package_url: pkg:github/pypa/get-virtualenv@20.27.1#public/virtualenv.pyz
13+
package_url: pkg:github/pypa/get-virtualenv@20.29.3#public/virtualenv.pyz

scancodeio/__init__.py

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

2929
import git
3030

31-
VERSION = "34.10.0"
31+
VERSION = "34.11.0"
3232

3333
PROJECT_DIR = Path(__file__).resolve().parent
3434
ROOT_DIR = PROJECT_DIR.parent

0 commit comments

Comments
 (0)