This is an automated email from the ASF dual-hosted git repository. sbp pushed a commit to branch sbp in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
commit 864dd21dd3282660581e8de9f0aece05ab71f590 Author: Sean B. Palmer <[email protected]> AuthorDate: Fri Mar 13 14:17:43 2026 +0000 Allow LICENSE.txt and NOTICE.txt files --- atr/tasks/checks/license.py | 4 ++-- atr/tasks/checks/paths.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/atr/tasks/checks/license.py b/atr/tasks/checks/license.py index 722e160f..d9673cc3 100644 --- a/atr/tasks/checks/license.py +++ b/atr/tasks/checks/license.py @@ -277,11 +277,11 @@ def _files_check_core_logic(archive_dir: pathlib.Path, is_podling: bool) -> Iter # Skip subdirectories continue - if entry == "LICENSE": + if entry in ("LICENSE", "LICENSE.txt"): # TODO: Check length, should be 11,358 bytes license_diff = _files_check_core_logic_license(entry_path) license_results[entry] = license_diff - elif entry == "NOTICE": + elif entry in ("NOTICE", "NOTICE.txt"): # TODO: Check length doesn't exceed some preset notice_ok, notice_issues, notice_preamble = _files_check_core_logic_notice(entry_path) notice_results[entry] = (notice_ok, notice_issues, notice_preamble) diff --git a/atr/tasks/checks/paths.py b/atr/tasks/checks/paths.py index 36ce14c0..e4f4eaef 100644 --- a/atr/tasks/checks/paths.py +++ b/atr/tasks/checks/paths.py @@ -33,7 +33,9 @@ _ALLOWED_TOP_LEVEL: Final = frozenset( { "CHANGES", "LICENSE", + "LICENSE.txt", "NOTICE", + "NOTICE.txt", "README", } ) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
