From a0f8d9cd04d85b673285ff7092383b15aee5857a Mon Sep 17 00:00:00 2001 From: "Daniel J. Beutel" Date: Sun, 15 Oct 2023 19:15:45 +0200 Subject: [PATCH] Add licensecheck to CI --- dev/test.sh | 8 ++++++++ pyproject.toml | 7 ++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/dev/test.sh b/dev/test.sh index 6e2301accc62..6ccb12227889 100755 --- a/dev/test.sh +++ b/dev/test.sh @@ -55,3 +55,11 @@ python -m mdformat --check --number doc/source examples echo "- mdformat: done" echo "- All Markdown checks passed" + +echo "- Start license checks" + +echo "- licensecheck: start" +python -m licensecheck -u poetry:dev --fail-licenses gpl +echo "- licensecheck: done" + +echo "- All license checks passed" diff --git a/pyproject.toml b/pyproject.toml index 11910c305f9c..033505db3a26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,10 +57,10 @@ flower-server = "flwr.server:run_server" flower-client = "flwr.client:run_client" [tool.poetry.dependencies] -python = "^3.8" +python = "^3.8" # PSF License Agreement # Mandatory dependencies -numpy = "^1.21.0" -grpcio = "^1.48.2,!=1.52.0" +numpy = "^1.21.0" # BSD 3-Clause "New" or "Revised" License +grpcio = "^1.48.2,!=1.52.0" # protobuf = "^3.19.0" cryptography = "^41.0.2" pycryptodome = "^3.18.0" @@ -119,6 +119,7 @@ twine = "==4.0.2" pyroma = "==4.2" check-wheel-contents = "==0.4.0" GitPython = "==3.1.32" +licensecheck = "==2023.5.1" [tool.isort] line_length = 88