Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: no strict dep5 parsing #805

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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 src/reuse/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def _copyright(self) -> Optional[Copyright]:
copyright_path = self.root / ".reuse/dep5"
try:
with copyright_path.open(encoding="utf-8") as fp:
self._copyright_val = Copyright(fp)
self._copyright_val = Copyright(fp, strict=False)
except OSError:
_LOGGER.debug("no .reuse/dep5 file, or could not read it")
except DebianError:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def dep5_copyright():
with (RESOURCES_DIRECTORY / "fake_repository/.reuse/dep5").open(
encoding="utf-8"
) as fp:
return Copyright(fp)
return Copyright(fp, strict=False)


@pytest.fixture()
Expand Down
Loading