Skip to content

Commit 63969a2

Browse files
committed
Merge main and fix conflicts
Signed-off-by: tdruez <[email protected]>
2 parents 67ae19c + 6b8871a commit 63969a2

File tree

106 files changed

+2715
-476
lines changed

Some content is hidden

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

106 files changed

+2715
-476
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: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
Changelog
22
=========
33

4-
v34.9.6 (unreleased)
5-
--------------------
4+
v34.10.1 (unreleased)
5+
---------------------
6+
7+
- Convert the ``declared_license`` field value return by ``python-inspector`` in
8+
``resolve_pypi_packages``.
9+
Resolving requirements.txt files will now return proper license data.
10+
https://github.com/aboutcode-org/scancode.io/issues/1598
11+
12+
- Add support for installing on Apple Silicon (macOS ARM64) in dev mode.
13+
https://github.com/aboutcode-org/scancode.io/pull/1646
14+
15+
v34.10.0 (2025-03-21)
16+
---------------------
617

718
- Rename the ``docker``, ``docker_windows``, and ``root_filesystem`` modules to
819
``analyze_docker``, ``analyze_docker_windows``, and ``analyze_root_filesystem``
@@ -17,6 +28,21 @@ v34.9.6 (unreleased)
1728
* Add a new chapter dedicated to Webhooks management in the documentation
1829
* Add support for custom payload dedicated to Slack webhooks
1930

31+
- Upgrade Bulma CSS library to version 1.0.2
32+
https://github.com/aboutcode-org/scancode.io/pull/1268
33+
34+
- Disable the creation of the global webhook in the ``batch-create`` command by default.
35+
The global webhook can be created by providing the ``--create-global-webhook`` option.
36+
A ``--no-global-webhook`` option was also added to the ``create-project`` command to
37+
provide the ability to skip the global webhook creation.
38+
https://github.com/aboutcode-org/scancode.io/pull/1629
39+
40+
- Add support for "Permission denied" file access in make_codebase_resource.
41+
https://github.com/aboutcode-org/scancode.io/issues/1630
42+
43+
- Refine the ``scan_single_package`` pipeline to work on git fetched inputs.
44+
https://github.com/aboutcode-org/scancode.io/issues/1376
45+
2046
v34.9.5 (2025-02-19)
2147
--------------------
2248

Makefile

Lines changed: 9 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"
@@ -79,6 +80,12 @@ check:
7980
@echo "-> Run Ruff format validation"
8081
@${ACTIVATE} ruff format --check
8182
@$(MAKE) doc8
83+
@echo "-> Run ABOUT files validation"
84+
@${ACTIVATE} about check etc/thirdparty/
85+
@${ACTIVATE} about check scancodeio/
86+
# Needs a --exclude scanpipe/tests/ argument
87+
# https://github.com/aboutcode-org/aboutcode-toolkit/issues/583
88+
# @${ACTIVATE} about check scanpipe/
8289

8390
check-deploy:
8491
@echo "-> Check Django deployment settings"

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- `CHANGELOG.rst` (set date)
1010
- Commit and push this branch
1111
- Create a PR and merge once approved
12-
- Tag and push that tag. This will triggers the `pypi-release.yml` GitHub workflow that
12+
- Tag and push that tag. This will trigger the `pypi-release.yml` GitHub workflow that
1313
takes care of building the dist release files and upload those to pypi:
1414
```
1515
VERSION=vx.x.x # <- Set the new version here

docs/command-line-interface.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ Optional arguments:
105105

106106
- ``--pipeline PIPELINES`` Pipelines names to add on the project.
107107

108+
.. warning::
109+
Pipelines are added and are executed in order.
110+
108111
.. tip::
109112
Use the "pipeline_name:option1,option2" syntax to select optional steps:
110113

@@ -137,8 +140,8 @@ Optional arguments:
137140
of running in the current thread.
138141
Applies only when ``--execute`` is provided.
139142

140-
.. warning::
141-
Pipelines are added and are executed in order.
143+
- ``--no-global-webhook`` Skip the creation of the global webhook. This option is
144+
only useful if a global webhook is defined in the settings.
142145

143146
.. _cli_batch_create:
144147

@@ -196,6 +199,9 @@ Optional arguments:
196199
of running in the current thread.
197200
Applies only when ``--execute`` is provided.
198201

202+
- ``--create-global-webhook`` Create the global webhook for each project, if enabled in
203+
the settings. If not provided, the global webhook subscriptions are not created.
204+
199205
Example: Processing Multiple Docker Images
200206
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
201207

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.

0 commit comments

Comments
 (0)