From e49066c73f195db96f4120a7190e747298875f92 Mon Sep 17 00:00:00 2001 From: matejcik Date: Fri, 21 Oct 2022 10:30:08 +0200 Subject: [PATCH] tools(python): update relicensing script --- python/helper-scripts/relicence.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/python/helper-scripts/relicence.py b/python/helper-scripts/relicence.py index b378b17b5..2de2febc0 100755 --- a/python/helper-scripts/relicence.py +++ b/python/helper-scripts/relicence.py @@ -19,12 +19,13 @@ import glob import os import sys +from datetime import date from typing import List, TextIO LICENSE_NOTICE = """\ # This file is part of the Trezor project. # -# Copyright (C) 2012-2022 SatoshiLabs and contributors +# Copyright (C) 2012-{year} SatoshiLabs and contributors # # This library is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License version 3 @@ -38,15 +39,21 @@ LICENSE_NOTICE = """\ # You should have received a copy of the License along with this library. # If not, see . -""" +""".format( + year=date.today().year +) SHEBANG_HEADER = """\ #!/usr/bin/env python3 """ -EXCLUDE_FILES = ["src/trezorlib/__init__.py", "src/trezorlib/_ed25519.py"] -EXCLUDE_DIRS = ["src/trezorlib/messages"] +EXCLUDE_FILES = [ + "src/trezorlib/__init__.py", + "src/trezorlib/_ed25519.py", + "src/trezorlib/messages.py", +] +EXCLUDE_DIRS = [] def one_file(fp: TextIO) -> None: