Skip to content

Commit 2901e9f

Browse files
Merge pull request #459 from wphillipmoore/feature/458-pip-licenses-from-file
fix(ci): read pip-licenses --allow-only from .pip-licenses-allowlist file
2 parents 2c4cafb + 5318b91 commit 2901e9f

4 files changed

Lines changed: 10 additions & 110 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,7 @@ jobs:
127127
- name: Run pip-licenses (license compliance)
128128
run: >-
129129
uv run pip-licenses
130-
--allow-only="Apache-2.0;
131-
Apache-2.0 OR BSD-2-Clause;
132-
Apache Software License;
133-
BSD License;
134-
BSD-2-Clause;
135-
BSD-3-Clause;
136-
GPL-3.0-or-later;
137-
MIT;
138-
MIT License;
139-
Mozilla Public License 2.0 (MPL 2.0);
140-
PSF-2.0;
141-
Python Software Foundation License"
130+
--allow-only="$(grep -v '^#' .pip-licenses-allowlist | grep -v '^$' | paste -sd ';' -)"
142131
143132
# ---------------------------------------------------------------------------
144133
# Integration tests

requirements-dev.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv export --no-hashes --group dev -o requirements-dev.txt
3-
-e .
2+
# uv export --no-hashes --only-group dev -o requirements-dev.txt
43
boolean-py==5.0
54
# via license-expression
65
cachecontrol==0.14.4
@@ -45,7 +44,7 @@ packaging==26.0
4544
# pytest
4645
pathspec==1.0.4
4746
# via mypy
48-
pip==26.0.1
47+
pip==26.1
4948
# via pip-api
5049
pip-api==0.0.34
5150
# via pip-audit
@@ -76,7 +75,6 @@ requests==2.33.1
7675
# via
7776
# cachecontrol
7877
# pip-audit
79-
# pymqrest
8078
rich==14.3.3
8179
# via pip-audit
8280
ruff==0.15.4

requirements.txt

Lines changed: 3 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,13 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv export --no-hashes -o requirements.txt
2+
# uv export --no-hashes --no-dev -o requirements.txt
33
-e .
4-
boolean-py==5.0
5-
# via license-expression
6-
cachecontrol==0.14.4
7-
# via pip-audit
84
certifi==2026.2.25
95
# via requests
106
charset-normalizer==3.4.4
117
# via requests
12-
colorama==0.4.6 ; sys_platform == 'win32'
13-
# via pytest
14-
coverage==7.13.4
15-
# via pytest-cov
16-
cyclonedx-python-lib==11.6.0
17-
# via pip-audit
18-
defusedxml==0.7.1
19-
# via py-serializable
20-
filelock==3.25.0
21-
# via cachecontrol
228
idna==3.11
239
# via requests
24-
iniconfig==2.3.0
25-
# via pytest
26-
librt==0.8.1 ; platform_python_implementation != 'PyPy'
27-
# via mypy
28-
license-expression==30.4.4
29-
# via cyclonedx-python-lib
30-
markdown-it-py==4.0.0
31-
# via rich
32-
mdurl==0.1.2
33-
# via markdown-it-py
34-
msgpack==1.1.2
35-
# via cachecontrol
36-
mypy==1.19.1
37-
mypy-extensions==1.1.0
38-
# via mypy
39-
packageurl-python==0.17.6
40-
# via cyclonedx-python-lib
41-
packaging==26.0
42-
# via
43-
# pip-audit
44-
# pip-requirements-parser
45-
# pytest
46-
pathspec==1.0.4
47-
# via mypy
48-
pip==26.0.1
49-
# via pip-api
50-
pip-api==0.0.34
51-
# via pip-audit
52-
pip-audit==2.10.0
53-
pip-licenses==5.5.1
54-
pip-requirements-parser==32.0.1
55-
# via pip-audit
56-
platformdirs==4.9.2
57-
# via pip-audit
58-
pluggy==1.6.0
59-
# via
60-
# pytest
61-
# pytest-cov
62-
prettytable==3.17.0
63-
# via pip-licenses
64-
py-serializable==2.1.0
65-
# via cyclonedx-python-lib
66-
pygments==2.20.0
67-
# via
68-
# pytest
69-
# rich
70-
pyparsing==3.3.2
71-
# via pip-requirements-parser
72-
pytest==9.0.3
73-
# via pytest-cov
74-
pytest-cov==7.0.0
7510
requests==2.33.1
76-
# via
77-
# cachecontrol
78-
# pip-audit
79-
# pymqrest
80-
rich==14.3.3
81-
# via pip-audit
82-
ruff==0.15.4
83-
sortedcontainers==2.4.0
84-
# via cyclonedx-python-lib
85-
tomli==2.4.0
86-
# via pip-audit
87-
tomli-w==1.2.0
88-
# via pip-audit
89-
ty==0.0.19
90-
types-requests==2.32.4.20260107
91-
typing-extensions==4.15.0
92-
# via
93-
# cyclonedx-python-lib
94-
# mypy
11+
# via pymqrest
9512
urllib3==2.6.3
96-
# via
97-
# requests
98-
# types-requests
99-
wcwidth==0.6.0
100-
# via prettytable
13+
# via requests

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)