diff --git a/ci/update-kubernetes.py b/ci/update-kubernetes.py index 9f2ad058..4fb0b6a7 100755 --- a/ci/update-kubernetes.py +++ b/ci/update-kubernetes.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +# SPDX-FileCopyrightText: Copyright (c) 2024, Kr8s Developers (See LICENSE for list) +# SPDX-License-Identifier: BSD 3-Clause License import json import re import urllib.request diff --git a/conftest.py b/conftest.py index abe02f08..8dc84729 100644 --- a/conftest.py +++ b/conftest.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) +# SPDX-License-Identifier: BSD 3-Clause License import os import time diff --git a/docs/conf.py b/docs/conf.py index 0c1129d6..577c629c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License # Configuration file for the Sphinx documentation builder. diff --git a/examples/kubectl-ng/kubectl_ng/__init__.py b/examples/kubectl-ng/kubectl_ng/__init__.py index b7916cf9..285f6c0c 100644 --- a/examples/kubectl-ng/kubectl_ng/__init__.py +++ b/examples/kubectl-ng/kubectl_ng/__init__.py @@ -1,5 +1,5 @@ -"""kubectl-ng.""" -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, Yuvi Panda, Anaconda Inc, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License +"""kubectl-ng.""" __version__ = "0.0.0" diff --git a/examples/kubectl-ng/kubectl_ng/_api_resources.py b/examples/kubectl-ng/kubectl_ng/_api_resources.py index cd02c89b..b8b7eb18 100644 --- a/examples/kubectl-ng/kubectl_ng/_api_resources.py +++ b/examples/kubectl-ng/kubectl_ng/_api_resources.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import typer from rich import box diff --git a/examples/kubectl-ng/kubectl_ng/_create.py b/examples/kubectl-ng/kubectl_ng/_create.py index b11e500d..070fc637 100644 --- a/examples/kubectl-ng/kubectl_ng/_create.py +++ b/examples/kubectl-ng/kubectl_ng/_create.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import typer diff --git a/examples/kubectl-ng/kubectl_ng/_delete.py b/examples/kubectl-ng/kubectl_ng/_delete.py index 18dae041..0a953d59 100644 --- a/examples/kubectl-ng/kubectl_ng/_delete.py +++ b/examples/kubectl-ng/kubectl_ng/_delete.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import anyio diff --git a/examples/kubectl-ng/kubectl_ng/_exec.py b/examples/kubectl-ng/kubectl_ng/_exec.py index 759e1644..9fdfe161 100644 --- a/examples/kubectl-ng/kubectl_ng/_exec.py +++ b/examples/kubectl-ng/kubectl_ng/_exec.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) +# SPDX-License-Identifier: BSD 3-Clause License import sys from typing import List diff --git a/examples/kubectl-ng/kubectl_ng/_formatters.py b/examples/kubectl-ng/kubectl_ng/_formatters.py index 5eef29ee..3b8deea0 100644 --- a/examples/kubectl-ng/kubectl_ng/_formatters.py +++ b/examples/kubectl-ng/kubectl_ng/_formatters.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, Yuvi Panda, Anaconda Inc, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from datetime import timedelta diff --git a/examples/kubectl-ng/kubectl_ng/_get.py b/examples/kubectl-ng/kubectl_ng/_get.py index 23cda162..dab6feae 100644 --- a/examples/kubectl-ng/kubectl_ng/_get.py +++ b/examples/kubectl-ng/kubectl_ng/_get.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, Yuvi Panda, Anaconda Inc, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from typing import List diff --git a/examples/kubectl-ng/kubectl_ng/_version.py b/examples/kubectl-ng/kubectl_ng/_version.py index 2156fce8..69e8f4bb 100644 --- a/examples/kubectl-ng/kubectl_ng/_version.py +++ b/examples/kubectl-ng/kubectl_ng/_version.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import json import sys diff --git a/examples/kubectl-ng/kubectl_ng/_wait.py b/examples/kubectl-ng/kubectl_ng/_wait.py index 5053493a..3ec4d81e 100644 --- a/examples/kubectl-ng/kubectl_ng/_wait.py +++ b/examples/kubectl-ng/kubectl_ng/_wait.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import asyncio from typing import List, Optional diff --git a/examples/kubectl-ng/kubectl_ng/cli.py b/examples/kubectl-ng/kubectl_ng/cli.py index d7561299..15d5382c 100644 --- a/examples/kubectl-ng/kubectl_ng/cli.py +++ b/examples/kubectl-ng/kubectl_ng/cli.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, Yuvi Panda, Anaconda Inc, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import asyncio from functools import wraps diff --git a/examples/kubectl-ng/kubectl_ng/tests/test_create_delete.py b/examples/kubectl-ng/kubectl_ng/tests/test_create_delete.py index e797a4f1..15c42e8b 100644 --- a/examples/kubectl-ng/kubectl_ng/tests/test_create_delete.py +++ b/examples/kubectl-ng/kubectl_ng/tests/test_create_delete.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2024, Kr8s Developers (See LICENSE for list) +# SPDX-License-Identifier: BSD 3-Clause License import pathlib from kubectl_ng.cli import app diff --git a/examples/kubectl-ng/kubectl_ng/tests/test_exec.py b/examples/kubectl-ng/kubectl_ng/tests/test_exec.py index 89f2afff..bca20aaa 100644 --- a/examples/kubectl-ng/kubectl_ng/tests/test_exec.py +++ b/examples/kubectl-ng/kubectl_ng/tests/test_exec.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2024, Kr8s Developers (See LICENSE for list) +# SPDX-License-Identifier: BSD 3-Clause License import datetime import pathlib diff --git a/examples/kubectl-ng/kubectl_ng/tests/test_formatters.py b/examples/kubectl-ng/kubectl_ng/tests/test_formatters.py index eb2a8b25..28ef06e9 100644 --- a/examples/kubectl-ng/kubectl_ng/tests/test_formatters.py +++ b/examples/kubectl-ng/kubectl_ng/tests/test_formatters.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, Yuvi Panda, Anaconda Inc, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from kubectl_ng._formatters import time_delta_to_string diff --git a/examples/kubectl-ng/kubectl_ng/tests/test_version.py b/examples/kubectl-ng/kubectl_ng/tests/test_version.py index cb901b5f..72da8300 100644 --- a/examples/kubectl-ng/kubectl_ng/tests/test_version.py +++ b/examples/kubectl-ng/kubectl_ng/tests/test_version.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2024, Kr8s Developers (See LICENSE for list) +# SPDX-License-Identifier: BSD 3-Clause License import json import yaml diff --git a/kr8s/__init__.py b/kr8s/__init__.py index 61860872..7ac5cf7c 100644 --- a/kr8s/__init__.py +++ b/kr8s/__init__.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, Yuvi Panda, Anaconda Inc, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from functools import partial, update_wrapper diff --git a/kr8s/_api.py b/kr8s/_api.py index 2fe6d8bb..bd3ff5eb 100644 --- a/kr8s/_api.py +++ b/kr8s/_api.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from __future__ import annotations diff --git a/kr8s/_auth.py b/kr8s/_auth.py index f213a1a9..a12bf60f 100644 --- a/kr8s/_auth.py +++ b/kr8s/_auth.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import base64 import json diff --git a/kr8s/_data_utils.py b/kr8s/_data_utils.py index 33449a75..efd0a853 100644 --- a/kr8s/_data_utils.py +++ b/kr8s/_data_utils.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License """Utilities for working with Kubernetes data structures.""" from typing import Any, Dict, List diff --git a/kr8s/_exceptions.py b/kr8s/_exceptions.py index f4efb91f..cd74ada0 100644 --- a/kr8s/_exceptions.py +++ b/kr8s/_exceptions.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) +# SPDX-License-Identifier: BSD 3-Clause License class NotFoundError(Exception): """Unable to find the requested resource.""" diff --git a/kr8s/_exec.py b/kr8s/_exec.py index 4d784b4f..4c0732f4 100644 --- a/kr8s/_exec.py +++ b/kr8s/_exec.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from __future__ import annotations diff --git a/kr8s/_io.py b/kr8s/_io.py index 73c5236a..fd15aa48 100644 --- a/kr8s/_io.py +++ b/kr8s/_io.py @@ -1,5 +1,5 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Jupyter Development Team., MrNaif2018, Dask Developers, NVIDIA -# SPDX-License-Identifier: MIT License, BSD 3-Clause License +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) +# SPDX-License-Identifier: BSD 3-Clause License # # This file was originally based on universalasync (commit d397911) and jupyter-core (commit 98b9a1a). # Both projects attempt to solve the same problem: how to run nested async tasks. diff --git a/kr8s/_objects.py b/kr8s/_objects.py index 292fa9ef..d7d0ac84 100644 --- a/kr8s/_objects.py +++ b/kr8s/_objects.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, Yuvi Panda, Anaconda Inc, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from __future__ import annotations diff --git a/kr8s/_portforward.py b/kr8s/_portforward.py index 082c6f3c..004660b4 100644 --- a/kr8s/_portforward.py +++ b/kr8s/_portforward.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from __future__ import annotations diff --git a/kr8s/_testutils.py b/kr8s/_testutils.py index 6be428e7..61046c2d 100644 --- a/kr8s/_testutils.py +++ b/kr8s/_testutils.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import contextlib import os diff --git a/kr8s/asyncio/__init__.py b/kr8s/asyncio/__init__.py index d784208d..d7cfa1c7 100644 --- a/kr8s/asyncio/__init__.py +++ b/kr8s/asyncio/__init__.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from kr8s._api import Api # noqa diff --git a/kr8s/asyncio/_api.py b/kr8s/asyncio/_api.py index 925d6998..5c702c7f 100644 --- a/kr8s/asyncio/_api.py +++ b/kr8s/asyncio/_api.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import threading diff --git a/kr8s/asyncio/_helpers.py b/kr8s/asyncio/_helpers.py index 214f8f85..4db6f4c1 100644 --- a/kr8s/asyncio/_helpers.py +++ b/kr8s/asyncio/_helpers.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from typing import Dict, List, Union diff --git a/kr8s/asyncio/objects.py b/kr8s/asyncio/objects.py index 368ff935..621da298 100644 --- a/kr8s/asyncio/objects.py +++ b/kr8s/asyncio/objects.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from kr8s._objects import ( # noqa APIObject, diff --git a/kr8s/asyncio/portforward.py b/kr8s/asyncio/portforward.py index b4bdf433..971367bc 100644 --- a/kr8s/asyncio/portforward.py +++ b/kr8s/asyncio/portforward.py @@ -1,3 +1,3 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License from kr8s._portforward import PortForward # noqa diff --git a/kr8s/conftest.py b/kr8s/conftest.py index 4fc6e585..7257ef64 100644 --- a/kr8s/conftest.py +++ b/kr8s/conftest.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, Yuvi Panda, Anaconda Inc, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import asyncio import base64 diff --git a/kr8s/objects.py b/kr8s/objects.py index 648b1277..b26f86a9 100644 --- a/kr8s/objects.py +++ b/kr8s/objects.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2024, Kr8s Developers (See LICENSE for list) +# SPDX-License-Identifier: BSD 3-Clause License from functools import partial from ._io import run_sync, sync diff --git a/kr8s/portforward.py b/kr8s/portforward.py index 5a764fa9..85c75f15 100644 --- a/kr8s/portforward.py +++ b/kr8s/portforward.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2024, Kr8s Developers (See LICENSE for list) +# SPDX-License-Identifier: BSD 3-Clause License import threading import time diff --git a/kr8s/tests/scripts/envexec.py b/kr8s/tests/scripts/envexec.py index 62ef81e5..0d23820c 100755 --- a/kr8s/tests/scripts/envexec.py +++ b/kr8s/tests/scripts/envexec.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License # # Produce a valid client.authentication.k8s.io/v1beta1 ExecCredential from diff --git a/kr8s/tests/test_api.py b/kr8s/tests/test_api.py index 3543ed64..5bbfecd7 100644 --- a/kr8s/tests/test_api.py +++ b/kr8s/tests/test_api.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import asyncio import queue diff --git a/kr8s/tests/test_auth.py b/kr8s/tests/test_auth.py index 192a67d7..8b97c6f8 100644 --- a/kr8s/tests/test_auth.py +++ b/kr8s/tests/test_auth.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import base64 import sys diff --git a/kr8s/tests/test_data_utils.py b/kr8s/tests/test_data_utils.py index 65b72a0c..863bdb63 100644 --- a/kr8s/tests/test_data_utils.py +++ b/kr8s/tests/test_data_utils.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import pytest diff --git a/kr8s/tests/test_gen.py b/kr8s/tests/test_gen.py index 79101e23..3fa46819 100644 --- a/kr8s/tests/test_gen.py +++ b/kr8s/tests/test_gen.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) +# SPDX-License-Identifier: BSD 3-Clause License import time from kr8s.objects import Pod diff --git a/kr8s/tests/test_io.py b/kr8s/tests/test_io.py index cee24a7e..c9fd9a9d 100644 --- a/kr8s/tests/test_io.py +++ b/kr8s/tests/test_io.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import anyio import pytest diff --git a/kr8s/tests/test_objects.py b/kr8s/tests/test_objects.py index 97bb6850..8eb409bb 100644 --- a/kr8s/tests/test_objects.py +++ b/kr8s/tests/test_objects.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, Yuvi Panda, Anaconda Inc, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import asyncio import datetime diff --git a/kr8s/tests/test_testutils.py b/kr8s/tests/test_testutils.py index d503f0fb..8792e024 100644 --- a/kr8s/tests/test_testutils.py +++ b/kr8s/tests/test_testutils.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Copyright (c) 2023, Dask Developers, NVIDIA +# SPDX-FileCopyrightText: Copyright (c) 2023-2024, Kr8s Developers (See LICENSE for list) # SPDX-License-Identifier: BSD 3-Clause License import os