Skip to content

Commit

Permalink
Fix sphinx build and CI tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
  • Loading branch information
AyanSinhaMahapatra committed Dec 30, 2024
1 parent 330ce34 commit 0b29daa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
10 changes: 8 additions & 2 deletions docs/source/reference/available_package_parsers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ parsers in scancode-toolkit during documentation builds.


.. list-table:: Supported Package Parsers
:widths: 10 10 20 10 10 2
:widths: 10 10 20 10 10 10 2
:header-rows: 1

* - Description
Expand Down Expand Up @@ -140,6 +140,13 @@ parsers in scancode-toolkit during documentation builds.
- ``cargo_toml``
- Rust
- https://doc.rust-lang.org/cargo/reference/manifest.html
* - Rust binary
- None
- ``cargo``
- ``linux``, ``win``, ``mac``
- ``rust_binary``
- Rust
- https://github.com/rust-secure-code/cargo-auditable/blob/master/PARSING.md
* - Chef cookbook metadata.json
- ``*/metadata.json``
- ``chef``
Expand Down Expand Up @@ -1008,4 +1015,3 @@ parsers in scancode-toolkit during documentation builds.
- ``windows_executable``
- None
- https://en.wikipedia.org/wiki/Portable_Executable

2 changes: 1 addition & 1 deletion src/packagedcode/templates/available_package_parsers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ parsers in scancode-toolkit during documentation builds.


.. list-table:: Supported Package Parsers
:widths: 10 10 20 10 10 2
:widths: 10 10 20 10 10 10 2
:header-rows: 1

* - Description
Expand Down
1 change: 1 addition & 0 deletions tests/scancode/data/help/help_linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Options:
license/copyright detection and top-level package creation.
-c, --copyright Scan <input> for copyrights.
--go-symbol Collect Go symbols.
--rust-symbol Collect Rust symbols from rust binaries.

other scans:
-i, --info Scan <input> for file information (size, checksums, etc).
Expand Down
2 changes: 1 addition & 1 deletion tests/scancode/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def test_no_version_check_run_is_successful():


def test_usage_and_help_return_a_correct_script_name_on_all_platforms():
result = run_scan_click(['--help'])
result = run_scan_click(options=['--help'], test_mode=False, retry=False)
assert 'Usage: scancode [OPTIONS]' in result.output
# this was showing up on Windows
assert 'scancode-script.py' not in result.output
Expand Down

0 comments on commit 0b29daa

Please sign in to comment.