Skip to content

Commit 29da3e7

Browse files
db39jdeanwallace
andauthored
Update license paths (#1898)
Resolves #1897 This change updates the paths to the PyYaml and MarkupSafe Python dependency licenses. <a data-ca-tag href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1898"><img src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review on CodeApprove" /></a> --------- Co-authored-by: Jason Wallace <[email protected]>
1 parent f37833f commit 29da3e7

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

app/license_notice.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ class LicenseMetadata:
9494
LicenseMetadata(
9595
name='pyyaml',
9696
homepage_url='https://pyyaml.org',
97-
license_glob_pattern=
98-
'./venv/lib/python3.*/site-packages/PyYAML-*.dist-info/LICENSE*',
97+
# We're unable to consistently link to the local license file because of
98+
# inconsistent Python package structure.
99+
# https://github.com/tiny-pilot/tinypilot/issues/1899
100+
license_url=
101+
'https://raw.githubusercontent.com/yaml/pyyaml/6.0.2/LICENSE',
99102
),
100103
LicenseMetadata(
101104
name='bidict',
@@ -154,8 +157,11 @@ class LicenseMetadata:
154157
LicenseMetadata(
155158
name='MarkupSafe',
156159
homepage_url='https://palletsprojects.com/p/markupsafe/',
157-
license_glob_pattern=
158-
'./venv/lib/python3.*/site-packages/MarkupSafe-*.dist-info/LICENSE*',
160+
# We're unable to consistently link to the local license file because of
161+
# inconsistent Python package structure.
162+
# https://github.com/tiny-pilot/tinypilot/issues/1899
163+
license_url=
164+
'https://raw.githubusercontent.com/pallets/markupsafe/3.0.2/LICENSE.txt',
159165
),
160166
LicenseMetadata(
161167
name='python-dotenv',

0 commit comments

Comments
 (0)