-
-
Notifications
You must be signed in to change notification settings - Fork 659
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 license check script for incompatible licenses in pip dependencies #16753
Changes from all commits
3150172
986bb75
4e82e1f
30e0cad
3d316ba
d386d42
b9beec0
a6f87c4
23c5580
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$licenseOutput = (Resolve-Path .\testOutput\license\) | ||
$licenseOutput = "$licenseOutput\licenseCheckResults.md" | ||
.\runlicensecheck.bat "$licenseOutput" | ||
if ($LastExitCode -ne 0) { | ||
Set-AppveyorBuildVariable "testFailExitCode" $LastExitCode | ||
Add-AppveyorMessage "FAIL: License check. See $licenseOutput for more information." | ||
} else { | ||
Add-AppveyorMessage "PASS: License check." | ||
} | ||
Push-AppveyorArtifact $licenseOutput |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Pillow is an implicit dependency and requires zlib and jpeg by default, but we don't need it | ||
Pillow==10.3.0 -C "zlib=disable" -C "jpeg=disable" |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,12 @@ | ||||||
@echo off | ||||||
rem runlicensecheck [<output file>] | ||||||
rem Runs a license check for python dependencies | ||||||
set hereOrig=%~dp0 | ||||||
set here=%hereOrig% | ||||||
if #%hereOrig:~-1%# == #\# set here=%hereOrig:~0,-1% | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this perhaps clearer in intent?
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure, this is magic sauce at the top of each of our |
||||||
set scriptsDir=%here%\venvUtils | ||||||
|
||||||
set checkArgs= | ||||||
if "%1" NEQ "" set checkArgs=--file=%1 --format=markdown | ||||||
call "%scriptsDir%\venvCmd.bat" py -m licensecheck -0 --format ansi %checkArgs% | ||||||
if ERRORLEVEL 1 exit /b %ERRORLEVEL% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it "v2" or "v2 or later"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
our current license is just GPLv2 with 2 modifications
https://github.com/nvaccess/nvda/blob/8fb8ffcaba3950b1e4ca7b58e165267fc5369eb9/copying.txt