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 c13984c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 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 setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ install_requires =
Beautifulsoup4 >= 4.0.0
boolean.py >= 4.0
chardet >= 3.0.0
click >= 6.7, !=7.0
click >= 6.7, !=7.0, !=8.1.8
colorama >= 0.3.9
commoncode >= 32.0.0
container-inspector >= 31.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/packagedcode/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ class DatafileHandler:

# tuple of operating systems where getting package data using this DatafileHandler is supported.
# If None or empty, all platforms are supported, possible values are win, mac, linux, freebsd
supported_oses = ('linux', 'win', 'mac')
supported_oses = None

# Sequence of known fnmatch-style case-insensitive glob patterns (e.g., Unix
# shell style patterns) that apply on the whole POSIX path for package
Expand Down
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 c13984c

Please sign in to comment.