diff --git a/app/license_notice.py b/app/license_notice.py index 2bb41d9b3..b49536748 100644 --- a/app/license_notice.py +++ b/app/license_notice.py @@ -94,8 +94,11 @@ class LicenseMetadata: LicenseMetadata( name='pyyaml', homepage_url='https://pyyaml.org', - license_glob_pattern= - './venv/lib/python3.*/site-packages/PyYAML-*.dist-info/LICENSE*', + # We're unable to consistently link to the local license file because of + # inconsistent Python package structure. + # https://github.com/tiny-pilot/tinypilot/issues/1899 + license_url= + 'https://raw.githubusercontent.com/yaml/pyyaml/6.0.2/LICENSE', ), LicenseMetadata( name='bidict', @@ -154,8 +157,11 @@ class LicenseMetadata: LicenseMetadata( name='MarkupSafe', homepage_url='https://palletsprojects.com/p/markupsafe/', - license_glob_pattern= - './venv/lib/python3.*/site-packages/MarkupSafe-*.dist-info/LICENSE*', + # We're unable to consistently link to the local license file because of + # inconsistent Python package structure. + # https://github.com/tiny-pilot/tinypilot/issues/1899 + license_url= + 'https://raw.githubusercontent.com/pallets/markupsafe/3.0.2/LICENSE.txt', ), LicenseMetadata( name='python-dotenv',