Skip to content

Commit

Permalink
Add SPDX-License-Identifier lines to source files
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Fingerhut <[email protected]>
  • Loading branch information
jafingerhut committed Feb 1, 2025
1 parent 82094bd commit 94b754c
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2019 Antonin Bas
# SPDX-License-Identifier: Apache-2.0
FROM ubuntu:22.04 AS deps

SHELL ["/bin/bash", "-c"]
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright 2019 Antonin Bas
# SPDX-License-Identifier: Apache-2.0
ARG BASE_IMAGE=p4lang/p4runtime-sh:latest
FROM ${BASE_IMAGE}

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2022 Antonin Bas
# SPDX-License-Identifier: Apache-2.0

all: build

.PHONY: build
Expand Down
1 change: 1 addition & 0 deletions config_builders/test_tofino.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions config_builders/tofino.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions docker_entry_point.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"
1 change: 1 addition & 0 deletions p4runtime-sh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions p4runtime-sh-docker
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions p4runtime_sh/__main__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Copyright 2021 Yi Tseng
# SPDX-License-Identifier: Apache-2.0

from p4runtime_sh.shell import main
main() # pragma: no cover
1 change: 1 addition & 0 deletions p4runtime_sh/bytes_utils.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions p4runtime_sh/context.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions p4runtime_sh/global_options.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions p4runtime_sh/p4runtime.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions p4runtime_sh/shell.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions p4runtime_sh/test.py
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions p4runtime_sh/utils.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2021 Yi Tseng
# SPDX-License-Identifier: Apache-2.0

import setuptools

if __name__ == "__main__":
Expand Down

0 comments on commit 94b754c

Please sign in to comment.