Skip to content

Commit 990a451

Browse files
CHANGELOG: Mention zstd compression feature
Signed-off-by: Jérémie Dautheribes (Schneider Electric) <jeremie.dautheribes@bootlin.com>
1 parent 8fb878b commit 990a451

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ All notable changes to this project will be documented in this file.
66

77
### Added
88

9+
- Support zstd-compressed SPDX files.
10+
911
### Changed
1012

1113
- Add custom `HelpFormatter` to render boolean flags in a compact `--[no-]flag` format instead of the default `--flag, --no-flag`.
@@ -28,7 +30,7 @@ boolean options, all defaulting to `True`:
2830
- The `--json-output <PATH>` option must now be explicitly specified to enable JSON file generation.
2931

3032
### Fixed
31-
33+
3234
### Removed
3335

3436
- Refocused the tool on producing complete and reliable spdx diff:

‎src/spdx_diff/cli.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
from typing import Any
1818

1919
if version_info >= (3, 14):
20-
from compression import zstd
20+
from compression import zstd
2121
else:
22-
from backports import zstd
22+
from backports import zstd
2323

2424
from . import __version__
2525

@@ -61,7 +61,7 @@ def _parse(self, json_path: pathlib.Path) -> None:
6161

6262
try:
6363
if json_path.suffix == ".zst":
64-
with zstd.open(json_path, 'rt') as f:
64+
with zstd.open(json_path, "rt") as f:
6565
data = json.load(f)
6666
else:
6767
with json_path.open(encoding="utf-8") as f:

0 commit comments

Comments
 (0)