This Classifier seems to produce inconsistent license information when executing piplicenses on a Python environment containing sentry-sdk:
{
"Author": "Sentry Team and Contributors",
"Description": "Python client for Sentry (https://sentry.io)",
"License": "BSD License",
"LicenseFile": "C:\\Git\\.venv\\Lib\\site-packages\\sentry_sdk-2.57.0.dist-info\\licenses\\LICENSE",
"LicenseText": "MIT License\n\nCopyright (c) 2018 Functional Software, Inc. dba Sentry\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
"Name": "sentry-sdk",
"URL": "https://github.com/getsentry/sentry-python",
"Version": "2.57.0"
},
piplicenses does not realize the entry License: MIT in the METADATA file of the Python Wheel, maybe because License: is deprecated since Metadata-Version 2.4. Manually replacing License: MIT with License-Expression: MIT in the METDATA file produces a valid output:
{
"Author": "Sentry Team and Contributors",
"Description": "Python client for Sentry (https://sentry.io)",
"License": "MIT",
"LicenseFile": "C:\\Git\\.venv\\Lib\\site-packages\\sentry_sdk-2.57.0.dist-info\\licenses\\LICENSE",
"LicenseText": "MIT License\n\nCopyright (c) 2018 Functional Software, Inc. dba Sentry\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
"Name": "sentry-sdk",
"URL": "https://github.com/getsentry/sentry-python",
"Version": "2.57.0"
},
As you do not define your license in the pyproject.toml, maybe it is this line that requires an update?
This Classifier seems to produce inconsistent license information when executing piplicenses on a Python environment containing
sentry-sdk:piplicensesdoes not realize the entryLicense: MITin the METADATA file of the Python Wheel, maybe becauseLicense:is deprecated since Metadata-Version 2.4. Manually replacingLicense: MITwithLicense-Expression: MITin the METDATA file produces a valid output:As you do not define your license in the
pyproject.toml, maybe it is this line that requires an update?