1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-11-25 15:18:19 +01:00
csv-metadata-quality/csv_metadata_quality
Alan Orth 7cc49b500d
Use licenses.json from SPDX instead of spdx-license-list
spdx-license-list has been deprecated[1] and already has outdated
information compared to recent SPDX data releases. Now I use the
JSON license data directly from SPDX[2] (currently version 3.19).

The JSON file is loaded from the package's data directory using
Python 3's stdlib functions from importlib[3], though we now need
Python 3.9 as a minimum for importlib.resources.files[4].

Also note that the data directory is not properly packaged via
setuptools, so this only works for local installs, and not via
versions published to pypi, for example (I'm currently not doing
this anyways). If I want to publish this in the future I will
need to modify setup.py/pyproject.toml to include the data files.

[1] https://gitlab.com/uniqx/spdx-license-list
[2] https://github.com/spdx/license-list-data/blob/main/json/licenses.json
[3] https://copdips.com/2022/09/adding-data-files-to-python-package-with-setup-py.html
[4] https://docs.python.org/3/library/importlib.resources.html#importlib.resources.files
2022-12-13 10:39:17 +03:00
..
data Use licenses.json from SPDX instead of spdx-license-list 2022-12-13 10:39:17 +03:00
__init__.py Refactor as package with subpackages 2019-07-26 22:11:10 +03:00
__main__.py Add SPDX short license identifier to all Python files 2021-03-19 16:04:40 +02:00
app.py Remove Excel support 2022-09-02 16:14:24 +03:00
check.py Use licenses.json from SPDX instead of spdx-license-list 2022-12-13 10:39:17 +03:00
experimental.py Improve exclude function 2022-09-02 15:59:22 +03:00
fix.py Ignore subregion field for missing region checks 2022-12-07 23:18:47 +01:00
util.py Use licenses.json from SPDX instead of spdx-license-list 2022-12-13 10:39:17 +03:00
version.py Version 0.6.0 2022-09-02 16:35:58 +03:00