mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-15 18:00:59 +00:00
tools(python): update relicensing script
This commit is contained in:
parent
cda35e0e87
commit
e49066c73f
@ -19,12 +19,13 @@
|
|||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
from datetime import date
|
||||||
from typing import List, TextIO
|
from typing import List, TextIO
|
||||||
|
|
||||||
LICENSE_NOTICE = """\
|
LICENSE_NOTICE = """\
|
||||||
# This file is part of the Trezor project.
|
# 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
|
# 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
|
# 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.
|
# You should have received a copy of the License along with this library.
|
||||||
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
|
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
|
||||||
|
|
||||||
"""
|
""".format(
|
||||||
|
year=date.today().year
|
||||||
|
)
|
||||||
|
|
||||||
SHEBANG_HEADER = """\
|
SHEBANG_HEADER = """\
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXCLUDE_FILES = ["src/trezorlib/__init__.py", "src/trezorlib/_ed25519.py"]
|
EXCLUDE_FILES = [
|
||||||
EXCLUDE_DIRS = ["src/trezorlib/messages"]
|
"src/trezorlib/__init__.py",
|
||||||
|
"src/trezorlib/_ed25519.py",
|
||||||
|
"src/trezorlib/messages.py",
|
||||||
|
]
|
||||||
|
EXCLUDE_DIRS = []
|
||||||
|
|
||||||
|
|
||||||
def one_file(fp: TextIO) -> None:
|
def one_file(fp: TextIO) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user