RFC: Pin all dependencies, new package `scancode-toolkit-lib` for use as a library
Maintainer antworten meist innerhalb von 3 Tagen
@AyanSinhaMahapatra arbeitet bereits daran.
Seit 19.10.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Originally suggested by @tdruez in context of use of scancode-toolkit in scancode.io as a library, and as discussed with @pombredanne and other aboutcode maintainers:
We should consider pinning all dependencies in scancode-toolkit, as this fixes a few issues faced by us currently:
-
pip install scancode-toolkitbreaking more often because of a change in scancode dependencies, and often this takes a while to fix and release, requiring additional steps from scancode users installing scancode via pip. -
With
pip installwe are fetching the latest and greatest from pip for our libraries and this isn't the best thing with supply chain attacks and security issues being more common. -
Unexpected behaviour changes from updated dependencies which are harder to catch (as we only run a fraction of cor tests on latest from pip) and these can cause performance, quality issues which are hard to detect and fix.
So as a solution, we should:
- Pin all dependencies in
scancode-toolkit - Start releasing a new library
scancode-toolkit-libwhich has flexible dependency ranges (as we have in the current scancode-toolkit library) - Also adopt the newer
pylock.tomllockfile format - Development installation should still use latest from pip dependencies as a way to catch these issues early, potentially with the new feature in pip 26.0+
--uploaded-prior-to=https://pip.pypa.io/en/latest/user_guide/#filtering-by-upload-time
The reason behind having the default scancode-toolkit having pinned versions, as opposed to the new scancode-toolkit-lib, is having secure defaults, where we are installing a more secure set of dependencies usually with the default and presently used scancode-toolkit library, even at the added cost of slight friction of downstream tools updating their dependency to scancode-toolkit-lib.
Suggestions are welcome on the above and on better possible names for the new library (currently meantioned as: scancode-toolkit-lib)
- Vorherrschende Sprache
- Python
- Sterne
- 2.7k
- Forks
- 831
- Ø Merge
- 3 T. 4 Std.
- Gemergte PRs (30 T.)
- 7
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus aboutcode-org/scancode-toolkit
-
bug: Unreachable JSON extension and format validation in validate_input_pathEvtl. vergeben @0Cymantek0 hat das vor 18 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
aboutcode-org/scancode-toolkit#5351 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
-
CycloneDX output: metadata.properties[].value emits JSON array instead of stringEvtl. vergeben @0Cymantek0 hat das vor 18 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
aboutcode-org/scancode-toolkit#5349 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Duplicate 'COPYLEFT' entries in legal file classification names in legal.py and classify.pyEvtl. vergeben @Pradeepbeleri hat das vor 45 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
aboutcode-org/scancode-toolkit#5319 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Duplicate autogen.sh entry in commoncode default ignoresEvtl. vergeben @Daksha1611 hat das vor 48 Tagen übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
aboutcode-org/scancode-toolkit#5316 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Duplicate LGPL key in rubygems LICENSES_MAPPING makes one mapping unreachableEvtl. vergeben @Daksha1611 hat das vor 48 Tagen übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
aboutcode-org/scancode-toolkit#5314 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
Alle Issues in aboutcode-org/scancode-toolkit
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
-
Validate finite output clamping limits in StepPredictor.prepare_clamping_params to prevent silent NaN/Inf propagationEvtl. vergeben @muskan-creates352 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
mllam/neural-lam#848 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
infra
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
fab-geocommuns/RNB-coeur#1166 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
deepspeedai/DeepSpeed#8951 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
aws/context-ontology-accelerator#343 ·
Maintainer antworten meist innerhalb von 1 Tag