Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ Exit codes:
Downloaded zips are verified with SHA-256 when a checksum is available. Checksums are resolved in this order:
1. `LTP_DOWNLOAD_SHA256_<VERSION>`, where non-alphanumeric characters in the version are replaced with `_` and the name is uppercased.
2. `LTP_DOWNLOAD_SHA256`.
3. The bundled `language_tool_python/integrity.toml` manifest.
3. The bundled `language_tool_python/_ressources/integrity.toml` manifest.

The bundled manifest covers release/archive downloads. Snapshots are not stable, so provide `LTP_DOWNLOAD_SHA256_<VERSION>` or `LTP_DOWNLOAD_SHA256` if you want to verify a snapshot. If no checksum is available, the download proceeds without SHA-256 verification.

Expand Down
4 changes: 3 additions & 1 deletion language_tool_python/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def _read_project_version(pyproject: Path) -> str:

logger = logging.getLogger(__name__)
with importlib.resources.as_file(
importlib.resources.files("language_tool_python").joinpath("logging.toml"),
importlib.resources.files("language_tool_python")
.joinpath("_ressources")
.joinpath("logging.toml"),
) as config_path:
log_config = _load_pyproject_and_logconfig(config_path)
dictConfig(log_config)
Expand Down
4 changes: 3 additions & 1 deletion language_tool_python/download_lt.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def _load_expected_download_sha256(raw_manifest: str) -> dict[str, str]:

with (
importlib.resources.as_file(
importlib.resources.files("language_tool_python").joinpath("integrity.toml"),
importlib.resources.files("language_tool_python")
.joinpath("_ressources")
.joinpath("integrity.toml"),
) as hashes_path,
hashes_path.open("rb") as f,
):
Expand Down
Loading