Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SPDX-License-Identifier: GPL-2.0-only to Python source files using scapy #5111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jafingerhut
Copy link
Contributor

either by directly importing scapy, or by importing a package that imports scapy.

Remove the one Scapy method call in tools/testutils.py that existed, so that it no longer needs to import scapy, reducing the number of Python files that are GPL-2.0-only.

…g scapy

either by directly importing scapy, or by importing a package that
imports scapy.

Remove the one Scapy method call in tools/testutils.py that existed,
so that it no longer needs to import scapy, reducing the number of
Python files that are GPL-2.0-only.

Signed-off-by: Andy Fingerhut <[email protected]>
@jafingerhut jafingerhut marked this pull request as draft January 25, 2025 08:51
@jafingerhut
Copy link
Contributor Author

If this passes all the tests as I think it will, note that the 13 Python source files that have GPL-2.0-only license identifier added to them are probably the only Python source files in this p4c repo that import scapy, either directly or via importing a package that imports scapy. That's it!

I was able to reduce the number by removing the one Scapy method call that was in compare_pkts().

@jafingerhut
Copy link
Contributor Author

FYI, here is a similar PR for the p4lang/tutorials repository, where some Python source files import scapy, but most do not: p4lang/tutorials#665

@fruffy fruffy added the documentation Topics related to compiler documentation. label Jan 26, 2025
Copy link
Contributor

github-actions bot commented Jan 26, 2025

githubloading A preview of this PR is available at: Preview Link
📂 View the source code here: View Source Code
🔧 Commit used for deployment: 88b9fb4cea29d362777bae01ba415af842a56421

Note: Changes may take a few seconds to appear on GitHub Pages. Please refresh the page if you do not see the updates immediately.

@jafingerhut jafingerhut marked this pull request as ready for review February 8, 2025 22:04
@jafingerhut
Copy link
Contributor Author

I think this is ready for review now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Topics related to compiler documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants