diff --git a/Dockerfile b/Dockerfile index 8d6df80..c8c27a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +# Copyright 2019 Antonin Bas +# SPDX-License-Identifier: Apache-2.0 FROM ubuntu:22.04 AS deps SHELL ["/bin/bash", "-c"] diff --git a/Dockerfile.dev b/Dockerfile.dev index 234903a..792ccd9 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,3 +1,5 @@ +# Copyright 2019 Antonin Bas +# SPDX-License-Identifier: Apache-2.0 ARG BASE_IMAGE=p4lang/p4runtime-sh:latest FROM ${BASE_IMAGE} diff --git a/Makefile b/Makefile index 6566b89..297e765 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# Copyright 2022 Antonin Bas +# SPDX-License-Identifier: Apache-2.0 + all: build .PHONY: build diff --git a/config_builders/test_tofino.py b/config_builders/test_tofino.py index dcf9310..536afbe 100644 --- a/config_builders/test_tofino.py +++ b/config_builders/test_tofino.py @@ -1,4 +1,5 @@ # Copyright 2019 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/config_builders/tofino.py b/config_builders/tofino.py index 3cb2142..091b571 100755 --- a/config_builders/tofino.py +++ b/config_builders/tofino.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # Copyright 2019 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/docker_entry_point.sh b/docker_entry_point.sh index fae572c..25ece25 100755 --- a/docker_entry_point.sh +++ b/docker_entry_point.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright 2019 Antonin Bas +# SPDX-License-Identifier: Apache-2.0 + source $VENV/bin/activate python3 -m p4runtime_sh "$@" diff --git a/p4runtime-sh b/p4runtime-sh index cfe5f85..5aef37b 100755 --- a/p4runtime-sh +++ b/p4runtime-sh @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # Copyright 2019 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/p4runtime-sh-docker b/p4runtime-sh-docker index c9fbba2..9c772df 100755 --- a/p4runtime-sh-docker +++ b/p4runtime-sh-docker @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # Copyright 2019 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/p4runtime_sh/__main__.py b/p4runtime_sh/__main__.py index 6f3a02a..28bfa21 100644 --- a/p4runtime_sh/__main__.py +++ b/p4runtime_sh/__main__.py @@ -1,2 +1,5 @@ +# Copyright 2021 Yi Tseng +# SPDX-License-Identifier: Apache-2.0 + from p4runtime_sh.shell import main main() # pragma: no cover diff --git a/p4runtime_sh/bytes_utils.py b/p4runtime_sh/bytes_utils.py index a815d46..6984265 100644 --- a/p4runtime_sh/bytes_utils.py +++ b/p4runtime_sh/bytes_utils.py @@ -1,4 +1,5 @@ # Copyright 2019 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/p4runtime_sh/context.py b/p4runtime_sh/context.py index c9d7877..03e8b6a 100644 --- a/p4runtime_sh/context.py +++ b/p4runtime_sh/context.py @@ -1,4 +1,5 @@ # Copyright 2019 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/p4runtime_sh/global_options.py b/p4runtime_sh/global_options.py index 93002bb..9ebf033 100644 --- a/p4runtime_sh/global_options.py +++ b/p4runtime_sh/global_options.py @@ -1,4 +1,5 @@ # Copyright 2021 VMware, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/p4runtime_sh/p4runtime.py b/p4runtime_sh/p4runtime.py index 5bd0302..fc5de65 100644 --- a/p4runtime_sh/p4runtime.py +++ b/p4runtime_sh/p4runtime.py @@ -1,4 +1,5 @@ # Copyright 2019 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/p4runtime_sh/shell.py b/p4runtime_sh/shell.py index 73aaffb..139cb0b 100644 --- a/p4runtime_sh/shell.py +++ b/p4runtime_sh/shell.py @@ -1,4 +1,5 @@ # Copyright 2019 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/p4runtime_sh/test.py b/p4runtime_sh/test.py index aefab41..f6d15ef 100644 --- a/p4runtime_sh/test.py +++ b/p4runtime_sh/test.py @@ -1,4 +1,5 @@ # Copyright 2019 Barefoot Networks, Inc. +# SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/p4runtime_sh/utils.py b/p4runtime_sh/utils.py index b05b020..0044072 100644 --- a/p4runtime_sh/utils.py +++ b/p4runtime_sh/utils.py @@ -1,3 +1,6 @@ +# Copyright 2019 Antonin Bas +# SPDX-License-Identifier: Apache-2.0 + # See https://stackoverflow.com/a/32997046 def my_partialmethod(func, *args1, **kwargs1): def method(self, *args2, **kwargs2): diff --git a/setup.py b/setup.py index 1abbd06..22c6ce2 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,6 @@ +# Copyright 2021 Yi Tseng +# SPDX-License-Identifier: Apache-2.0 + import setuptools if __name__ == "__main__":