From a4e4528f1890d359b7b7471ee7ecb7b055b135ff Mon Sep 17 00:00:00 2001 From: Robert Parini Date: Thu, 19 Aug 2021 21:46:41 +0100 Subject: [PATCH 1/2] Append to instead of replace LICENSE.txt --- azure/windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure/windows.yml b/azure/windows.yml index 459b681..a4a3e5b 100644 --- a/azure/windows.yml +++ b/azure/windows.yml @@ -86,8 +86,8 @@ jobs: # a bit overkill, all we really need is cython python -m pip install --timeout=60 -r test_requirements.txt - # handle license - cp ../LICENSE_win32.txt LICENSE.txt + # append to license + cat ../LICENSE_win32.txt >> LICENSE.txt # handle _distributor_init.py PYTHONPATH=tools python -c "import openblas_support; openblas_support.make_init('numpy')" From 1e36dd219d95021396fdcff4cdd1c67cc2bfae52 Mon Sep 17 00:00:00 2001 From: Robert Parini Date: Thu, 19 Aug 2021 22:02:53 +0100 Subject: [PATCH 2/2] Test that "NumPy Developers" appear in License --- check_license.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_license.py b/check_license.py index ba1ada0..e5912d3 100755 --- a/check_license.py +++ b/check_license.py @@ -16,7 +16,7 @@ import argparse def check_text(text): - ok = (u'Copyright (c)' in text and + ok = (u'Copyright (c)' in text and u'NumPy Developers' in text and re.search(u'This binary distribution of \w+ also bundles the following software', text)) return ok