Skip to content

Commit c71ab1b

Browse files
authored
upgrade-license-check (#398)
1 parent 2b71628 commit c71ab1b

File tree

3 files changed

+60
-30
lines changed

3 files changed

+60
-30
lines changed

.github/workflows/license-check.yml

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -40,35 +40,13 @@ jobs:
4040
python-version: 3.11
4141
- name: Get explicit and transitive dependencies
4242
run: |
43-
pip install -U pip==22.0.4 setuptools==58.3.0
44-
pip install -q -r requirements.txt
45-
pip freeze > requirements-all.txt
46-
working-directory: ./backend
47-
- name: Check python
48-
id: license_check_report
49-
uses: pilosus/[email protected]
50-
with:
51-
requirements: "backend/requirements-all.txt"
52-
fail: "Copyleft,Other,Error"
53-
exclude: '(category_encoders.*2\.7\..*|attrs.*25\.3\..*|referencing.*0\.36\..*|envier.*0\.5\.0|psycopg2.*2\.9\.3|fqdn.*1\.5\.1|pyzmq.*25\.1\.2|debugpy.*1\.6\.7|certifi.*2025\.1\.31|tqdm.*4\.67\..*|webencodings.*0\.5\.1|torch.*1\.10\.2.*|torch.*1\.11\.0.*|pytorch-ignite.*0\.4\.10.*|torchaudio.*0\.11\.0.*|torchvision.*0\.12\.0.*|terminado.*0\.15\.0|qudida.*0\.0\.4|expiringdict.*1\.2\.2|botocore.*1\.29\.80|orderedmultidict.*1\.0\.1|termcolor.*3\.0\.1|pillow.*11\.2\.1|deepchecks.*)'
54-
# psycopg2 is LGPL 2
55-
# category_encoders is BSD https://github.com/scikit-learn-contrib/category_encoders/tree/master?tab=BSD-3-Clause-1-ov-file
56-
# attrs is MIT https://github.com/python-attrs/attrs/blob/main/LICENSE
57-
# referencing is MIT https://github.com/python-jsonschema/referencing?tab=MIT-1-ov-file
58-
# pyzmq is Revised BSD https://github.com/zeromq/pyzmq/blob/main/examples/LICENSE
59-
# debugpy is MIT https://github.com/microsoft/debugpy/blob/main/LICENSE
60-
# certifi is MPL-2.0 https://github.com/certifi/python-certifi/blob/master/LICENSE
61-
# tqdm is MPL-2.0 https://github.com/tqdm/tqdm/blob/master/LICENCE
62-
# webencodings is BSD https://github.com/gsnedders/python-webencodings/blob/master/LICENSE
63-
# torch is BSD https://github.com/pytorch/pytorch/blob/master/LICENSE
64-
# torchvision is BSD https://github.com/pytorch/vision/blob/main/LICENSE
65-
# torchaudio is BSD https://github.com/pytorch/audio/blob/main/LICENSE
66-
# terminado is BSD https://github.com/jupyter/terminado/blob/main/LICENSE
67-
# termcolor is MIT https://github.com/termcolor/termcolor/blob/main/COPYING.txt
68-
# orderedmultidict is freeley distributed https://github.com/gruns/orderedmultidict/blob/master/LICENSE.md
69-
- name: Print report
70-
if: ${{ always() }}
71-
run: echo "${{ steps.license_check_report.outputs.report }}"
43+
pip install -U pip==25.1.1 setuptools==80.9.0
44+
pip install -q -r backend/requirements.txt
45+
- name: Set up liccheck
46+
run: pip install liccheck
47+
- name: Run liccheck
48+
run: python -m liccheck -r backend/requirements.txt -s liccheck.ini
49+
7250
frontend-license-check:
7351
runs-on: ubuntu-latest
7452
steps:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ENV MIXPANEL_ID=$MIXPANEL_ID
4848
# ---
4949
ARG DEEPCHECKS_CI_TOKEN
5050

51-
RUN ln -s /usr/bin/python3.11 /usr/bin/python && python -m pip install -U pip "setuptools"
51+
RUN ln -s /usr/bin/python3.11 /usr/bin/python && python -m pip install -U pip==25.1.1 setuptools==80.9.0 --no-cache-dir
5252
# For ARM arch, ray>2.3.1 uses grpcio==1.51.3 which doesn't has wheel and takes forever to build from source
5353
RUN python -m pip install ray==2.9.0 grpcio==1.60.0 --no-cache-dir
5454
RUN python -m pip install -r backend_requirements.txt --compile --no-cache-dir

liccheck.ini

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[Licenses]
2+
authorized_licenses:
3+
bsd
4+
new bsd
5+
bsd license
6+
new bsd license
7+
simplified bsd
8+
BSD 3-Clause
9+
BSD-3-Clause
10+
2-clause BSD
11+
LICENSE.BSD3
12+
3-Clause BSD
13+
14+
apache
15+
apache 2.0
16+
apache software license
17+
apache software
18+
Apache License, Version 2.0
19+
Apache-2.0
20+
21+
gnu lgpl
22+
GNU Library or Lesser General Public License (LGPL)
23+
GNU Affero General Public License v3 or later (AGPLv3+)
24+
25+
isc license
26+
isc license (iscl)
27+
28+
mit
29+
mit license
30+
MIT-CMU
31+
CMU License (MIT-CMU)
32+
MIT AND Python-2.0
33+
34+
Python Software Foundation
35+
PSF-2.0
36+
37+
Historical Permission Notice and Disclaimer (HPND)
38+
Mozilla Public License 2.0 (MPL 2.0)
39+
The Unlicense (Unlicense)
40+
Freely Distributable
41+
Public Domain
42+
43+
[Authorized Packages]
44+
# MIT
45+
qudida: 0.0.4
46+
sqloxide: 0.1.54
47+
# BSD
48+
category-encoders: 2.7.0
49+
# BSD + APACHe + Third Party
50+
pypdfium2: 4.30.1
51+
52+
setuptools: 80.9.0

0 commit comments

Comments
 (0)