Skip to content

Commit 7374d7c

Browse files
authored
Add SPDX-License-Identifier lines to source files (#134)
Signed-off-by: Andy Fingerhut <[email protected]>
1 parent 82094bd commit 7374d7c

17 files changed

+29
-0
lines changed

Diff for: Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright 2019 Antonin Bas
2+
# SPDX-License-Identifier: Apache-2.0
13
FROM ubuntu:22.04 AS deps
24

35
SHELL ["/bin/bash", "-c"]

Diff for: Dockerfile.dev

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright 2019 Antonin Bas
2+
# SPDX-License-Identifier: Apache-2.0
13
ARG BASE_IMAGE=p4lang/p4runtime-sh:latest
24
FROM ${BASE_IMAGE}
35

Diff for: Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2022 Antonin Bas
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
all: build
25

36
.PHONY: build

Diff for: config_builders/test_tofino.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright 2019 Barefoot Networks, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
45
# you may not use this file except in compliance with the License.

Diff for: config_builders/tofino.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python3
22

33
# Copyright 2019 Barefoot Networks, Inc.
4+
# SPDX-License-Identifier: Apache-2.0
45
#
56
# Licensed under the Apache License, Version 2.0 (the "License");
67
# you may not use this file except in compliance with the License.

Diff for: docker_entry_point.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env bash
22

3+
# Copyright 2019 Antonin Bas
4+
# SPDX-License-Identifier: Apache-2.0
5+
36
source $VENV/bin/activate
47
python3 -m p4runtime_sh "$@"

Diff for: p4runtime-sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python3
22

33
# Copyright 2019 Barefoot Networks, Inc.
4+
# SPDX-License-Identifier: Apache-2.0
45
#
56
# Licensed under the Apache License, Version 2.0 (the "License");
67
# you may not use this file except in compliance with the License.

Diff for: p4runtime-sh-docker

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python3
22

33
# Copyright 2019 Barefoot Networks, Inc.
4+
# SPDX-License-Identifier: Apache-2.0
45
#
56
# Licensed under the Apache License, Version 2.0 (the "License");
67
# you may not use this file except in compliance with the License.

Diff for: p4runtime_sh/__main__.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
# Copyright 2021 Yi Tseng
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
from p4runtime_sh.shell import main
25
main() # pragma: no cover

Diff for: p4runtime_sh/bytes_utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright 2019 Barefoot Networks, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
45
# you may not use this file except in compliance with the License.

Diff for: p4runtime_sh/context.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright 2019 Barefoot Networks, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
45
# you may not use this file except in compliance with the License.

Diff for: p4runtime_sh/global_options.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright 2021 VMware, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
45
# you may not use this file except in compliance with the License.

Diff for: p4runtime_sh/p4runtime.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright 2019 Barefoot Networks, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
45
# you may not use this file except in compliance with the License.

Diff for: p4runtime_sh/shell.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright 2019 Barefoot Networks, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
45
# you may not use this file except in compliance with the License.

Diff for: p4runtime_sh/test.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright 2019 Barefoot Networks, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
45
# you may not use this file except in compliance with the License.

Diff for: p4runtime_sh/utils.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2019 Antonin Bas
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
# See https://stackoverflow.com/a/32997046
25
def my_partialmethod(func, *args1, **kwargs1):
36
def method(self, *args2, **kwargs2):

Diff for: setup.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2021 Yi Tseng
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
import setuptools
25

36
if __name__ == "__main__":

0 commit comments

Comments
 (0)