From 4a04819d964ec6360e2e1fc80c614fe4b8bdf01d Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Mon, 17 Mar 2025 00:36:32 -0400 Subject: [PATCH] Redirect license to LICENSE.md (#672) * Redirect license to LICENSE.md * bump --- opendbc_repo | 2 +- .../ui/sunnypilot/qt/network/networking.h | 2 +- sunnypilot/mads/helpers.py | 23 ++----------------- sunnypilot/mads/mads.py | 23 ++----------------- sunnypilot/mads/state.py | 23 ++----------------- .../mads/tests/test_mads_state_machine.py | 23 ++----------------- sunnypilot/modeld/runners/run_helpers.py | 10 ++++---- sunnypilot/models/fetcher.py | 10 ++++---- sunnypilot/models/helpers.py | 10 ++++---- sunnypilot/models/manager.py | 10 ++++---- .../models/tests/model_manager_audit.py | 10 ++++---- 11 files changed, 40 insertions(+), 106 deletions(-) diff --git a/opendbc_repo b/opendbc_repo index 9b83f9519d..9fbd19d3a6 160000 --- a/opendbc_repo +++ b/opendbc_repo @@ -1 +1 @@ -Subproject commit 9b83f9519db61c96facb5e20b35d69c13ef3bd91 +Subproject commit 9fbd19d3a6d45f5cd0bb979e0b1d2e2247246b85 diff --git a/selfdrive/ui/sunnypilot/qt/network/networking.h b/selfdrive/ui/sunnypilot/qt/network/networking.h index 3370751bf5..f220b8a50a 100644 --- a/selfdrive/ui/sunnypilot/qt/network/networking.h +++ b/selfdrive/ui/sunnypilot/qt/network/networking.h @@ -1,5 +1,5 @@ /** -* Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. + * Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. * * This file is part of sunnypilot and is licensed under the MIT License. * See the LICENSE.md file in the root directory for more details. diff --git a/sunnypilot/mads/helpers.py b/sunnypilot/mads/helpers.py index 8a7ffe80ec..46f65c999b 100644 --- a/sunnypilot/mads/helpers.py +++ b/sunnypilot/mads/helpers.py @@ -1,27 +1,8 @@ """ -The MIT License - Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Last updated: July 29, 2024 +This file is part of sunnypilot and is licensed under the MIT License. +See the LICENSE.md file in the root directory for more details. """ from openpilot.common.params import Params diff --git a/sunnypilot/mads/mads.py b/sunnypilot/mads/mads.py index 9e53a8eeed..991e345ce8 100644 --- a/sunnypilot/mads/mads.py +++ b/sunnypilot/mads/mads.py @@ -1,27 +1,8 @@ """ -The MIT License - Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Last updated: July 29, 2024 +This file is part of sunnypilot and is licensed under the MIT License. +See the LICENSE.md file in the root directory for more details. """ from cereal import car, log, custom diff --git a/sunnypilot/mads/state.py b/sunnypilot/mads/state.py index e3acf3a0e0..89ae506ac8 100644 --- a/sunnypilot/mads/state.py +++ b/sunnypilot/mads/state.py @@ -1,27 +1,8 @@ """ -The MIT License - Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Last updated: July 29, 2024 +This file is part of sunnypilot and is licensed under the MIT License. +See the LICENSE.md file in the root directory for more details. """ from cereal import log, custom diff --git a/sunnypilot/mads/tests/test_mads_state_machine.py b/sunnypilot/mads/tests/test_mads_state_machine.py index 546893d285..51013b0baf 100644 --- a/sunnypilot/mads/tests/test_mads_state_machine.py +++ b/sunnypilot/mads/tests/test_mads_state_machine.py @@ -1,27 +1,8 @@ """ -The MIT License - Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -Last updated: July 29, 2024 +This file is part of sunnypilot and is licensed under the MIT License. +See the LICENSE.md file in the root directory for more details. """ import pytest diff --git a/sunnypilot/modeld/runners/run_helpers.py b/sunnypilot/modeld/runners/run_helpers.py index cc4c644583..5470106f1d 100644 --- a/sunnypilot/modeld/runners/run_helpers.py +++ b/sunnypilot/modeld/runners/run_helpers.py @@ -1,7 +1,9 @@ -# Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. -# -# This file is part of sunnypilot and is licensed under the MIT License. -# See the LICENSE.md file in the root directory for more details. +""" +Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. + +This file is part of sunnypilot and is licensed under the MIT License. +See the LICENSE.md file in the root directory for more details. +""" import os import pickle diff --git a/sunnypilot/models/fetcher.py b/sunnypilot/models/fetcher.py index f543b00a79..d9aa54aa88 100644 --- a/sunnypilot/models/fetcher.py +++ b/sunnypilot/models/fetcher.py @@ -1,7 +1,9 @@ -# Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. -# -# This file is part of sunnypilot and is licensed under the MIT License. -# See the LICENSE.md file in the root directory for more details. +""" +Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. + +This file is part of sunnypilot and is licensed under the MIT License. +See the LICENSE.md file in the root directory for more details. +""" import json import time diff --git a/sunnypilot/models/helpers.py b/sunnypilot/models/helpers.py index 915f1a4206..dbdef55900 100644 --- a/sunnypilot/models/helpers.py +++ b/sunnypilot/models/helpers.py @@ -1,7 +1,9 @@ -# Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. -# -# This file is part of sunnypilot and is licensed under the MIT License. -# See the LICENSE.md file in the root directory for more details. +""" +Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. + +This file is part of sunnypilot and is licensed under the MIT License. +See the LICENSE.md file in the root directory for more details. +""" import hashlib import os diff --git a/sunnypilot/models/manager.py b/sunnypilot/models/manager.py index 06705bd5ce..5fbad6cd8e 100644 --- a/sunnypilot/models/manager.py +++ b/sunnypilot/models/manager.py @@ -1,7 +1,9 @@ -# Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. -# -# This file is part of sunnypilot and is licensed under the MIT License. -# See the LICENSE.md file in the root directory for more details. +""" +Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. + +This file is part of sunnypilot and is licensed under the MIT License. +See the LICENSE.md file in the root directory for more details. +""" import asyncio import os diff --git a/sunnypilot/models/tests/model_manager_audit.py b/sunnypilot/models/tests/model_manager_audit.py index 1a1ea38e5b..4cd2b7d78e 100644 --- a/sunnypilot/models/tests/model_manager_audit.py +++ b/sunnypilot/models/tests/model_manager_audit.py @@ -1,7 +1,9 @@ -# Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. -# -# This file is part of sunnypilot and is licensed under the MIT License. -# See the LICENSE.md file in the root directory for more details. +""" +Copyright (c) 2021-, Haibin Wen, sunnypilot, and a number of other contributors. + +This file is part of sunnypilot and is licensed under the MIT License. +See the LICENSE.md file in the root directory for more details. +""" from cereal import messaging, custom