Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7b8c5b7
Add RockspecHandler base and parser
SLASH217 Feb 13, 2026
51a7122
Implement parser logic in handler
SLASH217 Feb 13, 2026
9a71b2c
Add unit tests for RockspecHandler
SLASH217 Feb 13, 2026
8cdc7b5
Integrate RockspecHandler into __init__
SLASH217 Feb 13, 2026
74d7aae
Fix dead documentation links
SLASH217 Feb 13, 2026
3827242
Fix luaparser version specifier #3526
SLASH217 Feb 13, 2026
b152816
Add LuaRocks rockspec package handler to plugins list.
SLASH217 Feb 14, 2026
97b695b
Fix auto-formatter changes in .txt file
SLASH217 Feb 14, 2026
2dcab3c
Fix auto-formatter changes in .txt file
SLASH217 Feb 14, 2026
151b5e5
Fix updated docstrings to be clear and concise.
SLASH217 Feb 20, 2026
ef39a82
Add todo for parsing build table.
SLASH217 Feb 20, 2026
ceef804
Add test file source links.
SLASH217 Feb 20, 2026
7cd1b46
Fix remove unparsed modules from test files
SLASH217 Feb 20, 2026
4eeb9e6
Add transitive dependencies of luaparser
SLASH217 Feb 20, 2026
08717b3
Fix unpin luaparser dependency
SLASH217 Feb 20, 2026
afc3799
Fix tests to follow scancode format
SLASH217 Feb 20, 2026
2a447a2
Fix auto-formatter changes in .txt file
SLASH217 Feb 20, 2026
df09c77
Fix plugins_list for formatter mistakes
SLASH217 Feb 21, 2026
57bf647
Missed one /n causing the ci/cd to fail
SLASH217 Feb 21, 2026
20ecc8d
Removed old test files and expected JSONs
SLASH217 Jun 1, 2026
9886860
Updated test files to be package names and regenerated expected JSON.
SLASH217 Jun 1, 2026
9637987
Updated rockspec parser to parse detailed descriptions and not includ…
SLASH217 Jun 1, 2026
d89ac45
Updated rockspec test file to remove redundant test and update file n…
SLASH217 Jun 1, 2026
b9be3b5
Add luaparser to pyproject.toml dependencies to fix CI/CD failure
SLASH217 Jun 1, 2026
78900a9
Merge remote-tracking branch 'upstream/develop' into support_rockspec
SLASH217 Dec 2, 2026
ca8eb3d
Remove obsolete setup.cfg retained by upstream merge
SLASH217 Dec 2, 2026
db662fb
Keep unrelated contributing link fixes out of rockspec PR
SLASH217 Dec 2, 2026
bce7471
Format rockspec handler and tests with Ruff
SLASH217 Dec 2, 2026
ef46b9e
Document LuaRocks rockspec support
SLASH217 Dec 2, 2026
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
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ The following organizations or individuals have contributed to ScanCode:
- Pierre Tardy @tardyp
- Pranamika Pandey @Pihu1998
- Pratik Dey @Pratikrocks
- Prashanna Dahal @SLASH217
- Qingmin Duanmu @qduanmu
- Rakesh Balusa @balusarakesh
- Ranvir Singh @singh1114
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Changelog
Next release
--------------

- Add support for LuaRocks ``.rockspec`` manifests. ScanCode reports package
metadata and declared Lua dependencies with ``--package``.
https://github.com/aboutcode-org/scancode-toolkit/issues/3526

v33.0.0 - 2026-10-30
------------------------

Expand Down
7 changes: 7 additions & 0 deletions docs/source/reference/scancode-supported-packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,13 @@ parsers in scancode-toolkit during documentation builds.
- ``etc_os_release``
- None
- https://www.freedesktop.org/software/systemd/man/os-release.html
* - LuaRocks rockspec file
- ``*.rockspec``
- ``luarocks``
- ``linux``, ``win``, ``mac``
- ``luarocks_rockspec``
- Lua
- https://github.com/luarocks/luarocks/blob/main/docs/rockspec_format.md
* - Gradle build script
- ``*/build.gradle``
``*/build.gradle.kts``
Expand Down
1 change: 1 addition & 0 deletions pyproject-scancode-toolkit-mini.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ dependencies = [
"jsonstreams >= 0.5.0",
"license_expression >= 30.4.4",
"lxml >= 5.4.0",
"luaparser >= 4.0.0",
"MarkupSafe >= 2.1.2",
"multiregex >= 2.0.3",
"normality <= 2.6.1",
Expand Down
1 change: 1 addition & 0 deletions pyproject-scancode-toolkit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ dependencies = [
"jsonstreams >= 0.5.0",
"license_expression >= 30.4.4",
"lxml >= 5.4.0",
"luaparser >= 4.0.0",
"MarkupSafe >= 2.1.2",
"multiregex >= 2.0.3",
"normality <= 2.6.1",
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ dependencies = [
"jsonstreams >= 0.5.0",
"license_expression >= 30.4.4",
"lxml >= 5.4.0",
"luaparser >= 4.0.0",
"MarkupSafe >= 2.1.2",
"multiregex >= 2.0.3",
"normality <= 2.6.1",
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
antlr4-python3-runtime == 4.13.2
attrs==25.4.0
babel==2.17.0
banal==1.0.6
Expand Down Expand Up @@ -41,8 +42,10 @@ jsonstreams==0.6.0
keyring==23.7.0
license-expression==30.4.4
lxml==6.1.0
luaparser==4.0.0
Comment thread
AyanSinhaMahapatra marked this conversation as resolved.
Resolved
MarkupSafe==3.0.3
more-itertools==10.8.0
multimethod==2.0.2
Comment thread
SLASH217 marked this conversation as resolved.
Resolved
multiregex==2.0.3
normality==2.6.1
openpyxl==3.0.10
Expand Down
3 changes: 3 additions & 0 deletions src/packagedcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from packagedcode import pubspec
from packagedcode import pypi
from packagedcode import readme
from packagedcode import rockspec
from packagedcode import rpm
from packagedcode import rubygems
from packagedcode import swift
Expand Down Expand Up @@ -204,6 +205,8 @@
rubygems.GemspecInExtractedGemHandler,
rubygems.GemspecHandler,

rockspec.RockspecHandler,

swift.SwiftManifestJsonHandler,
swift.SwiftPackageResolvedHandler,
swift.SwiftShowDependenciesDepLockHandler,
Expand Down
Loading
Loading