|
| 1 | +# Introduction |
| 2 | + |
| 3 | +The P4 Consortium's strongly recommends that all source files in this |
| 4 | +repository be licensed with the Apache-2.0 license, and marked in a |
| 5 | +comment with the line: |
| 6 | + |
| 7 | +``` |
| 8 | +# SPDX-License-Identifier: Apache-2.0 |
| 9 | +``` |
| 10 | + |
| 11 | +Exceptions to this are listed below. |
| 12 | + |
| 13 | + |
| 14 | +# Not an exception: Files that import packages released under the Apache-2.0 license |
| 15 | + |
| 16 | +That includes this list of Python packages: |
| 17 | + |
| 18 | ++ grpc - https://pypi.org/project/grpc/ |
| 19 | ++ grpcio - https://pypi.org/project/grpcio/ |
| 20 | ++ p4.v1 - part of the P4Runtime API Python code, released under Apache-2.0 |
| 21 | ++ p4.config.v1 - part of the P4Runtime API Python code, released under |
| 22 | + Apache-2.0 |
| 23 | + |
| 24 | + |
| 25 | +# Not an exception: Files that import packages released under a BSD license |
| 26 | + |
| 27 | +That includes this list of Python packages: |
| 28 | + |
| 29 | ++ mininet - https://github.com/mininet/mininet/blob/master/LICENSE |
| 30 | ++ protobuf - https://pypi.org/project/protobuf/ |
| 31 | + + google.rpc package is auto-generated by Google protobuf |
| 32 | ++ psutil - https://pypi.org/project/psutil/ |
| 33 | + |
| 34 | +These are published under a BSD-3-Clause license. As discussed here: |
| 35 | + |
| 36 | ++ https://github.com/p4lang/p4c/blob/main/docs/licenses-apache-and-bsd.md |
| 37 | + |
| 38 | +we will publish such source files under the Apache-2.0 license, unless |
| 39 | +one of the exceptions below applies. |
| 40 | + |
| 41 | + |
| 42 | +# Exception: Files that import packages released under a GPL license |
| 43 | + |
| 44 | +That includes this list of Python packages: |
| 45 | + |
| 46 | ++ scapy - https://pypi.org/project/scapy/ |
| 47 | + |
| 48 | +As discussed here: |
| 49 | + |
| 50 | ++ https://github.com/p4lang/p4c/blob/main/docs/licenses-apache-and-gpl-v2.md |
| 51 | + |
| 52 | +we recommend that any Python source files that import the scapy |
| 53 | +package, which is released under the GPL v2 license, also be licensed |
| 54 | +as GPL-2.0-only, with this comment line: |
| 55 | + |
| 56 | +``` |
| 57 | +# SPDX-License-Identifier: GPL-2.0-only |
| 58 | +``` |
0 commit comments