├── .gitattributes ├── .github └── workflows │ ├── docs-ci.yml │ └── pypi-release.yml ├── .gitignore ├── .readthedocs.yml ├── AUTHORS.rst ├── CHANGELOG.rst ├── CODE_OF_CONDUCT.rst ├── Dockerfile ├── MANIFEST.in ├── Makefile ├── NOTICE ├── README.rst ├── about ├── about.ABOUT ├── about.bat ├── apache-2.0.LICENSE ├── appveyor.yml ├── azure-pipelines.yml ├── configure ├── configure.bat ├── docs ├── Makefile ├── make.bat ├── scripts │ ├── doc8_style_check.sh │ └── sphinx_build_link_check.sh └── source │ ├── _static │ ├── js │ │ └── custom.js │ ├── theme_overrides-skeleton-2022-03-28-updated.css │ └── theme_overrides.css │ ├── conf.py │ ├── general.rst │ ├── home.rst │ ├── index.rst │ ├── reference.rst │ ├── specification.rst │ └── type_of_errors.rst ├── etc ├── ci │ ├── azure-container-deb.yml │ ├── azure-container-rpm.yml │ ├── azure-posix.yml │ ├── azure-win.yml │ ├── install_sudo.sh │ ├── macports-ci │ ├── macports-ci.ABOUT │ └── mit.LICENSE └── scripts │ ├── README.rst │ ├── check_thirdparty.py │ ├── fetch_thirdparty.py │ ├── gen_pypi_simple.py │ ├── gen_pypi_simple.py.ABOUT │ ├── gen_pypi_simple.py.NOTICE │ ├── gen_requirements.py │ ├── gen_requirements_dev.py │ ├── requirements.txt │ ├── test_utils_pip_compatibility_tags.py │ ├── test_utils_pip_compatibility_tags.py.ABOUT │ ├── test_utils_pypi_supported_tags.py │ ├── test_utils_pypi_supported_tags.py.ABOUT │ ├── update_skeleton.py │ ├── utils_dejacode.py │ ├── utils_pip_compatibility_tags.py │ ├── utils_pip_compatibility_tags.py.ABOUT │ ├── utils_pypi_supported_tags.py │ ├── utils_pypi_supported_tags.py.ABOUT │ ├── utils_requirements.py │ ├── utils_thirdparty.py │ └── utils_thirdparty.py.ABOUT ├── example └── e2fsprogs-1.39 │ ├── e2fsprogs-about │ └── e2fsprogs-1.39 │ │ ├── alocal.m4.ABOUT │ │ ├── config │ │ ├── config.guess.ABOUT │ │ ├── config.rpath.ABOUT │ │ ├── config.sub.ABOUT │ │ ├── gpl-2.0-autoconf.LICENSE │ │ ├── mkinstalldirs.ABOUT │ │ └── public-domain.LICENSE │ │ ├── contrib │ │ ├── UlrichWindl.LICENSE │ │ └── dconf.ABOUT │ │ ├── e2fsck │ │ ├── KazKylheku.LICENSE │ │ ├── argv_parse.c.ABOUT │ │ ├── argv_parse.h.ABOUT │ │ ├── dict.c.ABOUT │ │ ├── dict.h.ABOUT │ │ ├── gpl-2.0.LICENSE │ │ ├── journal.c.ABOUT │ │ ├── lgpl-2.0.LICENSE │ │ ├── mit-old-style-legal-2.LICENSE │ │ ├── mtrace.c.ABOUT │ │ ├── mtrace.h.ABOUT │ │ ├── profile.c.ABOUT │ │ └── profile.h.ABOUT │ │ ├── e2fsprogs-1.39.ABOUT │ │ ├── e2fsprogs-1.39.NOTICE │ │ ├── gpl-2.0.LICENSE │ │ ├── include │ │ └── nonunix │ │ │ ├── getopt.h.ABOUT │ │ │ └── lgpl-2.0.LICENSE │ │ ├── install-utils │ │ ├── convfstab.ABOUT │ │ └── public-domain.LICENSE │ │ ├── intl │ │ ├── intl.ABOUT │ │ └── lgpl-2.0.LICENSE │ │ ├── lib │ │ ├── blkid │ │ │ ├── blkid.ABOUT │ │ │ └── lgpl-2.1.LICENSE │ │ ├── bsla.LICENSE │ │ ├── e2p │ │ │ ├── e2p.ABOUT │ │ │ └── lgpl-2.0.LICENSE │ │ ├── et │ │ │ ├── bsd-new.LICENSE │ │ │ ├── bsla.LICENSE │ │ │ ├── com_right.c.ABOUT │ │ │ ├── et.ABOUT │ │ │ ├── gpl-2.0.LICENSE │ │ │ ├── kerberos.LICENSE │ │ │ ├── texinfo.tex.ABOUT │ │ │ └── vfprintf.c.ABOUT │ │ ├── fpopen.c.ABOUT │ │ ├── ss │ │ │ ├── kerberos.LICENSE │ │ │ └── ss.ABOUT │ │ └── uuid │ │ │ ├── bsd-new.LICENSE │ │ │ └── uuid.ABOUT │ │ ├── misc │ │ ├── blkid.c.ABOUT │ │ └── lgpl-2.1.LICENSE │ │ └── public-domain.LICENSE │ ├── input │ ├── MAPPING.CONFIG │ ├── e2fsprogs-1.39-CreateAboutFile.csv │ ├── e2fsprogs-1.39-INV.xlsx │ └── template_sample_attribution_starship.html │ └── output │ └── sample_attribution_starship.html ├── pyproject.toml ├── requirements-dev.txt ├── requirements.txt ├── setup.cfg ├── setup.py ├── src └── attributecode │ ├── __init__.py │ ├── __main__.py │ ├── api.py │ ├── attrib.py │ ├── attrib_util.py │ ├── cmd.py │ ├── gen.py │ ├── licenses.py │ ├── model.py │ ├── templates │ ├── default_html.template │ ├── default_json.template │ ├── license_ref.template │ ├── list.csv │ └── scancode_html.template │ ├── transform.py │ └── util.py ├── tests ├── test_api.py ├── test_attrib.py ├── test_cmd.py ├── test_gen.py ├── test_model.py ├── test_transform.py ├── test_util.py ├── testdata │ ├── test_attrib │ │ ├── default_template │ │ │ ├── expect.html │ │ │ └── simple_sample.csv │ │ ├── gen_default_template │ │ │ ├── attrib.ABOUT │ │ │ ├── expected_default_attrib.html │ │ │ └── httpd-2.4.3.tar.gz │ │ ├── gen_license_key_name_check │ │ │ ├── LICENSES │ │ │ │ ├── Apache-2.0.txt │ │ │ │ └── LGPL-3.0.txt │ │ │ ├── custom.template │ │ │ ├── expected │ │ │ │ └── expected.html │ │ │ └── test.ABOUT │ │ ├── gen_simple │ │ │ ├── attrib.ABOUT │ │ │ ├── httpd-2.4.3.tar.gz │ │ │ └── test.template │ │ └── scancode_input │ │ │ ├── sc-2-licenses.json │ │ │ ├── sc-dup-lic-match.html │ │ │ ├── sc-dup-lic-match.json │ │ │ ├── sc-dup-lic.html │ │ │ ├── sc-dup-lic.json │ │ │ ├── sc-min_score-0.html │ │ │ ├── sc-multi-lic.html │ │ │ ├── sc-multi-lic.json │ │ │ ├── sc.html │ │ │ └── scancode.template │ ├── test_cmd │ │ ├── geninventory.csv │ │ ├── help │ │ │ ├── about_attrib_help.txt │ │ │ ├── about_check_help.txt │ │ │ ├── about_gen_help.txt │ │ │ ├── about_gen_license_help.txt │ │ │ ├── about_help.txt │ │ │ ├── about_inventory_help.txt │ │ │ ├── about_transform_config_help.txt │ │ │ └── about_transform_help.txt │ │ ├── repository-mini │ │ │ ├── apache-2.0.LICENSE │ │ │ ├── appdirs-1.4.3-py2.py3-none-any.whl │ │ │ ├── appdirs.ABOUT │ │ │ ├── appdirs.LICENSE │ │ │ ├── mit.LICENSE │ │ │ ├── xtrans-1.3.5.txz │ │ │ └── xtrans-1.3.5.txz.ABOUT │ │ └── transform.csv │ ├── test_gen │ │ ├── about.py.ABOUT │ │ ├── dup_keys.csv │ │ ├── dup_keys_with_diff_case.csv │ │ ├── inv.csv │ │ ├── inv2.csv │ │ ├── inv3.csv │ │ ├── inv4.csv │ │ ├── inv5.csv │ │ ├── inv6.csv │ │ ├── inv7.csv │ │ ├── inv_no_about_resource.csv │ │ ├── inventory │ │ │ └── complex │ │ │ │ ├── about │ │ │ │ ├── Jinja2-2.7.3-py2-none-any.whl │ │ │ │ ├── Jinja2.ABOUT │ │ │ │ ├── Jinja2.LICENSE │ │ │ │ ├── MarkupSafe-0.23-py2-none-any.whl │ │ │ │ ├── MarkupSafe.ABOUT │ │ │ │ ├── MarkupSafe.LICENSE │ │ │ │ ├── NOTICE │ │ │ │ ├── PSF.LICENSE │ │ │ │ ├── about.ABOUT │ │ │ │ ├── apache-2.0.LICENSE │ │ │ │ ├── certifi-14.05.14-py2.py3-none-any.whl │ │ │ │ ├── certifi.ABOUT │ │ │ │ ├── certifi.LICENSE │ │ │ │ ├── click-3.2-py2.py3-none-any.whl │ │ │ │ ├── click.ABOUT │ │ │ │ ├── click.LICENSE │ │ │ │ ├── colorama-0.3.1-py2-none-any.whl │ │ │ │ ├── colorama.ABOUT │ │ │ │ ├── colorama.LICENSE │ │ │ │ ├── lgpl-2.1.LICENSE │ │ │ │ ├── pip-1.5.6-py2.py3-none-any.whl │ │ │ │ ├── pip.ABOUT │ │ │ │ ├── pip.AUTHORS │ │ │ │ ├── pip.LICENSE │ │ │ │ ├── py-1.4.23-py2-none-any.whl │ │ │ │ ├── py.ABOUT │ │ │ │ ├── py.LICENSE │ │ │ │ ├── pytest-2.6.1-py2.py3-none-any.whl │ │ │ │ ├── pytest.ABOUT │ │ │ │ ├── pytest.LICENSE │ │ │ │ ├── schematics-0.9_5-py2-none-any.whl │ │ │ │ ├── schematics.ABOUT │ │ │ │ ├── schematics.LICENSE │ │ │ │ ├── setuptools-5.6-py2.py3-none-any.whl │ │ │ │ ├── setuptools.ABOUT │ │ │ │ ├── unicodecsv-0.9.4-py2-none-any.whl │ │ │ │ ├── unicodecsv.ABOUT │ │ │ │ ├── unicodecsv.LICENSE │ │ │ │ ├── wheel-0.24.0-py2.py3-none-any.whl │ │ │ │ ├── wheel.ABOUT │ │ │ │ ├── wheel.LICENSE │ │ │ │ ├── wincertstore-0.2-py2.py3-none-any.whl │ │ │ │ ├── wincertstore.ABOUT │ │ │ │ └── wincertstore.LICENSE │ │ │ │ ├── about_file_path_dir_endswith_space.csv │ │ │ │ └── expected.csv │ │ ├── lic_issue_450 │ │ │ ├── custom.txt │ │ │ └── custom_and_valid_lic_key_with_file.csv │ │ ├── lic_key_custom_lic_file │ │ │ ├── lic_key_with_custom_lic_file.csv │ │ │ └── no_lic_key_with_custom_lic_file.csv │ │ ├── load │ │ │ ├── clean-text-0.3.0-lceupi.json │ │ │ └── simple_sample.xlsx │ │ ├── multi_lic_issue_443 │ │ │ └── test.csv │ │ ├── multi_lic_issue_444 │ │ │ └── test1.csv │ │ ├── parser_tests │ │ │ ├── .ABOUT │ │ │ ├── about_resource.c │ │ │ ├── about_resource_field.ABOUT │ │ │ ├── about_resource_field_present.ABOUT │ │ │ ├── missing_about_ref.ABOUT │ │ │ └── upper_field_names.ABOUT │ │ └── this.ABOUT │ ├── test_model │ │ ├── android │ │ │ ├── expected_NOTICE │ │ │ ├── multi_license.c.ABOUT │ │ │ ├── public-domain.LICENSE │ │ │ └── single_license.c.ABOUT │ │ ├── base_dir │ │ │ └── license.LICENSE │ │ ├── collect_inventory_errors │ │ │ ├── non-supported_date_format.ABOUT │ │ │ └── supported_date_format.ABOUT │ │ ├── crlf │ │ │ ├── about.ABOUT │ │ │ └── expected.csv │ │ ├── custom_fields │ │ │ └── custom_fields.about │ │ ├── dumps │ │ │ ├── NOTICE │ │ │ ├── about.ABOUT │ │ │ └── apache-2.0.LICENSE │ │ ├── equal │ │ │ ├── complete │ │ │ │ ├── NOTICE │ │ │ │ ├── about.ABOUT │ │ │ │ └── apache-2.0.LICENSE │ │ │ └── complete2 │ │ │ │ ├── NOTICE │ │ │ │ ├── about.ABOUT │ │ │ │ └── apache-2.0.LICENSE │ │ ├── expected.csv │ │ ├── expected.json │ │ ├── inventory │ │ │ ├── basic │ │ │ │ ├── about │ │ │ │ │ ├── NOTICE │ │ │ │ │ ├── about.ABOUT │ │ │ │ │ └── apache-2.0.LICENSE │ │ │ │ └── expected.csv │ │ │ ├── basic_with_about_resource_path │ │ │ │ ├── about │ │ │ │ │ ├── about_with_about_resource_path.ABOUT │ │ │ │ │ └── apache-2.0.LICENSE │ │ │ │ └── expected.csv │ │ │ ├── complete │ │ │ │ ├── NOTICE │ │ │ │ ├── about.ABOUT │ │ │ │ └── apache-2.0.LICENSE │ │ │ ├── complex │ │ │ │ ├── about │ │ │ │ │ ├── Jinja2-2.7.3-py2-none-any.whl │ │ │ │ │ ├── Jinja2.ABOUT │ │ │ │ │ ├── Jinja2.LICENSE │ │ │ │ │ ├── MarkupSafe-0.23-py2-none-any.whl │ │ │ │ │ ├── MarkupSafe.ABOUT │ │ │ │ │ ├── MarkupSafe.LICENSE │ │ │ │ │ ├── NOTICE │ │ │ │ │ ├── PSF.LICENSE │ │ │ │ │ ├── about.ABOUT │ │ │ │ │ ├── apache-2.0.LICENSE │ │ │ │ │ ├── certifi-14.05.14-py2.py3-none-any.whl │ │ │ │ │ ├── certifi.ABOUT │ │ │ │ │ ├── certifi.LICENSE │ │ │ │ │ ├── click-3.2-py2.py3-none-any.whl │ │ │ │ │ ├── click.ABOUT │ │ │ │ │ ├── click.LICENSE │ │ │ │ │ ├── colorama-0.3.1-py2-none-any.whl │ │ │ │ │ ├── colorama.ABOUT │ │ │ │ │ ├── colorama.LICENSE │ │ │ │ │ ├── lgpl-2.1.LICENSE │ │ │ │ │ ├── pip-1.5.6-py2.py3-none-any.whl │ │ │ │ │ ├── pip.ABOUT │ │ │ │ │ ├── pip.AUTHORS │ │ │ │ │ ├── pip.LICENSE │ │ │ │ │ ├── py-1.4.23-py2-none-any.whl │ │ │ │ │ ├── py.ABOUT │ │ │ │ │ ├── py.LICENSE │ │ │ │ │ ├── pytest-2.6.1-py2.py3-none-any.whl │ │ │ │ │ ├── pytest.ABOUT │ │ │ │ │ ├── pytest.LICENSE │ │ │ │ │ ├── schematics-0.9_5-py2-none-any.whl │ │ │ │ │ ├── schematics.ABOUT │ │ │ │ │ ├── schematics.LICENSE │ │ │ │ │ ├── setuptools-5.6-py2.py3-none-any.whl │ │ │ │ │ ├── setuptools.ABOUT │ │ │ │ │ ├── unicodecsv-0.9.4-py2-none-any.whl │ │ │ │ │ ├── unicodecsv.ABOUT │ │ │ │ │ ├── unicodecsv.LICENSE │ │ │ │ │ ├── virtualenv-1.11.6-py2.py3-none-any.whl │ │ │ │ │ ├── virtualenv.ABOUT │ │ │ │ │ ├── virtualenv.LICENSE │ │ │ │ │ ├── virtualenv.py │ │ │ │ │ ├── virtualenv.py.ABOUT │ │ │ │ │ ├── wheel-0.24.0-py2.py3-none-any.whl │ │ │ │ │ ├── wheel.ABOUT │ │ │ │ │ ├── wheel.LICENSE │ │ │ │ │ ├── wincertstore-0.2-py2.py3-none-any.whl │ │ │ │ │ ├── wincertstore.ABOUT │ │ │ │ │ └── wincertstore.LICENSE │ │ │ │ └── expected.csv │ │ │ ├── custom_fields.ABOUT │ │ │ ├── custom_fields2.ABOUT │ │ │ ├── no_about_resource_key │ │ │ │ └── about │ │ │ │ │ └── about.ABOUT │ │ │ └── relative │ │ │ │ ├── NOTICE │ │ │ │ ├── about.ABOUT │ │ │ │ └── apache-2.0.LICENSE │ │ ├── longpath.zip │ │ ├── multiple_files.ABOUT │ │ ├── multiple_files_expected.csv │ │ ├── parse │ │ │ ├── basic.about │ │ │ ├── boolean_chara_data.about │ │ │ ├── boolean_data.about │ │ │ ├── boolean_more_than_2_chara_data.about │ │ │ ├── boolean_numeric_data.about │ │ │ ├── complete2 │ │ │ │ ├── NOTICE │ │ │ │ ├── about.ABOUT │ │ │ │ ├── about2.ABOUT │ │ │ │ └── apache-2.0.LICENSE │ │ │ ├── complex.about │ │ │ ├── continuation.about │ │ │ ├── continuation_verbatim.about │ │ │ ├── continuation_verbatim_with_tab.about │ │ │ ├── dupe_field_name.ABOUT │ │ │ ├── dupe_field_name_no_new_value.ABOUT │ │ │ ├── empty_notice_field.about │ │ │ ├── empty_required.ABOUT │ │ │ ├── illegal_custom_field.about │ │ │ ├── invalid_boolean.about │ │ │ ├── invalid_continuation.about │ │ │ ├── invalid_names.about │ │ │ ├── license_file_notice_file.ABOUT │ │ │ ├── license_text.LICENSE │ │ │ ├── missing_notice_file.ABOUT │ │ │ ├── missing_notice_license_files.ABOUT │ │ │ ├── missing_required.ABOUT │ │ │ ├── multi_line_license_expresion.ABOUT │ │ │ ├── name_mapping_test.ABOUT │ │ │ ├── no_file_fields.ABOUT │ │ │ ├── non_ascii_field_name_value.about │ │ │ ├── notice_text.NOTICE │ │ │ ├── ordered_fields.ABOUT │ │ │ └── with_ignored_resources.ABOUT │ │ ├── redistribution │ │ │ ├── test │ │ │ │ └── subdir │ │ │ │ │ ├── test.ABOUT │ │ │ │ │ └── test.c │ │ │ ├── this.ABOUT │ │ │ ├── this.c │ │ │ ├── this2.ABOUT │ │ │ └── this2.c │ │ ├── rel │ │ │ ├── allAboutInOneDir │ │ │ │ └── about_ref │ │ │ │ │ ├── csv_serialize.py.ABOUT │ │ │ │ │ ├── django_snippets_2413.ABOUT │ │ │ │ │ ├── elasticsearch.ABOUT │ │ │ │ │ ├── ez_setup.py.ABOUT │ │ │ │ │ └── t1 │ │ │ │ │ └── t2 │ │ │ │ │ └── ez_setup.py │ │ │ └── thirdparty │ │ │ │ ├── django_snippets.LICENSE │ │ │ │ ├── elasticsearch.LICENSE │ │ │ │ └── elasticsearch.NOTICE │ │ ├── serialize │ │ │ ├── NOTICE │ │ │ ├── about.ABOUT │ │ │ └── apache-2.0.LICENSE │ │ ├── single_file │ │ │ ├── django_snippets.LICENSE │ │ │ ├── django_snippets_2413.ABOUT │ │ │ └── django_snippets_2413.py │ │ ├── special │ │ │ ├── NOTICE │ │ │ ├── about.ABOUT │ │ │ └── apache-2.0.LICENSE │ │ ├── special_char │ │ │ └── about.ABOUT │ │ ├── this.ABOUT │ │ └── unicode │ │ │ ├── nose-selecttests.ABOUT │ │ │ └── not-unicode.ABOUT │ ├── test_transform │ │ ├── configuration │ │ ├── configuration2 │ │ ├── configuration3 │ │ ├── configuration_new_cols │ │ ├── input.csv │ │ ├── input.json │ │ ├── input.xlsx │ │ ├── input_scancode.json │ │ ├── simple.csv │ │ └── simple.xlsx │ └── test_util │ │ ├── about_locations │ │ ├── dir1 │ │ │ ├── dir2 │ │ │ │ └── file1.about │ │ │ ├── file2 │ │ │ └── file2.aBout │ │ ├── dir2 │ │ │ └── file1 │ │ ├── file with_spaces.ABOUT │ │ ├── file1 │ │ └── file2 │ │ ├── csv │ │ ├── about.csv │ │ ├── about_key_with_upper_case.csv │ │ ├── test_ms_utf8.csv │ │ └── test_utf8.csv │ │ ├── get_about_locations │ │ ├── NOTICE │ │ ├── about.ABOUT │ │ └── apache-2.0.LICENSE │ │ ├── json │ │ ├── expected.json │ │ ├── expected_need_mapping.json │ │ ├── multi_entries.json │ │ ├── not_a_list.json │ │ ├── not_a_list_need_mapping.json │ │ └── scancode_info.json │ │ ├── licenses │ │ ├── mit.LICENSE │ │ ├── mit2.LICENSE │ │ └── public-domain.LICENSE │ │ └── longpath.zip └── testing_utils.py └── tox.ini /.gitattributes: -------------------------------------------------------------------------------- 1 | # Ignore all Git auto CR/LF line endings conversions 2 | * -text 3 | pyproject.toml export-subst 4 | -------------------------------------------------------------------------------- /.github/workflows/docs-ci.yml: -------------------------------------------------------------------------------- 1 | name: CI Documentation 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | runs-on: ubuntu-24.04 8 | 9 | strategy: 10 | max-parallel: 4 11 | matrix: 12 | python-version: [3.12] 13 | 14 | steps: 15 | - name: Checkout code 16 | uses: actions/checkout@v4 17 | 18 | - name: Set up Python ${{ matrix.python-version }} 19 | uses: actions/setup-python@v5 20 | with: 21 | python-version: ${{ matrix.python-version }} 22 | 23 | - name: Install Dependencies 24 | run: ./configure --dev 25 | 26 | - name: Check documentation and HTML for errors and dead links 27 | run: make docs-check 28 | 29 | - name: Check documentation for style errors 30 | run: make doc8 31 | 32 | 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Python compiled files 2 | *.py[cod] 3 | 4 | # virtualenv and other misc bits 5 | /src/*.egg-info 6 | *.egg-info 7 | /dist 8 | /build 9 | /bin 10 | /lib 11 | /scripts 12 | /Scripts 13 | /Lib 14 | /pip-selfcheck.json 15 | /tmp 16 | /venv 17 | .Python 18 | /include 19 | /Include 20 | /local 21 | */local/* 22 | /local/ 23 | /share/ 24 | /tcl/ 25 | /.eggs/ 26 | 27 | # Installer logs 28 | pip-log.txt 29 | 30 | # Unit test / coverage reports 31 | .cache 32 | .coverage 33 | .coverage.* 34 | nosetests.xml 35 | htmlcov 36 | 37 | # Translations 38 | *.mo 39 | 40 | # IDEs 41 | .project 42 | .pydevproject 43 | .idea 44 | org.eclipse.core.resources.prefs 45 | .vscode 46 | .vs 47 | 48 | # Sphinx 49 | docs/_build 50 | docs/bin 51 | docs/build 52 | docs/include 53 | docs/Lib 54 | doc/pyvenv.cfg 55 | pyvenv.cfg 56 | 57 | # Various junk and temp files 58 | .DS_Store 59 | *~ 60 | .*.sw[po] 61 | .build 62 | .ve 63 | *.bak 64 | /.cache/ 65 | 66 | # pyenv 67 | /.python-version 68 | /man/ 69 | /.pytest_cache/ 70 | lib64 71 | tcl 72 | 73 | # Ignore Jupyter Notebook related temp files 74 | .ipynb_checkpoints/ 75 | /virtualenv.pyz 76 | /.ruff_cache/ 77 | .env 78 | -------------------------------------------------------------------------------- /.readthedocs.yml: -------------------------------------------------------------------------------- 1 | # .readthedocs.yml 2 | # Read the Docs configuration file 3 | # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details 4 | 5 | # Required 6 | version: 2 7 | 8 | # Build in latest ubuntu/python 9 | build: 10 | os: ubuntu-22.04 11 | tools: 12 | python: "3.11" 13 | 14 | # Build PDF & ePub 15 | formats: 16 | - epub 17 | - pdf 18 | 19 | # Where the Sphinx conf.py file is located 20 | sphinx: 21 | configuration: docs/source/conf.py 22 | 23 | # Setting the python version and doc build requirements 24 | python: 25 | install: 26 | - method: pip 27 | path: . 28 | extra_requirements: 29 | - dev 30 | -------------------------------------------------------------------------------- /AUTHORS.rst: -------------------------------------------------------------------------------- 1 | The following organizations or individuals have contributed to this repo: 2 | 3 | -nexB, Inc. 4 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) nexB Inc. and others. All rights reserved. 3 | # SPDX-License-Identifier: Apache-2.0 4 | # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. 5 | # See https://github.com/nexB/aboutcode-toolkit for support or download. 6 | # See https://aboutcode.org for more information about nexB OSS projects. 7 | # 8 | 9 | FROM python:3.9-slim-buster 10 | 11 | RUN apt-get update \ 12 | && apt-get install -y bash bzip2 xz-utils zlib1g libxml2-dev libxslt1-dev libgomp1 libpopt0 curl\ 13 | && apt-get clean \ 14 | && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* 15 | 16 | # Create directory for aboutcode sources 17 | RUN mkdir aboutcode-toolkit 18 | 19 | # Copy sources into docker container 20 | COPY . aboutcode-toolkit 21 | 22 | # Set workdir 23 | WORKDIR aboutcode-toolkit 24 | 25 | RUN bash -c "source ./configure" 26 | 27 | # Add aboutcode to path 28 | #ENV PATH=$HOME/aboutcode-toolkit:$PATH 29 | 30 | # Set entrypoint to be the aboutcode command, allows to run the generated docker image directly with the aboutcode arguments: 31 | # `docker run (...) ` 32 | # Example: docker run --rm --name "aboutcode" -v ${PWD}:/project -v /tmp/result:/result aboutcode-toolkit attrib /project /result/c.html 33 | ENTRYPOINT ["./about"] 34 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | graft src 2 | graft docs 3 | graft etc 4 | 5 | include *.LICENSE 6 | include NOTICE 7 | include *.ABOUT 8 | include *.toml 9 | include *.yml 10 | include *.rst 11 | include *.png 12 | include setup.* 13 | include configure* 14 | include requirements* 15 | include .dockerignore 16 | include .gitignore 17 | include .readthedocs.yml 18 | include manage.py 19 | include Dockerfile* 20 | include Makefile 21 | include MANIFEST.in 22 | 23 | include .VERSION 24 | 25 | global-exclude *.py[co] __pycache__ *.*~ 26 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | # 3 | # Copyright (c) nexB Inc. and others. All rights reserved. 4 | # ScanCode is a trademark of nexB Inc. 5 | # SPDX-License-Identifier: Apache-2.0 6 | # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. 7 | # See https://github.com/aboutcode-org/skeleton for support or download. 8 | # See https://aboutcode.org for more information about nexB OSS projects. 9 | # 10 | 11 | # Python version can be specified with `$ PYTHON_EXE=python3.x make conf` 12 | PYTHON_EXE?=python3 13 | VENV=venv 14 | ACTIVATE?=. ${VENV}/bin/activate; 15 | 16 | 17 | conf: 18 | @echo "-> Install dependencies" 19 | ./configure 20 | 21 | dev: 22 | @echo "-> Configure and install development dependencies" 23 | ./configure --dev 24 | 25 | doc8: 26 | @echo "-> Run doc8 validation" 27 | @${ACTIVATE} doc8 --quiet docs/ *.rst 28 | 29 | valid: 30 | @echo "-> Run Ruff format" 31 | @${ACTIVATE} ruff format 32 | @echo "-> Run Ruff linter" 33 | @${ACTIVATE} ruff check --fix 34 | 35 | check: 36 | @echo "-> Run Ruff linter validation (pycodestyle, bandit, isort, and more)" 37 | @${ACTIVATE} ruff check 38 | @echo "-> Run Ruff format validation" 39 | @${ACTIVATE} ruff format --check 40 | @$(MAKE) doc8 41 | @echo "-> Run ABOUT files validation" 42 | @${ACTIVATE} about check etc/ 43 | 44 | clean: 45 | @echo "-> Clean the Python env" 46 | ./configure --clean 47 | 48 | test: 49 | @echo "-> Run the test suite" 50 | ${VENV}/bin/pytest -vvs 51 | 52 | docs: 53 | rm -rf docs/_build/ 54 | @${ACTIVATE} sphinx-build docs/source docs/_build/ 55 | 56 | docs-check: 57 | @${ACTIVATE} sphinx-build -E -W -b html docs/source docs/_build/ 58 | @${ACTIVATE} sphinx-build -E -W -b linkcheck docs/source docs/_build/ 59 | 60 | .PHONY: conf dev check valid clean test docs docs-check 61 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) nexB Inc. and others. 3 | # SPDX-License-Identifier: Apache-2.0 4 | # 5 | # Visit https://aboutcode.org and https://github.com/aboutcode-org/ for support and download. 6 | # ScanCode is a trademark of nexB Inc. 7 | # 8 | # Licensed under the Apache License, Version 2.0 (the "License"); 9 | # you may not use this file except in compliance with the License. 10 | # You may obtain a copy of the License at 11 | # 12 | # http://www.apache.org/licenses/LICENSE-2.0 13 | # 14 | # Unless required by applicable law or agreed to in writing, software 15 | # distributed under the License is distributed on an "AS IS" BASIS, 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 | # See the License for the specific language governing permissions and 18 | # limitations under the License. 19 | # 20 | -------------------------------------------------------------------------------- /about: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Copyright (c) nexB Inc. http://www.nexb.com/ - All rights reserved. 4 | # 5 | 6 | # cd to the root directory 7 | ABOUT_ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 8 | cd "$ABOUT_ROOT_DIR" 9 | 10 | # where we create a virtualenv 11 | VIRTUALENV_DIR=venv 12 | 13 | CONFIGURED_PYTHON=$ABOUT_ROOT_DIR/$VIRTUALENV_DIR/bin/python 14 | 15 | if [ ! -f "$CONFIGURED_PYTHON" ]; then 16 | echo "* Configuring AboutCode ..." 17 | source $ABOUT_ROOT_DIR/configure 18 | fi 19 | 20 | 21 | source $ABOUT_ROOT_DIR/$VIRTUALENV_DIR/bin/activate 22 | 23 | $ABOUT_ROOT_DIR/$VIRTUALENV_DIR/bin/about "$@" 24 | -------------------------------------------------------------------------------- /about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: AboutCode-toolkit 3 | version: 11.1.1 4 | author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez 5 | copyright: Copyright (c) nexB Inc. 6 | description: | 7 | AboutCode Toolkit is a tool to process ABOUT files. An ABOUT file 8 | provides a simple way to document the provenance (origin and license) 9 | 'about' a software component. This is a small text file stored in the 10 | codebase side-by-side with the documented software component. 11 | homepage_url: http://www.nexb.com/community.html 12 | license_expression: apache-2.0 13 | licenses: 14 | - file: apache-2.0.LICENSE 15 | key: apache-2.0 16 | name: Apache License 2.0 17 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:apache-2.0 18 | spdx_license_key: Apache-2.0 19 | notice_file: NOTICE 20 | owner: nexB Inc. 21 | vcs_repository: https://github.com/nexB/aboutcode-toolkit.git 22 | vcs_tool: git 23 | -------------------------------------------------------------------------------- /about.bat: -------------------------------------------------------------------------------- 1 | @echo OFF 2 | @rem Copyright (c) nexB Inc. http://www.nexb.com/ - All rights reserved. 3 | @rem 4 | 5 | 6 | @rem cd to the dpl directory 7 | set ABOUT_ROOT_DIR=%~dp0 8 | cd %ABOUT_ROOT_DIR% 9 | 10 | # where we create a virtualenv 11 | set VIRTUALENV_DIR=venv 12 | 13 | set CMD_LINE_ARGS= 14 | set CONFIGURED_PYTHON="%ABOUT_ROOT_DIR%\%VIRTUALENV_DIR%\Scripts\python.exe" 15 | 16 | @rem Collect all command line arguments in a variable 17 | :collectarg 18 | if ""%1""=="""" goto continue 19 | call set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1 20 | shift 21 | goto collectarg 22 | 23 | :continue 24 | 25 | 26 | if not exist %CONFIGURED_PYTHON% goto configure 27 | goto about 28 | 29 | :configure 30 | echo * Configuring AboutCode ... 31 | call "%ABOUT_ROOT_DIR%\configure" 32 | 33 | :about 34 | call "%ABOUT_ROOT_DIR%\%VIRTUALENV_DIR%\Scripts\activate" 35 | echo "%ABOUT_ROOT_DIR%\%VIRTUALENV_DIR%\bin\about" %CMD_LINE_ARGS% 36 | "%ABOUT_ROOT_DIR%\%VIRTUALENV_DIR%\bin\about" %CMD_LINE_ARGS% 37 | 38 | :EOS 39 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | 2 | ################################################################################ 3 | # We use Appveyor to run minimal smoke tests suites on Pythons 3.x 4 | # on Windows 64 bits 5 | ################################################################################ 6 | environment: 7 | matrix: 8 | - PYTHON: "C:\\Python39-x64" 9 | 10 | 11 | build: off 12 | 13 | 14 | test_script: 15 | - python -c "import sys;print(sys.getdefaultencoding())" 16 | - cmd: "set PYTHON_EXECUTABLE=%PYTHON%\\python.exe && configure --dev && venv\\Scripts\\pytest -vvs tests" 17 | -------------------------------------------------------------------------------- /azure-pipelines.yml: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # We use Azure to run the full tests suites on multiple Python 3.x 3 | # on multiple Windows, macOS and Linux versions all on 64 bits 4 | # These jobs are using VMs with Azure-provided Python builds 5 | ################################################################################ 6 | 7 | jobs: 8 | - template: etc/ci/azure-posix.yml 9 | parameters: 10 | job_name: ubuntu22_cpython 11 | image_name: ubuntu-22.04 12 | python_versions: ["3.9", "3.10", "3.11"] 13 | test_suites: 14 | all: venv/bin/pytest -n 2 -vvs 15 | 16 | - template: etc/ci/azure-posix.yml 17 | parameters: 18 | job_name: macos13_cpython 19 | image_name: macOS-13 20 | python_versions: ["3.9", "3.10", "3.11"] 21 | test_suites: 22 | all: venv/bin/pytest -n 2 -vvs 23 | 24 | - template: etc/ci/azure-win.yml 25 | parameters: 26 | job_name: win2019_cpython 27 | image_name: windows-2019 28 | python_versions: ["3.9", "3.10", "3.11"] 29 | test_suites: 30 | all: venv\Scripts\pytest -n 2 -vvs 31 | 32 | - template: etc/ci/azure-win.yml 33 | parameters: 34 | job_name: win2022_cpython 35 | image_name: windows-2022 36 | python_versions: ["3.9", "3.10", "3.11"] 37 | test_suites: 38 | all: venv\Scripts\pytest -n 2 -vvs 39 | -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- 1 | # Minimal makefile for Sphinx documentation 2 | # 3 | 4 | # You can set these variables from the command line, and also 5 | # from the environment for the first two. 6 | SPHINXOPTS ?= 7 | SPHINXBUILD ?= sphinx-build 8 | SPHINXAUTOBUILD = sphinx-autobuild 9 | SOURCEDIR = source 10 | BUILDDIR = _build 11 | 12 | # Put it first so that "make" without argument is like "make help". 13 | help: 14 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 15 | 16 | .PHONY: help Makefile 17 | 18 | # Run the development server using sphinx-autobuild 19 | docs: 20 | @echo 21 | @echo "Starting up the docs server..." 22 | @echo 23 | $(SPHINXAUTOBUILD) --port 8000 --watch ${SOURCEDIR} $(SOURCEDIR) "$(BUILDDIR)/html" $(SPHINXOPTS) $(O) 24 | 25 | # Catch-all target: route all unknown targets to Sphinx using the new 26 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 27 | %: Makefile 28 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 29 | -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | pushd %~dp0 4 | 5 | REM Command file for Sphinx documentation 6 | 7 | if "%SPHINXBUILD%" == "" ( 8 | set SPHINXBUILD=sphinx-build 9 | ) 10 | if "%SPHINXAUTOBUILD%" == "" ( 11 | set SPHINXAUTOBUILD=sphinx-autobuild 12 | ) 13 | set SOURCEDIR=source 14 | set BUILDDIR=build 15 | 16 | if "%1" == "" goto help 17 | 18 | if "%1" == "docs" goto docs 19 | 20 | %SPHINXBUILD% >NUL 2>NUL 21 | if errorlevel 9009 ( 22 | echo. 23 | echo.The 'sphinx-build' command was not found. Make sure you have Sphinx 24 | echo.installed, then set the SPHINXBUILD environment variable to point 25 | echo.to the full path of the 'sphinx-build' executable. Alternatively you 26 | echo.may add the Sphinx directory to PATH. 27 | echo. 28 | echo.If you don't have Sphinx installed, grab it from 29 | echo.http://sphinx-doc.org/ 30 | exit /b 1 31 | ) 32 | 33 | %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 34 | goto end 35 | 36 | :docs 37 | @echo 38 | @echo Starting up the docs server... 39 | @echo 40 | %SPHINXAUTOBUILD% --port 8000 --watch %SOURCEDIR% %SOURCEDIR% %BUILDDIR%\html %SPHINXOPTS% %O% 41 | goto end 42 | 43 | :help 44 | %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 45 | 46 | :end 47 | popd 48 | -------------------------------------------------------------------------------- /docs/scripts/doc8_style_check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # halt script on error 3 | set -e 4 | # Check for Style Code Violations 5 | doc8 --max-line-length 100 source --ignore D000 --quiet 6 | -------------------------------------------------------------------------------- /docs/scripts/sphinx_build_link_check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # halt script on error 3 | set -e 4 | # Build locally, and then check links 5 | sphinx-build -E -W -b linkcheck source build 6 | -------------------------------------------------------------------------------- /docs/source/_static/js/custom.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | $('a[href^="file://"], a[href^="http://"], a[href^="https://"]').not('a[class*=internal]').attr('target', '_blank'); 3 | $('a[href$=".docx"], a[href$=".xlsx"]').not('a[class*=internal]').attr('target', '_self'); 4 | }); 5 | -------------------------------------------------------------------------------- /docs/source/index.rst: -------------------------------------------------------------------------------- 1 | ================================= 2 | AboutCode Toolkit's Documentation 3 | ================================= 4 | 5 | Welcome to the AboutCode Toolkit's Documentation. 6 | 7 | .. toctree:: 8 | :maxdepth: 2 9 | 10 | AboutCode Toolkit 11 | General 12 | Specification 13 | Reference 14 | Type of Errors 15 | -------------------------------------------------------------------------------- /docs/source/type_of_errors.rst: -------------------------------------------------------------------------------- 1 | .. _type_of_errors: 2 | 3 | ============== 4 | Type of Errors 5 | ============== 6 | 7 | We have 6 type of errors as describe below: 8 | 9 | NOTSET 10 | ====== 11 | 12 | Trigger: 13 | -------- 14 | 15 | * None 16 | 17 | Details 18 | ^^^^^^^ 19 | 20 | We do not have event to trigger this error. 21 | 22 | 23 | DEBUG 24 | ===== 25 | 26 | Trigger: 27 | -------- 28 | 29 | * None 30 | 31 | Details 32 | ^^^^^^^ 33 | 34 | We do not have event to trigger this error. 35 | 36 | 37 | INFO 38 | ==== 39 | 40 | Trigger: 41 | -------- 42 | 43 | * `about_resource` not found 44 | * Custom fields detected 45 | * Empty field value 46 | 47 | 48 | WARNING 49 | ======= 50 | 51 | Trigger: 52 | -------- 53 | 54 | * Duplicated value being ignored 55 | * Invalid Package URL from input 56 | * Invalid URL from input 57 | 58 | 59 | ERROR 60 | ===== 61 | 62 | Trigger: 63 | -------- 64 | 65 | * Invalid license 66 | * Invalid API call 67 | * Invalid character 68 | * Invalid input 69 | * Duplicated field name 70 | * Incorrect input format 71 | * Failure to write ABOUT file 72 | * Network problem 73 | 74 | 75 | CRITICAL 76 | ======== 77 | 78 | Trigger: 79 | -------- 80 | 81 | * Invalid template 82 | * File field not found 83 | * Duplicated `about_resource` 84 | * Not supported field format 85 | * Essential or required field not found 86 | * Internal error 87 | * Empty ABOUT file 88 | * Invalid ABOUT file 89 | 90 | 91 | .. note:: 92 | If `--verbose` is set, all the detected errors will be reported. 93 | Otherwise, only "CRITICAL", "ERROR" and 'WARNING" will be reported. 94 | -------------------------------------------------------------------------------- /etc/ci/azure-container-deb.yml: -------------------------------------------------------------------------------- 1 | parameters: 2 | job_name: '' 3 | container: '' 4 | python_path: '' 5 | python_version: '' 6 | package_manager: apt-get 7 | install_python: '' 8 | install_packages: | 9 | set -e -x 10 | sudo apt-get -y update 11 | sudo apt-get -y install \ 12 | build-essential \ 13 | xz-utils zlib1g bzip2 libbz2-1.0 tar \ 14 | sqlite3 libxml2-dev libxslt1-dev \ 15 | software-properties-common openssl 16 | test_suite: '' 17 | test_suite_label: '' 18 | 19 | 20 | jobs: 21 | - job: ${{ parameters.job_name }} 22 | 23 | pool: 24 | vmImage: 'ubuntu-16.04' 25 | 26 | container: 27 | image: ${{ parameters.container }} 28 | options: '--name ${{ parameters.job_name }} -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -v /usr/bin/docker:/tmp/docker:ro' 29 | 30 | steps: 31 | - checkout: self 32 | fetchDepth: 10 33 | 34 | - script: /tmp/docker exec -t -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -u 0 ${{ parameters.job_name }} $(Build.SourcesDirectory)/etc/ci/install_sudo.sh ${{ parameters.package_manager }} 35 | displayName: Install sudo 36 | 37 | - script: ${{ parameters.install_packages }} 38 | displayName: Install required packages 39 | 40 | - script: ${{ parameters.install_python }} 41 | displayName: 'Install Python ${{ parameters.python_version }}' 42 | 43 | - script: ${{ parameters.python_path }} --version 44 | displayName: 'Show Python version' 45 | 46 | - script: PYTHON_EXE=${{ parameters.python_path }} ./configure --dev 47 | displayName: 'Run Configure' 48 | 49 | - script: ${{ parameters.test_suite }} 50 | displayName: 'Run ${{ parameters.test_suite_label }} tests with py${{ parameters.python_version }} on ${{ parameters.job_name }}' 51 | -------------------------------------------------------------------------------- /etc/ci/azure-container-rpm.yml: -------------------------------------------------------------------------------- 1 | parameters: 2 | job_name: '' 3 | image_name: 'ubuntu-16.04' 4 | container: '' 5 | python_path: '' 6 | python_version: '' 7 | package_manager: yum 8 | install_python: '' 9 | install_packages: | 10 | set -e -x 11 | sudo yum groupinstall -y "Development Tools" 12 | sudo yum install -y \ 13 | openssl openssl-devel \ 14 | sqlite-devel zlib-devel xz-devel bzip2-devel \ 15 | bzip2 tar unzip zip \ 16 | libxml2-devel libxslt-devel 17 | test_suite: '' 18 | test_suite_label: '' 19 | 20 | 21 | jobs: 22 | - job: ${{ parameters.job_name }} 23 | 24 | pool: 25 | vmImage: ${{ parameters.image_name }} 26 | 27 | container: 28 | image: ${{ parameters.container }} 29 | options: '--name ${{ parameters.job_name }} -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -v /usr/bin/docker:/tmp/docker:ro' 30 | 31 | steps: 32 | - checkout: self 33 | fetchDepth: 10 34 | 35 | - script: /tmp/docker exec -t -e LANG=C.UTF-8 -e LC_ALL=C.UTF-8 -u 0 ${{ parameters.job_name }} $(Build.SourcesDirectory)/etc/ci/install_sudo.sh ${{ parameters.package_manager }} 36 | displayName: Install sudo 37 | 38 | - script: ${{ parameters.install_packages }} 39 | displayName: Install required packages 40 | 41 | - script: ${{ parameters.install_python }} 42 | displayName: 'Install Python ${{ parameters.python_version }}' 43 | 44 | - script: ${{ parameters.python_path }} --version 45 | displayName: 'Show Python version' 46 | 47 | - script: PYTHON_EXE=${{ parameters.python_path }} ./configure --dev 48 | displayName: 'Run Configure' 49 | 50 | - script: ${{ parameters.test_suite }} 51 | displayName: 'Run ${{ parameters.test_suite_label }} tests with py${{ parameters.python_version }} on ${{ parameters.job_name }}' 52 | -------------------------------------------------------------------------------- /etc/ci/azure-posix.yml: -------------------------------------------------------------------------------- 1 | parameters: 2 | job_name: '' 3 | image_name: '' 4 | python_versions: [] 5 | test_suites: {} 6 | python_architecture: x64 7 | 8 | jobs: 9 | - job: ${{ parameters.job_name }} 10 | 11 | pool: 12 | vmImage: ${{ parameters.image_name }} 13 | 14 | strategy: 15 | matrix: 16 | ${{ each tsuite in parameters.test_suites }}: 17 | ${{ tsuite.key }}: 18 | test_suite_label: ${{ tsuite.key }} 19 | test_suite: ${{ tsuite.value }} 20 | 21 | steps: 22 | - checkout: self 23 | fetchDepth: 10 24 | 25 | - ${{ each pyver in parameters.python_versions }}: 26 | - task: UsePythonVersion@0 27 | inputs: 28 | versionSpec: '${{ pyver }}' 29 | architecture: '${{ parameters.python_architecture }}' 30 | displayName: '${{ pyver }} - Install Python' 31 | 32 | - script: | 33 | python${{ pyver }} --version 34 | echo "python${{ pyver }}" > PYTHON_EXECUTABLE 35 | ./configure --clean && ./configure --dev 36 | displayName: '${{ pyver }} - Configure' 37 | 38 | - script: $(test_suite) 39 | displayName: '${{ pyver }} - $(test_suite_label) on ${{ parameters.job_name }}' 40 | -------------------------------------------------------------------------------- /etc/ci/azure-win.yml: -------------------------------------------------------------------------------- 1 | parameters: 2 | job_name: '' 3 | image_name: '' 4 | python_versions: [] 5 | test_suites: {} 6 | python_architecture: x64 7 | 8 | jobs: 9 | - job: ${{ parameters.job_name }} 10 | 11 | pool: 12 | vmImage: ${{ parameters.image_name }} 13 | 14 | strategy: 15 | matrix: 16 | ${{ each tsuite in parameters.test_suites }}: 17 | ${{ tsuite.key }}: 18 | test_suite_label: ${{ tsuite.key }} 19 | test_suite: ${{ tsuite.value }} 20 | 21 | steps: 22 | - checkout: self 23 | fetchDepth: 10 24 | 25 | - ${{ each pyver in parameters.python_versions }}: 26 | - task: UsePythonVersion@0 27 | inputs: 28 | versionSpec: '${{ pyver }}' 29 | architecture: '${{ parameters.python_architecture }}' 30 | displayName: '${{ pyver }} - Install Python' 31 | 32 | - script: | 33 | python --version 34 | echo | set /p=python> PYTHON_EXECUTABLE 35 | configure --clean && configure --dev 36 | displayName: '${{ pyver }} - Configure' 37 | 38 | - script: $(test_suite) 39 | displayName: '${{ pyver }} - $(test_suite_label) on ${{ parameters.job_name }}' 40 | -------------------------------------------------------------------------------- /etc/ci/install_sudo.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | 5 | if [[ "$1" == "apt-get" ]]; then 6 | apt-get update -y 7 | apt-get -o DPkg::Options::="--force-confold" install -y sudo 8 | 9 | elif [[ "$1" == "yum" ]]; then 10 | yum install -y sudo 11 | 12 | elif [[ "$1" == "dnf" ]]; then 13 | dnf install -y sudo 14 | 15 | fi 16 | -------------------------------------------------------------------------------- /etc/ci/macports-ci.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: macports-ci 2 | name: macports-ci 3 | version: c9676e67351a3a519e37437e196cd0ee9c2180b8 4 | download_url: https://raw.githubusercontent.com/GiovanniBussi/macports-ci/c9676e67351a3a519e37437e196cd0ee9c2180b8/macports-ci 5 | description: Simplify MacPorts setup on Travis-CI 6 | homepage_url: https://github.com/GiovanniBussi/macports-ci 7 | license_expression: mit 8 | copyright: Copyright (c) Giovanni Bussi 9 | attribute: yes 10 | checksum_md5: 5d31d479132502f80acdaed78bed9e23 11 | checksum_sha1: 74b15643bd1a528d91b4a7c2169c6fc656f549c2 12 | package_url: pkg:github/giovannibussi/macports-ci@c9676e67351a3a519e37437e196cd0ee9c2180b8#macports-ci 13 | licenses: 14 | - key: mit 15 | name: MIT License 16 | file: mit.LICENSE 17 | -------------------------------------------------------------------------------- /etc/ci/mit.LICENSE: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 2 | 3 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 4 | 5 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /etc/scripts/check_thirdparty.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # 3 | # Copyright (c) nexB Inc. and others. All rights reserved. 4 | # ScanCode is a trademark of nexB Inc. 5 | # SPDX-License-Identifier: Apache-2.0 6 | # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. 7 | # See https://github.com/aboutcode-org/skeleton for support or download. 8 | # See https://aboutcode.org for more information about nexB OSS projects. 9 | # 10 | import click 11 | 12 | import utils_thirdparty 13 | 14 | 15 | @click.command() 16 | @click.option( 17 | "-d", 18 | "--dest", 19 | type=click.Path(exists=True, readable=True, path_type=str, file_okay=False), 20 | required=True, 21 | help="Path to the thirdparty directory to check.", 22 | ) 23 | @click.option( 24 | "-w", 25 | "--wheels", 26 | is_flag=True, 27 | help="Check missing wheels.", 28 | ) 29 | @click.option( 30 | "-s", 31 | "--sdists", 32 | is_flag=True, 33 | help="Check missing source sdists tarballs.", 34 | ) 35 | @click.help_option("-h", "--help") 36 | def check_thirdparty_dir( 37 | dest, 38 | wheels, 39 | sdists, 40 | ): 41 | """ 42 | Check a thirdparty directory for problems and print these on screen. 43 | """ 44 | print("==> CHECK FOR PROBLEMS") 45 | utils_thirdparty.find_problems( 46 | dest_dir=dest, 47 | report_missing_sources=sdists, 48 | report_missing_wheels=wheels, 49 | ) 50 | 51 | 52 | if __name__ == "__main__": 53 | check_thirdparty_dir() 54 | -------------------------------------------------------------------------------- /etc/scripts/gen_pypi_simple.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: gen_pypi_simple.py 2 | name: gen_pypi_simple.py 3 | license_expression: bsd-2-clause-views and mit 4 | copyright: Copyright (c) nexB Inc. 5 | Copyright (c) 2010 David Wolever 6 | Copyright (c) The pip developers 7 | notes: Originally from https://github.com/wolever/pip2pi and modified extensivley 8 | Also partially derived from pip code 9 | -------------------------------------------------------------------------------- /etc/scripts/gen_requirements.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # 3 | # Copyright (c) nexB Inc. and others. All rights reserved. 4 | # ScanCode is a trademark of nexB Inc. 5 | # SPDX-License-Identifier: Apache-2.0 6 | # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. 7 | # See https://github.com/aboutcode-org/skeleton for support or download. 8 | # See https://aboutcode.org for more information about nexB OSS projects. 9 | # 10 | import argparse 11 | import pathlib 12 | 13 | import utils_requirements 14 | 15 | """ 16 | Utilities to manage requirements files. 17 | NOTE: this should use ONLY the standard library and not import anything else 18 | because this is used for boostrapping with no requirements installed. 19 | """ 20 | 21 | 22 | def gen_requirements(): 23 | description = """ 24 | Create or replace the `--requirements-file` file FILE requirements file with all 25 | locally installed Python packages.all Python packages found installed in `--site-packages-dir` 26 | """ 27 | parser = argparse.ArgumentParser(description=description) 28 | 29 | parser.add_argument( 30 | "-s", 31 | "--site-packages-dir", 32 | dest="site_packages_dir", 33 | type=pathlib.Path, 34 | required=True, 35 | metavar="DIR", 36 | help="Path to the 'site-packages' directory where wheels are installed " 37 | "such as lib/python3.12/site-packages", 38 | ) 39 | parser.add_argument( 40 | "-r", 41 | "--requirements-file", 42 | type=pathlib.Path, 43 | metavar="FILE", 44 | default="requirements.txt", 45 | help="Path to the requirements file to update or create.", 46 | ) 47 | 48 | args = parser.parse_args() 49 | 50 | utils_requirements.lock_requirements( 51 | site_packages_dir=args.site_packages_dir, 52 | requirements_file=args.requirements_file, 53 | ) 54 | 55 | 56 | if __name__ == "__main__": 57 | gen_requirements() 58 | -------------------------------------------------------------------------------- /etc/scripts/requirements.txt: -------------------------------------------------------------------------------- 1 | aboutcode_toolkit 2 | attrs 3 | commoncode 4 | click 5 | requests 6 | saneyaml 7 | pip 8 | setuptools 9 | twine 10 | wheel 11 | build 12 | packvers 13 | -------------------------------------------------------------------------------- /etc/scripts/test_utils_pip_compatibility_tags.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: test_utils_pip_compatibility_tags.py 2 | 3 | type: github 4 | namespace: pypa 5 | name: pip 6 | version: 20.3.1 7 | subpath: tests/unit/test_utils_compatibility_tags.py 8 | 9 | package_url: pkg:github/pypa/pip@20.3.1#tests/unit/test_utils_compatibility_tags.py 10 | 11 | download_url: https://raw.githubusercontent.com/pypa/pip/20.3.1/tests/unit/test_utils_compatibility_tags.py 12 | copyright: Copyright (c) 2008-2020 The pip developers (see AUTHORS.txt file) 13 | license_expression: mit 14 | notes: subset copied from pip for tag handling 15 | -------------------------------------------------------------------------------- /etc/scripts/test_utils_pypi_supported_tags.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: test_utils_pypi_supported_tags.py 2 | 3 | type: github 4 | namespace: pypa 5 | name: warehouse 6 | version: 37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d 7 | subpath: tests/unit/forklift/test_legacy.py 8 | 9 | package_url: pkg:github/pypa/warehouse@37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d#tests/unit/forklift/test_legacy.py 10 | 11 | download_url: https://github.com/pypa/warehouse/blob/37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d/tests/unit/forklift/test_legacy.py 12 | copyright: Copyright (c) The warehouse developers 13 | homepage_url: https://warehouse.readthedocs.io 14 | license_expression: apache-2.0 15 | notes: Test for wheel platform checking copied and heavily modified on 16 | 2020-12-24 from warehouse. This contains the basic functions to check if a 17 | wheel file name is would be supported for uploading to PyPI. 18 | -------------------------------------------------------------------------------- /etc/scripts/utils_pip_compatibility_tags.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: utils_pip_compatibility_tags.py 2 | 3 | type: github 4 | namespace: pypa 5 | name: pip 6 | version: 20.3.1 7 | subpath: src/pip/_internal/utils/compatibility_tags.py 8 | 9 | package_url: pkg:github/pypa/pip@20.3.1#src/pip/_internal/utils/compatibility_tags.py 10 | 11 | download_url: https://github.com/pypa/pip/blob/20.3.1/src/pip/_internal/utils/compatibility_tags.py 12 | copyright: Copyright (c) 2008-2020 The pip developers (see AUTHORS.txt file) 13 | license_expression: mit 14 | notes: subset copied from pip for tag handling -------------------------------------------------------------------------------- /etc/scripts/utils_pypi_supported_tags.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: utils_pypi_supported_tags.py 2 | 3 | type: github 4 | namespace: pypa 5 | name: warehouse 6 | version: 37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d 7 | subpath: warehouse/forklift/legacy.py 8 | 9 | package_url: pkg:github/pypa/warehouse@37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d#warehouse/forklift/legacy.py 10 | 11 | download_url: https://github.com/pypa/warehouse/blob/37a83dd342d9e3b3ab4f6bde47ca30e6883e2c4d/warehouse/forklift/legacy.py 12 | copyright: Copyright (c) The warehouse developers 13 | homepage_url: https://warehouse.readthedocs.io 14 | license_expression: apache-2.0 15 | notes: Wheel platform checking copied and heavily modified on 2020-12-24 from 16 | warehouse. This contains the basic functions to check if a wheel file name is 17 | would be supported for uploading to PyPI. 18 | -------------------------------------------------------------------------------- /etc/scripts/utils_thirdparty.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: utils_thirdparty.py 2 | package_url: pkg:github.com/pypa/pip/@20.3.1#src/pip/_internal/models/wheel.py 3 | type: github 4 | namespace: pypa 5 | name: pip 6 | version: 20.3.1 7 | subpath: src/pip/_internal/models/wheel.py 8 | 9 | download_url: https://github.com/pypa/pip/blob/20.3.1/src/pip/_internal/models/wheel.py 10 | copyright: Copyright (c) 2008-2020 The pip developers (see AUTHORS.txt file) 11 | license_expression: mit 12 | notes: copied from pip-20.3.1 pip/_internal/models/wheel.py 13 | The models code has been heavily inspired from the ISC-licensed packaging-dists 14 | https://github.com/uranusjr/packaging-dists by Tzu-ping Chung 15 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/alocal.m4.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: alocal.m4 2 | name: alocal.m4 3 | copyright: | 4 | Copyright (c) 1995-2003 Free Software Foundation, Inc. 5 | license_expression: public-domain 6 | licenses: 7 | - file: public-domain.LICENSE 8 | key: public-domain 9 | name: Public Domain 10 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:public-domain 11 | owner: Free Software Foundation 12 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/config/config.guess.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: config.guess 2 | name: config.guess 3 | attribute: yes 4 | checksum_sha1: 6bf255982f9104c1423347581c55b4a34336e933 5 | copyright: | 6 | Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 7 | 2003, 2004, 2005 Free Software Foundation, Inc. 8 | license_expression: gpl-2.0-autoconf 9 | licenses: 10 | - file: gpl-2.0-autoconf.LICENSE 11 | key: gpl-2.0-autoconf 12 | name: GPL 2.0 with Autoconf exception 13 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:gpl-2.0-autoconf 14 | owner: Theodore Ts'o 15 | redistribute: yes 16 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/config/config.rpath.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: config.rpath 2 | name: config.rpath 3 | attribute: yes 4 | checksum_sha1: 98461658e371e01ef48f2ea173823c96fecc6145 5 | copyright: | 6 | Copyright 1996-2002 Free Software Foundation, Inc. 7 | license_expression: gpl-2.0-autoconf 8 | licenses: 9 | - file: gpl-2.0-autoconf.LICENSE 10 | key: gpl-2.0-autoconf 11 | name: GPL 2.0 with Autoconf exception 12 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:gpl-2.0-autoconf 13 | owner: Theodore Ts'o 14 | redistribute: yes 15 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/config/config.sub.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: config.sub 2 | name: config.sub 3 | attribute: yes 4 | checksum_sha1: c6aba2045763f997fc81c1d881304755b09d2e02 5 | copyright: | 6 | Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 7 | 2003, 2004, 2005 Free Software Foundation, Inc. 8 | license_expression: gpl-2.0-autoconf 9 | licenses: 10 | - file: gpl-2.0-autoconf.LICENSE 11 | key: gpl-2.0-autoconf 12 | name: GPL 2.0 with Autoconf exception 13 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:gpl-2.0-autoconf 14 | owner: Theodore Ts'o 15 | redistribute: yes 16 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/config/gpl-2.0-autoconf.LICENSE: -------------------------------------------------------------------------------- 1 | This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. 2 | 3 | This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 4 | 5 | You should have received a copy of the GNU General Public License along with this library; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 6 | 7 | As a special exception to the GNU General Public License, if you distribute this file as part of a program that contains a configuration script generated by Autoconf, you may include it under the same distribution terms that you use for the rest of that program. -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/config/mkinstalldirs.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: mkinstalldirs 2 | name: mkinstalldirs 3 | checksum_sha1: e8066bf9dc4353afffcfc5c2ec1cc9cc757585de 4 | download_url: http://svn.apache.org/repos/asf/axis/axis1/c/trunk/mkinstalldirs 5 | license_expression: public-domain 6 | licenses: 7 | - file: public-domain.LICENSE 8 | key: public-domain 9 | name: Public Domain 10 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:public-domain 11 | owner: Noah Friedman 12 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/config/public-domain.LICENSE: -------------------------------------------------------------------------------- 1 | This component is released to the public domain by the author. -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/contrib/UlrichWindl.LICENSE: -------------------------------------------------------------------------------- 1 | # Create Adobe-PostScript file that graphically displays the output of 2 | # dumpe2fs(8). Use "dumpe2fs | dconf" to create a PostScript file on stdout. 3 | # Developed and tested for Linux 1.0. 4 | # Copyright (c) 1994 5 | # Ulrich Windl 6 | # ALte Regensburger Strasse 11a 7 | # D-93149 Nittenau, Germany 8 | # 9 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/contrib/dconf.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: dconf 2 | name: dconf 3 | checksum_sha1: 98bd1184714d0463da59644c4b01559947b5c4e0 4 | copyright: Copyright (c) 1994 Ulrich Windl 5 | download_url: http://stuff.mit.edu/afs/sipb.mit.edu/user/tytso/e2fsprogs/contrib/dconf 6 | licenses: 7 | - file: UlrichWindl.LICENSE 8 | owner: Ulrich Windl 9 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsck/KazKylheku.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 1997 Kaz Kylheku 2 | 3 | Free Software License: 4 | 5 | All rights are reserved by the author, with the following exceptions: 6 | Permission is granted to freely reproduce and distribute this software, 7 | possibly in exchange for a fee, provided that this copyright notice appears 8 | intact. Permission is also granted to adapt this software to produce 9 | derivative works, as long as the modified versions carry this copyright 10 | notice and additional notices stating that the work has been modified. 11 | This source code may be translated into executable form and incorporated 12 | into proprietary software; there is no requirement for such software to 13 | contain a copyright notice related to this source. 14 | 15 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsck/argv_parse.c.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: argv_parse.c 2 | name: argv_parse.c 3 | attribute: yes 4 | checksum_sha1: 318ea46f5d3a08ae60d311b0cfe0b0c19e00a286 5 | copyright: Copyright 1999 by Theodore Ts'o 6 | license_expression: mit-old-style-legal-2 7 | licenses: 8 | - file: mit-old-style-legal-2.LICENSE 9 | key: mit-old-style-legal-2 10 | name: MIT Old Style with legal disclaimer 2 11 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:mit-old-style-legal-2 12 | owner: Theodore Ts'o 13 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsck/argv_parse.h.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: argv_parse.h 2 | name: argv_parse.h 3 | attribute: yes 4 | checksum_sha1: fbe63cb7e5c5c90ba03b47e1e105ac1e50c2ba2a 5 | copyright: Copyright 1999 by Theodore Ts'o 6 | license_expression: mit-old-style-legal-2 7 | licenses: 8 | - file: mit-old-style-legal-2.LICENSE 9 | key: mit-old-style-legal-2 10 | name: MIT Old Style with legal disclaimer 2 11 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:mit-old-style-legal-2 12 | owner: Theodore Ts'o 13 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsck/dict.c.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: dict.c 2 | name: dict.c 3 | attribute: yes 4 | checksum_sha1: 52e5af00e28008e9fb264a88f46566947e4b09f7 5 | copyright: | 6 | Copyright (C) 1997 Kaz Kylheku 7 | licenses: 8 | - file: KazKylheku.LICENSE 9 | owner: Kaz Kylheku 10 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsck/dict.h.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: dict.h 2 | name: dict.h 3 | attribute: yes 4 | checksum_sha1: 0f99603368345b82318e0fb186421cbaa3d8c3a2 5 | copyright: | 6 | Copyright (C) 1997 Kaz Kylheku 7 | licenses: 8 | - file: KazKylheku.LICENSE 9 | owner: Kaz Kylheku 10 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsck/journal.c.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: journal.c 2 | name: journal.c 3 | attribute: yes 4 | checksum_sha1: 02ef021aec0bea6f3a7377ab72d43491c5866dc5 5 | copyright: | 6 | Copyright (C) 2000 Andreas Dilger 7 | Copyright (C) 2000 Theodore Ts'o 8 | Copyright (C) 1999 Red Hat Software 9 | license_expression: gpl-2.0 10 | licenses: 11 | - file: gpl-2.0.LICENSE 12 | key: gpl-2.0 13 | name: GNU General Public License 2.0 14 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:gpl-2.0 15 | owner: Stephen C. Tweedie 16 | redistribute: yes 17 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsck/mit-old-style-legal-2.LICENSE: -------------------------------------------------------------------------------- 1 | This license is obsolete. See the ISC License. -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsck/mtrace.c.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: mtrace.c 2 | name: mtrace.c 3 | attribute: yes 4 | checksum_sha1: badc318b64d9485aa965fae4b5c2f954c5001e90 5 | copyright: | 6 | Copyright (C) 1991, 1992 Free Software Foundation, Inc. 7 | Written April 2, 1991 by John Gilmore of Cygnus Support. 8 | Based on mcheck.c by Mike Haertel. 9 | license_expression: lgpl-2.0 10 | licenses: 11 | - file: lgpl-2.0.LICENSE 12 | key: lgpl-2.0 13 | name: GNU Library General Public License 2.0 14 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:lgpl-2.0 15 | owner: Mike Haertel 16 | redistribute: yes 17 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsck/mtrace.h.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: mtrace.h 2 | name: mtrace.h 3 | attribute: yes 4 | checksum_sha1: 3fd39f30399e003b1de7772173597bdef2993df3 5 | copyright: | 6 | Copyright 1990, 1991, 1992 Free Software Foundation, Inc. 7 | Written May 1989 by Mike Haertel. 8 | license_expression: lgpl-2.0 9 | licenses: 10 | - file: lgpl-2.0.LICENSE 11 | key: lgpl-2.0 12 | name: GNU Library General Public License 2.0 13 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:lgpl-2.0 14 | owner: Mike Haertel 15 | redistribute: yes 16 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsck/profile.c.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: profile.c 2 | name: profile.c 3 | attribute: yes 4 | checksum_sha1: 87fde75c46dc2248516dda298ef6357ec3a2df6a 5 | copyright: | 6 | Copyright (C) 2005 by Theodore Ts'o. 7 | Copyright (C) 1985-2005 by the Massachusetts Institute of Technology. 8 | license_expression: gpl-2.0 9 | licenses: 10 | - file: gpl-2.0.LICENSE 11 | key: gpl-2.0 12 | name: GNU General Public License 2.0 13 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:gpl-2.0 14 | owner: Theodore Ts'o 15 | redistribute: yes 16 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsck/profile.h.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: profile.h 2 | name: profile.h 3 | attribute: yes 4 | checksum_sha1: c95dd8d01dc42096b40fa9ac0ee96ce56db61c38 5 | copyright: | 6 | Copyright (C) 2005 by Theodore Ts'o. 7 | Copyright (C) 1985-2005 by the Massachusetts Institute of Technology. 8 | license_expression: gpl-2.0 9 | licenses: 10 | - file: gpl-2.0.LICENSE 11 | key: gpl-2.0 12 | name: GNU General Public License 2.0 13 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:gpl-2.0 14 | owner: Theodore Ts'o 15 | redistribute: yes 16 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsprogs-1.39.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: e2fsprogs 3 | version: '1.39' 4 | attribute: yes 5 | copyright: Copyright (c) 1997-2004 Theodore Ts'o 6 | download_url: http://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/1.39/e2fsprogs-1.39.tar.gz/ 7 | license_expression: gpl-2.0 8 | licenses: 9 | - file: gpl-2.0.LICENSE 10 | key: gpl-2.0 11 | name: GNU General Public License 2.0 12 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:gpl-2.0 13 | notice_file: e2fsprogs-1.39.NOTICE 14 | owner: Theodore Ts'o 15 | redistribute: yes 16 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/e2fsprogs-1.39.NOTICE: -------------------------------------------------------------------------------- 1 | This package, the EXT2 filesystem utilities, are made available under 2 | the GNU Public License, with the exception of the lib/uuid directory 3 | which is made available under a BSD-style license. Please see 4 | lib/uuid/COPYING for more details for the license for the files 5 | comprising the libuuid library. 6 | 7 | However, I request that if the version string in the file version.h 8 | contains the string "pre-", or "WIP" that this version of e2fsprogs be 9 | distributed in source form only. Please feel free to give a copy of 10 | the e2fsck binary to help a friend recover his or her filesystem, as 11 | the need arises. However, "pre" or "WIP" indicates that this release 12 | is under development, and available for ALPHA testing. So for your 13 | protection as much as mine, I'd prefer that it not appear in a some 14 | distribution --- especially not a CD-ROM distribution! 15 | 16 | The most recent officially distributed version can be found at 17 | http://e2fsprogs.sourceforge.net. If you need to make a distribution, 18 | that's the one you should use. If there is some reason why you'd like 19 | a more recent version that is still in ALPHA testing for your 20 | distribution, please contact me (tytso@mit.edu), and we will very 21 | likely be able to work out something that will work for all concerned. 22 | The release schedules for this package are flexible, if you give me 23 | enough lead time. 24 | 25 | Theodore Ts'o 26 | 15-Mar-2003 27 | 28 | ---------------------------------------------------------------------- 29 | 30 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/include/nonunix/getopt.h.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: getopt.h 2 | name: getopt.h 3 | attribute: yes 4 | checksum_sha1: 2fede7afd8211e66071476da4553a44029be67d5 5 | copyright: | 6 | Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc. 7 | download_url: http://stuff.mit.edu/afs/sipb.mit.edu/user/tytso/e2fsprogs/include/nonunix/getopt.h 8 | license_expression: lgpl-2.0 9 | licenses: 10 | - file: lgpl-2.0.LICENSE 11 | key: lgpl-2.0 12 | name: GNU Library General Public License 2.0 13 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:lgpl-2.0 14 | owner: GNU C Library 15 | redistribute: yes 16 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/install-utils/convfstab.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: convfstab 2 | name: convfstab 3 | checksum_sha1: dde2f47f8abbe15627cd5bfe0e2283fbb820eda6 4 | download_url: http://stuff.mit.edu/afs/sipb.mit.edu/user/tytso/e2fsprogs/install-utils/convfstab 5 | license_expression: public-domain 6 | licenses: 7 | - file: public-domain.LICENSE 8 | key: public-domain 9 | name: Public Domain 10 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:public-domain 11 | owner: M.Weller 12 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/install-utils/public-domain.LICENSE: -------------------------------------------------------------------------------- 1 | This component is released to the public domain by the author. -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/intl/intl.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: intl 3 | attribute: yes 4 | copyright: | 5 | Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. 6 | license_expression: lgpl-2.0 7 | licenses: 8 | - file: lgpl-2.0.LICENSE 9 | key: lgpl-2.0 10 | name: GNU Library General Public License 2.0 11 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:lgpl-2.0 12 | owner: Theodore Ts'o 13 | redistribute: yes 14 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/blkid/blkid.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: blkid 3 | attribute: yes 4 | copyright: | 5 | Copyright (C) 2001 Andreas Dilger 6 | Copyright (C) 2003 Theodore Ts'o 7 | Copyright (C) 1999 by Andries Brouwer 8 | license_expression: lgpl-2.1 9 | licenses: 10 | - file: lgpl-2.1.LICENSE 11 | key: lgpl-2.1 12 | name: GNU Lesser General Public License 2.1 13 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:lgpl-2.1 14 | owner: Theodore Ts'o 15 | redistribute: yes 16 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/bsla.LICENSE: -------------------------------------------------------------------------------- 1 | * Copyright (c) 1983 Regents of the University of California. 2 | * All rights reserved. 3 | * 4 | * Redistribution and use in source and binary forms are permitted 5 | * provided that the above copyright notice and this paragraph are 6 | * duplicated in all such forms and that any documentation, 7 | * advertising materials, and other materials related to such 8 | * distribution and use acknowledge that the software was developed 9 | * by the University of California, Berkeley. The name of the 10 | * University may not be used to endorse or promote products derived 11 | * from this software without specific prior written permission. 12 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 13 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 14 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/e2p/e2p.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: e2p 3 | attribute: yes 4 | copyright: | 5 | Copyright (C) 1992, 1993, 1994 Remy Card 6 | Copyright (c) 1999 Theodore Ts 7 | license_expression: lgpl-2.0 8 | licenses: 9 | - file: lgpl-2.0.LICENSE 10 | key: lgpl-2.0 11 | name: GNU Library General Public License 2.0 12 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:lgpl-2.0 13 | owner: Theodore Ts'o 14 | redistribute: yes 15 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/et/bsd-new.LICENSE: -------------------------------------------------------------------------------- 1 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 2 | 3 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 4 | 5 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 6 | 7 | 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 8 | 9 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/et/bsla.LICENSE: -------------------------------------------------------------------------------- 1 | * Copyright (c) 1983 Regents of the University of California. 2 | * All rights reserved. 3 | * 4 | * Redistribution and use in source and binary forms are permitted 5 | * provided that the above copyright notice and this paragraph are 6 | * duplicated in all such forms and that any documentation, 7 | * advertising materials, and other materials related to such 8 | * distribution and use acknowledge that the software was developed 9 | * by the University of California, Berkeley. The name of the 10 | * University may not be used to endorse or promote products derived 11 | * from this software without specific prior written permission. 12 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 13 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 14 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/et/com_right.c.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: com_right.c 2 | name: com_right.c 3 | attribute: yes 4 | checksum_sha1: 3d14b06ab31477a1fec4354d8b9f9c82b35896bb 5 | copyright: | 6 | Copyright (c) 2003 by Theodore Ts'o 7 | Copyright (c) 1997, 1998, 2001 Kungliga Tekniska Hgskolan 8 | license_expression: bsd-new 9 | licenses: 10 | - file: bsd-new.LICENSE 11 | key: bsd-new 12 | name: BSD-3-Clause 13 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:bsd-new 14 | owner: Kerberos4kth 15 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/et/et.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: et 3 | attribute: yes 4 | copyright: | 5 | Copyright 2003 by MIT Student Information Processing Board 6 | licenses: 7 | - file: kerberos.LICENSE 8 | owner: Theodore Ts'o 9 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/et/texinfo.tex.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: texinfo.tex 2 | name: texinfo.tex 3 | attribute: yes 4 | checksum_sha1: 1b73dbf5dbc340a945d2bc75f61cc212f5ae3c08 5 | copyright: | 6 | Copyright (C) 1985, 1986, 1988 Richard M. Stallman 7 | license_expression: gpl-2.0 8 | licenses: 9 | - file: gpl-2.0.LICENSE 10 | key: gpl-2.0 11 | name: GNU General Public License 2.0 12 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:gpl-2.0 13 | owner: Theodore Ts'o 14 | redistribute: yes 15 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/et/vfprintf.c.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: vfprintf.c 2 | name: vfprintf.c 3 | attribute: yes 4 | checksum_sha1: 01a03815e2550f01bbfe0b40c277e0621c52cec1 5 | copyright: | 6 | Copyright (c) 1988 Regents of the University of California 7 | license_expression: bsla 8 | licenses: 9 | - file: bsla.LICENSE 10 | key: bsla 11 | name: Berkeley Software License Agreement 12 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:bsla 13 | owner: Theodore Ts'o 14 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/fpopen.c.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: fpopen.c 2 | name: fpopen.c 3 | attribute: yes 4 | checksum_sha1: 6bd791a73921839a749fce1086ff1ede0c434ec2 5 | copyright: Copyright Theodore Ts'o, 1996-1999. 6 | license_expression: bsla 7 | licenses: 8 | - file: bsla.LICENSE 9 | key: bsla 10 | name: Berkeley Software License Agreement 11 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:bsla 12 | owner: Theodore Ts'o 13 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/ss/ss.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: ss 3 | attribute: yes 4 | copyright: | 5 | Copyright 2003 by MIT Student Information Processing Board 6 | licenses: 7 | - file: kerberos.LICENSE 8 | owner: Theodore Ts'o 9 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/uuid/bsd-new.LICENSE: -------------------------------------------------------------------------------- 1 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 2 | 3 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 4 | 5 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 6 | 7 | 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 8 | 9 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/lib/uuid/uuid.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: uuid 3 | attribute: yes 4 | copyright: Copyright (C) 1996, 1997 Theodore Ts'o 5 | license_expression: bsd-new 6 | licenses: 7 | - file: bsd-new.LICENSE 8 | key: bsd-new 9 | name: BSD-3-Clause 10 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:bsd-new 11 | owner: Theodore Ts'o 12 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/misc/blkid.c.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: blkid.c 2 | name: blkid.c 3 | attribute: yes 4 | checksum_sha1: 6448a75f8212c06bd76f59c6b96024fa94c82f12 5 | copyright: Copyright (C) 2001 Andreas Dilger 6 | license_expression: lgpl-2.1 7 | licenses: 8 | - file: lgpl-2.1.LICENSE 9 | key: lgpl-2.1 10 | name: GNU Lesser General Public License 2.1 11 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:lgpl-2.1 12 | owner: Theodore Ts'o 13 | redistribute: yes 14 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/e2fsprogs-about/e2fsprogs-1.39/public-domain.LICENSE: -------------------------------------------------------------------------------- 1 | This component is released to the public domain by the author. -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/input/MAPPING.CONFIG: -------------------------------------------------------------------------------- 1 | # This is a mapping configuration file. 2 | # Your input may not have the same column headers/keys as required by the tool. Don't worry, this file will help on the keys mapping. 3 | # (If your input already have the following fields, you don't need to worry about this file.) 4 | # 5 | # To activate this mapping configuration, use the option "--mapping" 6 | # i.e. 7 | # about [command] --mapping [ARGS]... 8 | # 9 | # Below are the fields that are needed for the tool: 10 | # * about_file_path 11 | # * name 12 | # 13 | # Syntax: 14 | # : 15 | # 16 | # Example: 17 | # Assuming your input have columns "Resource", "Component" and wanted to convert "Resource" to "about_resource" 18 | # and "Component" to "name" 19 | # 20 | # about_resource: Resource 21 | # name: Component 22 | # 23 | # 24 | # Note: All the Custom Field's keys will be converted to lower case and 25 | # no spaces is allowed for the key's name. 26 | # 27 | # 28 | # See https://aboutcode.readthedocs.io/projects/aboutcode-toolkit/ for more information 29 | # 30 | 31 | # Essential Fields 32 | about_file_path: pathname 33 | name: component 34 | 35 | # Optional Fields 36 | version: cversion 37 | checksum_sha1: sha1 38 | 39 | # Custom Fields 40 | category: Category 41 | confirmed_license: Confirmed_License 42 | component_type: file_type 43 | -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/input/e2fsprogs-1.39-CreateAboutFile.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/example/e2fsprogs-1.39/input/e2fsprogs-1.39-CreateAboutFile.csv -------------------------------------------------------------------------------- /example/e2fsprogs-1.39/input/e2fsprogs-1.39-INV.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/example/e2fsprogs-1.39/input/e2fsprogs-1.39-INV.xlsx -------------------------------------------------------------------------------- /requirements-dev.txt: -------------------------------------------------------------------------------- 1 | bleach==4.1.0 2 | build==0.7.0 3 | commonmark==0.9.1 4 | docutils==0.18.1 5 | et-xmlfile==1.1.0 6 | execnet==1.9.0 7 | iniconfig==1.1.1 8 | jeepney==0.7.1 9 | keyring==23.4.1 10 | openpyxl==3.0.9 11 | pep517==0.12.0 12 | pkginfo==1.8.2 13 | py==1.11.0 14 | pytest==7.0.1 15 | pytest-forked==1.4.0 16 | pytest-xdist==2.5.0 17 | readme-renderer==34.0 18 | requests-toolbelt==0.9.1 19 | rfc3986==1.5.0 20 | rich==12.3.0 21 | secretstorage==3.3.2 22 | tomli==1.2.3 23 | twine==3.8.0 24 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | attrs==21.4.0 2 | banal==1.0.6 3 | beautifulsoup4==4.11.1 4 | binaryornot==0.4.4 5 | boolean.py==3.8 6 | certifi==2024.7.4 7 | cffi==1.15.0 8 | chardet==4.0.0 9 | charset-normalizer==2.0.12 10 | click==8.0.4 11 | colorama==0.4.4 12 | commoncode==30.2.0 13 | construct==2.10.68 14 | container-inspector==31.0.0 15 | cryptography==43.0.1 16 | debian-inspector==30.0.0 17 | dockerfile-parse==1.2.0 18 | dparse2==0.6.1 19 | extractcode==31.0.0 20 | extractcode-7z==16.5.210531 21 | extractcode-libarchive==3.5.1.210531 22 | fasteners==0.17.3 23 | fingerprints==1.0.3 24 | ftfy==6.0.3 25 | future==0.18.2 26 | gemfileparser==0.8.0 27 | html5lib==1.1 28 | idna==3.7 29 | importlib-metadata==4.8.3 30 | inflection==0.5.1 31 | intbitset==3.0.1 32 | isodate==0.6.1 33 | jaraco.functools==3.4.0 34 | javaproperties==0.8.1 35 | Jinja2==3.1.4 36 | jsonstreams==0.6.0 37 | license-expression==21.6.14 38 | lxml==4.9.1 39 | MarkupSafe==2.0.1 40 | more-itertools==8.13.0 41 | normality==2.3.3 42 | packagedcode-msitools==0.101.210706 43 | packageurl-python==0.9.9 44 | packaging==21.3 45 | parameter-expansion-patched==0.3.1 46 | patch==1.16 47 | pdfminer-six==20220506 48 | pefile==2021.9.3 49 | pip-requirements-parser==31.2.0 50 | pkginfo2==30.0.0 51 | pluggy==1.0.0 52 | plugincode==30.0.0 53 | ply==3.11 54 | publicsuffix2==2.20191221 55 | pyahocorasick==2.0.0b1 56 | pycparser==2.21 57 | pygmars==0.7.0 58 | Pygments==2.15.0 59 | pymaven-patch==0.3.0 60 | pyparsing==3.0.8 61 | pytz==2022.1 62 | PyYAML==6.0 63 | rdflib==5.0.0 64 | regipy==2.3.1 65 | requests==2.31.0 66 | rpm-inspector-rpm==4.16.1.3.210404 67 | saneyaml==0.5.2 68 | six==1.16.0 69 | soupsieve==2.3.1 70 | spdx-tools==0.7.0rc0 71 | text-unidecode==1.3 72 | toml==0.10.2 73 | typecode==30.0.0 74 | typecode-libmagic==5.39.210531 75 | urllib3==1.26.19 76 | urlpy==0.5 77 | wcwidth==0.2.5 78 | webencodings==0.5.1 79 | xmltodict==0.12.0 80 | zipp==3.6.0 81 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import setuptools 4 | 5 | if __name__ == "__main__": 6 | setuptools.setup() 7 | -------------------------------------------------------------------------------- /src/attributecode/__main__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf8 -*- 3 | 4 | # ============================================================================ 5 | # Copyright (c) nexB Inc. http://www.nexb.com/ - All rights reserved. 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | # ============================================================================ 16 | 17 | if __name__ == '__main__': # pragma: nocover 18 | from attributecode import cmd 19 | cmd.about() 20 | -------------------------------------------------------------------------------- /src/attributecode/templates/default_json.template: -------------------------------------------------------------------------------- 1 | { 2 | "ossAttribution": { 3 | "title": "Open Source Software Information", 4 | "entries": [ 5 | {% for about_object in abouts %} 6 | { 7 | "name": "{{ about_object.name.value }}"{% if about_object.version.value or about_object.license_expression.value-%},{%- endif %} 8 | {% if about_object.version.value -%} 9 | "version": "{{ about_object.version.value }}"{% if about_object.license_expressio.value-%},{%- endif %} 10 | {%- endif %} 11 | {% if about_object.license_expression.value -%} 12 | "license_expression": "{{ about_object.license_expression.value }}" 13 | {%- endif %} 14 | }{% if not loop.last -%},{%- endif %} 15 | {%- endfor %} 16 | ] 17 | } 18 | } -------------------------------------------------------------------------------- /src/attributecode/templates/list.csv: -------------------------------------------------------------------------------- 1 | Name,Version,DejaCode License,Homepage 2 | {% for about in abouts %} 3 | "{{about.name}}","{{about.version}}","{{about.license_name}}","{{about.homepage_url}}" 4 | {% endfor %} 5 | -------------------------------------------------------------------------------- /tests/testdata/test_attrib/default_template/simple_sample.csv: -------------------------------------------------------------------------------- 1 | name,version,license_expression,about_resource 2 | cryptohash-sha256,v 0.11.100.1,isc,/project/cryptohash-sha256 3 | -------------------------------------------------------------------------------- /tests/testdata/test_attrib/gen_default_template/attrib.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: httpd-2.4.3.tar.gz 2 | name: Apache HTTP Server 3 | version: 2.4.3 -------------------------------------------------------------------------------- /tests/testdata/test_attrib/gen_default_template/expected_default_attrib.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | Open Source Software Information 11 | 12 | 13 |

OPEN SOURCE SOFTWARE INFORMATION

14 |

15 |

Licenses, acknowledgments and required copyright notices for open source components:

16 |
17 | 18 |

Apache HTTP Server 2.4.3

19 | 20 |
21 |
22 | 23 |
24 |

Apache HTTP Server 2.4.3

25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 | 33 |
34 |

Common Licenses Used in This Product

35 | 36 |

End

37 | This file was generated with AboutCode Toolkit version: 6.0.0 on: 2021-08-30 10:58:38.548879 (UTC) 38 | 39 | -------------------------------------------------------------------------------- /tests/testdata/test_attrib/gen_default_template/httpd-2.4.3.tar.gz: -------------------------------------------------------------------------------- 1 | mock archive document in attrib.ABOUT -------------------------------------------------------------------------------- /tests/testdata/test_attrib/gen_license_key_name_check/LICENSES/Apache-2.0.txt: -------------------------------------------------------------------------------- 1 | This is Apache 2 | -------------------------------------------------------------------------------- /tests/testdata/test_attrib/gen_license_key_name_check/LICENSES/LGPL-3.0.txt: -------------------------------------------------------------------------------- 1 | This is LGPL 2 | -------------------------------------------------------------------------------- /tests/testdata/test_attrib/gen_license_key_name_check/custom.template: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | Open Source Software Information 10 | 11 | 12 | 13 | {% for about_object in abouts %} 14 |
15 | {% for i in range(about_object.license_file.value|length) %} 16 |

{{ about_object.license_key.value[i] | e}}

17 | {% set lic_text = about_object.license_file.value.values() | list %} 18 |
{{ lic_text[i] | e }}
19 | {% endfor %} 20 | 21 |
22 | {% endfor %} 23 | 24 |
25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/testdata/test_attrib/gen_license_key_name_check/expected/expected.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | Open Source Software Information 10 | 11 | 12 | 13 | 14 |
15 | 16 |

Apache-2.0

17 | 18 |
This is Apache
19 |         
20 | 21 |

LGPL-3.0-or-later

22 | 23 |
This is LGPL
24 |         
25 | 26 | 27 |
28 | 29 | 30 |
31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /tests/testdata/test_attrib/gen_license_key_name_check/test.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: test 3 | license_expression: Apache-2.0 OR LGPL-3.0-or-later 4 | licenses: 5 | - key: Apache-2.0 6 | name: Apache License 2.0 7 | file: LICENSES/Apache-2.0.txt 8 | - key: LGPL-3.0-or-later 9 | name: LGPL 10 | file: LICENSES/LGPL-3.0.txt -------------------------------------------------------------------------------- /tests/testdata/test_attrib/gen_simple/attrib.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: httpd-2.4.3.tar.gz 2 | name: Apache HTTP Server 3 | version: 2.4.3 -------------------------------------------------------------------------------- /tests/testdata/test_attrib/gen_simple/httpd-2.4.3.tar.gz: -------------------------------------------------------------------------------- 1 | mock archive document in attrib.ABOUT -------------------------------------------------------------------------------- /tests/testdata/test_attrib/gen_simple/test.template: -------------------------------------------------------------------------------- 1 | {% for about in abouts -%} 2 | {{ about.name.value }}: {{ about.version.value }} 3 | {% for res in about.about_resource.value -%} 4 | resource: {{ res }} 5 | {% endfor -%} 6 | {% endfor -%} -------------------------------------------------------------------------------- /tests/testdata/test_cmd/geninventory.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,version 2 | PyJWT-1.6.4-py2.py3-none-any.whl,PyJWT,1.6.4 3 | pyldap-2.4.45.tar.gz,pyldap,2.4.45 4 | xmlcatmgr-2.2_2.txz,xmlcatmgr,v 2.2_2 5 | sdocbook-xml-1.1_2.2.txz,sdocbook-xml,"v 1.1_2,2" 6 | Pygments-2.2.0-py2.py3-none-any.whl,Pygments,2.2.0 7 | ruby22-gems-2.6.4.txz,ruby22-gems,v 2.6.4 8 | xorg-macros-1.19.0.txz,xorg-macros,v 1.19.0 9 | samba42-4.2.14.txz,samba42,v 4.2.14 10 | xmlto-0.0.26_2.txz,xmlto,v 0.0.26_2 11 | xtrans-1.3.5.txz,xtrans,v 1.3.5 12 | w3m-0.5.3_4.txz,w3m,v 0.5.3_4 13 | pyaml-17.12.1-py2.py3-none-any.whl,pyaml,17.12.1 14 | siproxd-0.8.1.txz,siproxd,v 0.8.1 15 | xcb-util-0.4.0_1.1.txz,xcb-util,"v 0.4.0_1,1" 16 | requests-2.17.3-py2.py3-none-any.whl,requests,2.17.3 17 | setuptools-36.6.0-py2.py3-none-any.whl,setuptools,36.6.0 18 | ruby-2.2.5_1.1.txz,ruby,"v 2.2.5_1,1" 19 | packageurl_python-0.8.1-py2.py3-none-any.whl,packageurl-python,0.8.1 20 | certifi-2017.4.17-py2.py3-none-any.whl,certifi,2017.4.17 21 | psycopg2-2.7.5.tar.gz,psycopg2,2.7.5 22 | xorg-fonts-truetype-7.7_1.txz,xorg-fonts-truetype,v 7.7_1 23 | xerces-c3-3.1.4.txz,xerces-c3,v 3.1.4 24 | -------------------------------------------------------------------------------- /tests/testdata/test_cmd/help/about_attrib_help.txt: -------------------------------------------------------------------------------- 1 | Usage: about attrib [OPTIONS] INPUT OUTPUT 2 | 3 | Generate an attribution document at OUTPUT using JSON, CSV or XLSX or .ABOUT 4 | files at INPUT. 5 | 6 | INPUT: Path to a file (.ABOUT/.csv/.json/.xlsx), directory or .zip archive 7 | containing .ABOUT files. 8 | 9 | OUTPUT: Path where to write the attribution document. 10 | 11 | Options: 12 | --api_url URL URL to DejaCode License Library. 13 | --api_key KEY API Key for the DejaCode License Library 14 | --min-license-score INTEGER Attribute components that have license score 15 | higher than or equal to the defined --min- 16 | license-score. 17 | --scancode Indicate the input JSON file is from 18 | scancode_toolkit. 19 | --reference DIR Path to a directory with reference files where 20 | "license_file" and/or "notice_file" located. 21 | --template FILE Path to an optional custom attribution template 22 | to generate the attribution document. If not 23 | provided the default built-in template is used. 24 | --vartext = Add variable text as key=value for use in a 25 | custom attribution template. 26 | --worksheet name The worksheet name from the INPUT. (Default: the 27 | "active" worksheet) 28 | -q, --quiet Do not print error or warning messages. 29 | --verbose Show all error and warning messages. 30 | -h, --help Show this message and exit. 31 | -------------------------------------------------------------------------------- /tests/testdata/test_cmd/help/about_check_help.txt: -------------------------------------------------------------------------------- 1 | Usage: about check [OPTIONS] LOCATION 2 | 3 | Check .ABOUT file(s) at LOCATION for validity and print error messages. 4 | 5 | LOCATION: Path to an ABOUT file or a directory with ABOUT files. 6 | 7 | Options: 8 | --exclude PATTERN Exclude the processing of the specified input pattern 9 | (e.g. *tests* or test/). 10 | --license Validate the license_expression value in the input. 11 | --djc api_url api_key Validate license_expression from a DejaCode License 12 | Library API URL using the API KEY. 13 | --log FILE Path to a file to save the error messages if any. 14 | --verbose Show all error and warning messages. 15 | -h, --help Show this message and exit. 16 | -------------------------------------------------------------------------------- /tests/testdata/test_cmd/help/about_gen_help.txt: -------------------------------------------------------------------------------- 1 | Usage: about gen [OPTIONS] LOCATION OUTPUT 2 | 3 | Given a CSV/JSON/XLSX inventory, generate ABOUT files in the output location. 4 | 5 | LOCATION: Path to a JSON/CSV/XLSX inventory file. 6 | 7 | OUTPUT: Path to a directory where ABOUT files are generated. 8 | 9 | Options: 10 | --android Generate MODULE_LICENSE_XXX (XXX will be 11 | replaced by license key) and NOTICE as the 12 | same design as from Android. 13 | --fetch-license Fetch license data and text files from the 14 | ScanCode LicenseDB. 15 | --fetch-license-djc api_url api_key 16 | Fetch license data and text files from a 17 | DejaCode License Library API URL using the API 18 | KEY. 19 | --scancode Indicate the input JSON file is from 20 | scancode_toolkit. 21 | --reference DIR Path to a directory with reference license 22 | data and text files. 23 | --worksheet name The worksheet name from the INPUT. (Default: 24 | the "active" worksheet) 25 | -q, --quiet Do not print error or warning messages. 26 | --verbose Show all error and warning messages. 27 | -h, --help Show this message and exit. 28 | -------------------------------------------------------------------------------- /tests/testdata/test_cmd/help/about_gen_license_help.txt: -------------------------------------------------------------------------------- 1 | Usage: about gen-license [OPTIONS] LOCATION OUTPUT 2 | 3 | Fetch licenses (Default: ScanCode LicenseDB) in the license_expression field 4 | and save to the output location. 5 | 6 | LOCATION: Path to a JSON/CSV/XLSX/.ABOUT file(s) 7 | 8 | OUTPUT: Path to a directory where license files are saved. 9 | 10 | Options: 11 | --djc api_url api_key Fetch licenses from a DejaCode License Library. 12 | --scancode Indicate the input JSON file is from scancode_toolkit. 13 | --worksheet name The worksheet name from the INPUT. (Default: the 14 | "active" worksheet) 15 | --verbose Show all error and warning messages. 16 | -h, --help Show this message and exit. 17 | -------------------------------------------------------------------------------- /tests/testdata/test_cmd/help/about_help.txt: -------------------------------------------------------------------------------- 1 | Usage: about [OPTIONS] COMMAND [ARGS]... 2 | 3 | Generate licensing attribution and credit notices from .ABOUT files and 4 | inventories. 5 | 6 | Read, write and collect provenance and license inventories from .ABOUT files 7 | to and from JSON or CSV files. 8 | 9 | Use about --help for help on a command. 10 | 11 | Options: 12 | --version Show the version and exit. 13 | -h, --help Show this message and exit. 14 | 15 | Commands: 16 | attrib Generate an attribution document from JSON/CSV/XLSX/.ABOUT 17 | files. 18 | check Validate that the format of .ABOUT files is correct and 19 | report errors and warnings. 20 | collect-redist-src Collect redistributable sources. 21 | gen Generate .ABOUT files from an inventory as CSV/JSON/XLSX. 22 | gen-license Fetch and save all the licenses in the license_expression 23 | field to a directory. 24 | inventory Collect the inventory of .ABOUT files to a CSV/JSON/XLSX 25 | file or stdout. 26 | transform Transform a CSV/JSON/XLSX by applying renamings, filters 27 | and checks. 28 | -------------------------------------------------------------------------------- /tests/testdata/test_cmd/help/about_inventory_help.txt: -------------------------------------------------------------------------------- 1 | Usage: about inventory [OPTIONS] LOCATION OUTPUT 2 | 3 | Collect the inventory of .ABOUT files to a CSV/JSON/XLSX file. 4 | 5 | LOCATION: Path to an ABOUT file or a directory with ABOUT files. 6 | 7 | OUTPUT: Path to the CSV/JSON/XLSX inventory file to create, or using '-' to 8 | print result on screen/to stdout (Excel-formatted output cannot be used in 9 | stdout). 10 | 11 | Options: 12 | --exclude PATTERN Exclude the processing of the specified input 13 | pattern (e.g. *tests* or test/). 14 | -f, --format [json|csv|excel] Set OUTPUT inventory file format. [default: 15 | csv] 16 | -q, --quiet Do not print error or warning messages. 17 | --verbose Show all error and warning messages. 18 | -h, --help Show this message and exit. 19 | -------------------------------------------------------------------------------- /tests/testdata/test_cmd/help/about_transform_help.txt: -------------------------------------------------------------------------------- 1 | Usage: about transform [OPTIONS] LOCATION OUTPUT 2 | 3 | Transform the CSV/JSON/XLSX file at LOCATION by applying renamings, filters 4 | and checks and then write a new CSV/JSON/XLSX to OUTPUT. 5 | 6 | LOCATION: Path to a CSV/JSON/XLSX file. 7 | 8 | OUTPUT: Path to CSV/JSON/XLSX inventory file to create. 9 | 10 | Options: 11 | -c, --configuration FILE Path to an optional YAML configuration file. See 12 | --help-format for format help. 13 | --worksheet name The worksheet name from the INPUT. (Default: the 14 | "active" worksheet) 15 | --help-format Show configuration file format help and exit. 16 | -q, --quiet Do not print error or warning messages. 17 | --verbose Show all error and warning messages. 18 | -h, --help Show this message and exit. 19 | -------------------------------------------------------------------------------- /tests/testdata/test_cmd/repository-mini/apache-2.0.LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | -------------------------------------------------------------------------------- /tests/testdata/test_cmd/repository-mini/appdirs-1.4.3-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_cmd/repository-mini/appdirs-1.4.3-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_cmd/repository-mini/appdirs.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: appdirs-1.4.3-py2.py3-none-any.whl 2 | name: appdirs 3 | version: 1.4.3 4 | 5 | download_url: https://pypi.python.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl#md5=9ed4b51c9611775c3078b3831072e153 6 | 7 | homepage_url: https://pypi.python.org/pypi/appdirs 8 | copyright: Copyright (c) 2010 ActiveState Software Inc. 9 | 10 | license_expression: mit 11 | license_file: appdirs.LICENSE -------------------------------------------------------------------------------- /tests/testdata/test_cmd/repository-mini/appdirs.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 ActiveState Software Inc. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a 4 | copy of this softwa -------------------------------------------------------------------------------- /tests/testdata/test_cmd/repository-mini/mit.LICENSE: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any person obtaining a 2 | -------------------------------------------------------------------------------- /tests/testdata/test_cmd/repository-mini/xtrans-1.3.5.txz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_cmd/repository-mini/xtrans-1.3.5.txz -------------------------------------------------------------------------------- /tests/testdata/test_cmd/repository-mini/xtrans-1.3.5.txz.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: xtrans-1.3.5.txz 2 | name: xtrans 3 | about_resource_path: xtrans-1.3.5.txz 4 | version: v 1.3.5 5 | license_expression: mit 6 | license_name: MIT License 7 | license_file: mit.LICENSE 8 | license_url: https://enterprise.dejacode.com/urn?urn=urn:dje:license:mit 9 | confirmed_license: MIT License 10 | attribution_type: 3 11 | resource: repository/packages/xtrans-1.3.5.txz 12 | audit_ref_nbr: INFO-23470 13 | -------------------------------------------------------------------------------- /tests/testdata/test_cmd/transform.csv: -------------------------------------------------------------------------------- 1 | "About_file_path","about_resource","name","version","download_url","description","homepage_url","notes","license_expression","license_key","license_name","license_file","license_url","copyright","notice_file","notice_url","redistribute","attribute","track_changes","modified","internal_use_only","changelog_file","owner","owner_url","contact","author","author_file","vcs_tool","vcs_repository","vcs_path","vcs_tag","vcs_branch","vcs_revision","checksum_md5","checksum_sha1","checksum_sha256","spec_version" 2 | "/about/about.ABOUT",0,"AboutCode","0.11.0",,"AboutCode is a tool to process ABOUT files. An ABOUT file is a file.","http://dejacode.org",,"apache-2.0","apache-2.0",,"apache-2.0.LICENSE",,"Copyright (c) 2013-2014 nexB Inc.","NOTICE",,,,,,,,"nexB Inc.",,,"Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez",,"git","https://github.com/dejacode/about-code-tool.git",,,,,,,, 3 | "/about/about.ABOUT2",0,"AboutCode","0.11.0",,"AboutCode is a tool to process ABOUT files. An ABOUT file is a file.","http://dejacode.org",,"apache-2.0","apache-2.0",,"apache-2.0.LICENSE",,"Copyright (c) 2013-2014 nexB Inc.","NOTICE",,,,,,,,"nexB Inc.",,,"Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez",,"git","https://github.com/dejacode/about-code-tool.git",,,,,,,, 4 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/about.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: ABOUT tool 3 | version: 0.8.1 4 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/dup_keys.csv: -------------------------------------------------------------------------------- 1 | about_file,about_resource,copyright,name,version,copyright 2 | about.ABOUT,.,nexB,ABOUT tool,0.8.1,someone -------------------------------------------------------------------------------- /tests/testdata/test_gen/dup_keys_with_diff_case.csv: -------------------------------------------------------------------------------- 1 | about_file,about_resource,copyright,name,version,Copyright 2 | about.ABOUT,.,nexB,ABOUT tool,0.8.1,someone -------------------------------------------------------------------------------- /tests/testdata/test_gen/inv.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,version,download_url,description,homepage_url,notes,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_changes,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,spec_version,custom1 2 | /inv/,AboutCode,0.11.0,,"multi 3 | line",,,,,,,,,,,,,,,,,,,,,,,,,,,"multi 4 | line" 5 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inv2.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,version 2 | /inv/,AboutCode,0.11.0 3 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inv3.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,version 2 | inv/test.tar.gz,AboutCode,0.11.0 3 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inv4.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,version,description,Confirmed Copyright,Resource,test 2 | inv/,AboutCode,0.11.0,"multi 3 | line","Copyright (c) nexB, Inc.",this.ABOUT,This is a test 4 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inv5.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,version,download_url,description,homepage_url,notes,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_changes,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,spec_version,custom1 2 | /inv/,AboutCode,0.11.0,,,,,,this.LICENSE,,,,,,,,,,,,,,,,,,,,,,,"multi 3 | line" 4 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inv6.csv: -------------------------------------------------------------------------------- 1 | about_file_path,about_resource,name,version,download_url,description,homepage_url,notes,license_name,license_file,license_url,copyright,notice_file,notice_url,redistribute,attribute,track_change,modified,changelog_file,owner,owner_url,contact,author,vcs_tool,vcs_repository,vcs_path,vcs_tag,vcs_branch,vcs_revision,checksum_md5,checksum_sha1,spec_version 2 | inv/this.ABOUT,.,AboutCode,0.11.0,,,,,,,,,,,Yes,Y,,N,,,,,,,,,,,,,, -------------------------------------------------------------------------------- /tests/testdata/test_gen/inv7.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,license_expression,copyright,declared_license_expression,other_license_expression 2 | /test.c,test.c,mit,robot,isc,public-domain 3 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inv_no_about_resource.csv: -------------------------------------------------------------------------------- 1 | name,version,license_expression 2 | AboutCode,0.11.0,apache-2.0 3 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/Jinja2-2.7.3-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/Jinja2-2.7.3-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/Jinja2.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: Jinja2-2.7.3-py2-none-any.whl 2 | version: 2.7.3 3 | download_url: https://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.7.3.tar.gz#md5=b9dffd2f3b43d673802fe857c8445b1a 4 | 5 | name: Jinja2 6 | homepage_url: http://jinja.pocoo.org/ 7 | 8 | license_expression: bsd-new 9 | license_file: Jinja2.LICENSE 10 | 11 | vcs_tool: git 12 | vcs_repository: https://github.com/mitsuhiko/jinja2.git 13 | 14 | owner: Armin Ronacher 15 | copyright: Copyright (c) 2009 by the Jinja Team 16 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/Jinja2.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 by the Jinja Team, see AUTHORS for more details. 2 | 3 | Some rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are 7 | met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | 12 | * Redistributions in binary form must reproduce the above 13 | copyright notice, this list of conditions and the following 14 | disclaimer in the documentation and/or other materials provided 15 | with the distribution. 16 | 17 | * The names of the contributors may not be used to endorse or 18 | promote products derived from this software without specific 19 | prior written permission. 20 | 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/MarkupSafe-0.23-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/MarkupSafe-0.23-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/MarkupSafe.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: MarkupSafe-0.23-py2-none-any.whl 2 | version: 0.23 3 | download_url: https://pypi.python.org/packages/source/m/MarkupSafe/MarkupSafe-0.23.tar.gz 4 | 5 | name: MarkupSafe 6 | homepage_url: https://github.com/mitsuhiko/markupsafe 7 | 8 | license_expression: bsd-new 9 | 10 | vcs_tool: git 11 | vcs_repository: https://github.com/mitsuhiko/jinja2.git 12 | license_file: MarkupSafe.LICENSE 13 | 14 | copyright: Copyright (c) 2010 by Armin Ronacher and contributors. 15 | owner: Armin Ronacher 16 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/MarkupSafe.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 by Armin Ronacher and contributors. See AUTHORS 2 | for more details. 3 | 4 | Some rights reserved. 5 | 6 | Redistribution and use in source and binary forms of the software as well 7 | as documentation, with or without modification, are permitted provided 8 | that the following conditions are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above 14 | copyright notice, this list of conditions and the following 15 | disclaimer in the documentation and/or other materials provided 16 | with the distribution. 17 | 18 | * The names of the contributors may not be used to endorse or 19 | promote products derived from this software without specific 20 | prior written permission. 21 | 22 | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND 23 | CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT 24 | NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 26 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 27 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 28 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 29 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 30 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 31 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 | SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 33 | DAMAGE. 34 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2014 nexB Inc. http://www.nexb.com/ - All rights reserved. 2 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | owner: nexB Inc. 7 | author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez 8 | 9 | homepage_url: http://dejacode.org 10 | 11 | vcs_tool: git 12 | vcs_repository: https://github.com/dejacode/about-code-tool.git 13 | 14 | description: | 15 | AboutCode is a tool 16 | to process ABOUT files. 17 | An ABOUT file is a file. 18 | 19 | license: apache-2.0 20 | license_file: apache-2.0.LICENSE 21 | copyright: Copyright (c) 2013-2014 nexB Inc. 22 | 23 | notice_file: NOTICE -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/certifi-14.05.14-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/certifi-14.05.14-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/certifi.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: certifi-14.05.14-py2.py3-none-any.whl 2 | version: 14.05.14 3 | description: Python package for providing Mozilla's CA Bundle. 4 | 5 | owner: Kenneth Reitz 6 | contact: me@kennethreitz.com 7 | homepage_url: http://python-requests.org 8 | name: certifi 9 | 10 | license_expression: mpl-2.0 -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/certifi.LICENSE: -------------------------------------------------------------------------------- 1 | This packge contains a modified version of ca-bundle.crt: 2 | 3 | ca-bundle.crt -- Bundle of CA Root Certificates 4 | 5 | Certificate data from Mozilla as of: Thu Nov 3 19:04:19 2011# 6 | This is a bundle of X.509 certificates of public Certificate Authorities 7 | (CA). These were automatically extracted from Mozilla's root certificates 8 | file (certdata.txt). This file can be found in the mozilla source tree: 9 | http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1# 10 | It contains the certificates in PEM format and therefore 11 | can be directly used with curl / libcurl / php_curl, or with 12 | an Apache+mod_ssl webserver for SSL client authentication. 13 | Just configure this file as the SSLCACertificateFile.# 14 | 15 | ***** BEGIN LICENSE BLOCK ***** 16 | This Source Code Form is subject to the terms of the Mozilla Public License, 17 | v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain 18 | one at http://mozilla.org/MPL/2.0/. 19 | 20 | ***** END LICENSE BLOCK ***** 21 | @(#) $RCSfile: certdata.txt,v $ $Revision: 1.80 $ $Date: 2011/11/03 15:11:58 $ 22 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/click-3.2-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/click-3.2-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/click.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: click-3.2-py2.py3-none-any.whl 2 | version: 3.2 3 | download_url: https://pypi.python.org/packages/2.7/c/click/click-3.2-py2.py3-none-any.whl#md5=7d0bf0ca4e8ce6056e35cc8135d21abd 4 | name: click 5 | owner: Armin Ronacher 6 | contact: armin.ronacher@active-4.com 7 | homepage_url: http://click.pocoo.org/ 8 | vcs_tool: git 9 | vcs_repository: https://github.com/mitsuhiko/click.git 10 | description: | 11 | A simple wrapper around optparse for 12 | powerful command line utilities. 13 | license_expression: bsd-new 14 | license_file: click.LICENSE 15 | notes: | 16 | Click uses parts of optparse written by Gregory P. Ward and maintained 17 | by the Python software foundation. This is limited to code in the parser.py 18 | module and is under the same license as clikc itself. 19 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/click.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 by Armin Ronacher. 2 | 3 | Click uses parts of optparse written by Gregory P. Ward and maintained by the 4 | Python software foundation. This is limited to code in the parser.py 5 | module: 6 | 7 | Copyright (c) 2001-2006 Gregory P. Ward. All rights reserved. 8 | Copyright (c) 2002-2006 Python Software Foundation. All rights reserved. 9 | 10 | Some rights reserved. 11 | 12 | Redistribution and use in source and binary forms, with or without 13 | modification, are permitted provided that the following conditions are 14 | met: 15 | 16 | * Redistributions of source code must retain the above copyright 17 | notice, this list of conditions and the following disclaimer. 18 | 19 | * Redistributions in binary form must reproduce the above 20 | copyright notice, this list of conditions and the following 21 | disclaimer in the documentation and/or other materials provided 22 | with the distribution. 23 | 24 | * The names of the contributors may not be used to endorse or 25 | promote products derived from this software without specific 26 | prior written permission. 27 | 28 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 29 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 30 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 31 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 32 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 33 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 34 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 35 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 36 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 37 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 38 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 39 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/colorama-0.3.1-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/colorama-0.3.1-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/colorama.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: colorama-0.3.1-py2-none-any.whl 2 | name: colorama 3 | version: 0.3.1 4 | description: Cross-platform colored terminal text. 5 | homepage_url: https://pypi.python.org/pypi/colorama 6 | owner: Jonathan Hartley 7 | contact: tartley@tartley.com 8 | license_expression: bsd-new 9 | keywords: color colour terminal text ansi windows crossplatform xplatform 10 | license_file: colorama.LICENSE 11 | download_url: https://pypi.python.org/packages/source/c/colorama/colorama-0.3.1.tar.gz#md5=95ce8bf32f5c25adea14b809db3509cb -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/colorama.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Jonathan Hartley 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the copyright holders, nor those of its contributors 15 | may be used to endorse or promote products derived from this software without 16 | specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | 29 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/pip-1.5.6-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/pip-1.5.6-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/pip.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: pip-1.5.6-py2.py3-none-any.whl 2 | version: 1.5.6 3 | download_url: https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz#md5=01026f87978932060cc86c1dc527903e 4 | 5 | name: pip 6 | owner: The pip developers 7 | contact: python-virtualenv@groups.google.com 8 | homepage_url: http://www.pip-installer.org 9 | 10 | author_file: pip.AUTHORS 11 | license_expression: mit AND lgpl-2.1 12 | license_file: pip.LICENSE 13 | 14 | vcs_tool: git 15 | vcs_repository: https://github.com/pypa/pip.git -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/pip.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008-2014 The pip developers (see AUTHORS.txt file) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | 23 | License for Bundle of CA Root Certificates (pip/cacert.pem) 24 | =========================================================== 25 | 26 | This library is free software; you can redistribute it and/or 27 | modify it under the terms of the GNU Lesser General Public 28 | License as published by the Free Software Foundation; either 29 | version 2.1 of the License, or (at your option) any later version. 30 | 31 | This library is distributed in the hope that it will be useful, 32 | but WITHOUT ANY WARRANTY; without even the implied warranty of 33 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 34 | Lesser General Public License for more details. 35 | 36 | You should have received a copy of the GNU Lesser General Public 37 | License along with this library; if not, write to the Free Software 38 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 39 | 02110-1301 40 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/py-1.4.23-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/py-1.4.23-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: py-1.4.23-py2-none-any.whl 2 | version: 1.4.23 3 | download_url: https://pypi.python.org/packages/source/p/py/py-1.4.23.tar.gz#md5=b40aea711eeb8adba0c44f0b750a3205 4 | 5 | name: py 6 | description: library with cross-python path, ini-parsing, io, code, log facilities 7 | homepage_url: http://pylib.readthedocs.org/ 8 | owner: holger krekel, Ronny Pfannschmidt, Benjamin Peterson and others 9 | contact: pytest-dev@python.org 10 | license_expression: mit 11 | license_file: py.LICENSE 12 | copyright: Holger Krekel and others, 2004-2014 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/py.LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Permission is hereby granted, free of charge, to any person obtaining a copy 3 | of this software and associated documentation files (the "Software"), to deal 4 | in the Software without restriction, including without limitation the rights 5 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 6 | copies of the Software, and to permit persons to whom the Software is 7 | furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in all 10 | copies or substantial portions of the Software. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 18 | SOFTWARE. 19 | 20 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/pytest-2.6.1-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/pytest-2.6.1-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/pytest.ABOUT: -------------------------------------------------------------------------------- 1 | download_url: https://pypi.python.org/packages/source/p/pytest/pytest-2.6.1.tar.gz#md5=bb353f6cf6d9ff83ff7f2dfbeaca47a3 2 | about_resource: pytest-2.6.1-py2.py3-none-any.whl 3 | version: 2.6.1 4 | 5 | name: pytest 6 | description: pytest - simple powerful testing with Python 7 | homepage_url: http://pytest.org 8 | owner: Holger Krekel, Benjamin Peterson, Ronny Pfannschmidt, Floris Bruynooghe and others 9 | contact: holger at merlinux.eu 10 | license_expression: mit 11 | license_file: pytest.LICENSE 12 | copyright: Copyright Holger Krekel and others, 2004-2014 13 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/pytest.LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Permission is hereby granted, free of charge, to any person obtaining a copy 3 | of this software and associated documentation files (the "Software"), to deal 4 | in the Software without restriction, including without limitation the rights 5 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 6 | copies of the Software, and to permit persons to whom the Software is 7 | furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in all 10 | copies or substantial portions of the Software. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 18 | SOFTWARE. 19 | 20 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/schematics-0.9_5-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/schematics-0.9_5-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/schematics.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: schematics-0.9_5-py2-none-any.whl 2 | name: schematics 3 | version: 0.9-5 4 | 5 | download_url: https://pypi.python.org/packages/source/s/schematics/schematics-0.9-5.tar.gz#md5=82ba0d67aa2600421877edcd9e7500f7 6 | 7 | homepage_url: https://github.com/schematics/schematics 8 | owner: J2 Labs LLC. 9 | copyright: Copyright (c) 2013, J2 Labs LLC. 10 | 11 | license_expression: bsd-new 12 | license_file: schematics.LICENSE -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/schematics.LICENSE: -------------------------------------------------------------------------------- 1 | (The BSD License) 2 | 3 | Copyright (c) 2013, J2 Labs LLC. 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without modification, 7 | are permitted provided that the following conditions are met: 8 | 9 | 10 | 1. Redistributions of source code must retain the above copyright notice, 11 | this list of conditions and the following disclaimer. 12 | 13 | 2. Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in the 15 | documentation and/or other materials provided with the distribution. 16 | 17 | 3. Neither the name of Schematics nor the names of its contributors may be 18 | used to endorse or promote products derived from this software without 19 | specific prior written permission. 20 | 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 25 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 28 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/setuptools-5.6-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/setuptools-5.6-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/setuptools.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: setuptools-5.6-py2.py3-none-any.whl 2 | name: setuptools 3 | version: 5.6 4 | 5 | download_url: https://pypi.python.org/packages/3.4/s/setuptools/setuptools-5.6-py2.py3-none-any.whl#md5=4503e42d67edc51e293ba9be4af799a5 6 | 7 | homepage_url: https://pypi.python.org/pypi/setuptools 8 | owner: Python Packaging Authority 9 | 10 | license_expression: psf 11 | license_file: PSF.LICENSE -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/unicodecsv-0.9.4-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/unicodecsv-0.9.4-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/unicodecsv.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: unicodecsv-0.9.4-py2-none-any.whl 2 | version: 0.9.4 3 | download_url: https://pypi.python.org/packages/source/u/unicodecsv/unicodecsv-0.9.4.tar.gz#md5=344fa55f299ba198cb73db48546002fd 4 | 5 | name: unicodecsv 6 | homepage_url: https://github.com/jdunck/python-unicodecsv 7 | owner: Jeremy Dunck 8 | 9 | license_expression: bsd-new 10 | license_file: unicodecsv.LICENSE 11 | 12 | vcs_tool: git 13 | vcs_repository: https://github.com/jdunck/python-unicodecsv.git 14 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/unicodecsv.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2010 Jeremy Dunck. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without modification, are 4 | permitted provided that the following conditions are met: 5 | 6 | 1. Redistributions of source code must retain the above copyright notice, this list of 7 | conditions and the following disclaimer. 8 | 9 | 2. Redistributions in binary form must reproduce the above copyright notice, this list 10 | of conditions and the following disclaimer in the documentation and/or other materials 11 | provided with the distribution. 12 | 13 | THIS SOFTWARE IS PROVIDED BY JEREMY DUNCK ``AS IS'' AND ANY EXPRESS OR IMPLIED 14 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 15 | FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JEREMY DUNCK OR 16 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 17 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 18 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 19 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 20 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 21 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 | 23 | The views and conclusions contained in the software and documentation are those of the 24 | authors and should not be interpreted as representing official policies, either expressed 25 | or implied, of Jeremy Dunck. 26 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/wheel-0.24.0-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/wheel-0.24.0-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/wheel.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: wheel-0.24.0-py2.py3-none-any.whl 2 | version: 0.24.0 3 | download_url: https://pypi.python.org/packages/py2.py3/w/wheel/wheel-0.24.0-py2.py3-none-any.whl#md5=4c24453cda2177fd42c5d62d6434679a 4 | 5 | name: wheel 6 | homepage_url: https://bitbucket.org/pypa/wheel 7 | vcs_tool: hg 8 | vcs_repository: https://bitbucket.org/pypa/wheel 9 | 10 | copyright: | 11 | copyright (c) 2012-2014 Daniel Holth and 12 | contributors. 13 | license_expression: mit 14 | license_file: wheel.LICENSE 15 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/wheel.LICENSE: -------------------------------------------------------------------------------- 1 | "wheel" copyright (c) 2012-2014 Daniel Holth and 2 | contributors. 3 | 4 | The MIT License 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a 7 | copy of this software and associated documentation files (the "Software"), 8 | to deal in the Software without restriction, including without limitation 9 | the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 | and/or sell copies of the Software, and to permit persons to whom the 11 | Software is furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included 14 | in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/wincertstore-0.2-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/inventory/complex/about/wincertstore-0.2-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about/wincertstore.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: wincertstore-0.2-py2.py3-none-any.whl 2 | version: 0.2 3 | download_url: https://pypi.python.org/packages/source/w/wincertstore/wincertstore-0.2.zip 4 | 5 | name: wincertstore 6 | 7 | license_expression: psf 8 | license_file: wincertstore.LICENSE 9 | 10 | contact: christian@python.org 11 | owner: Christian Heimes 12 | homepage_url: https://bitbucket.org/tiran/wincertstore 13 | description: Python module to extract CA and CRL certs from Windows' cert store (ctypes based). 14 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/inventory/complex/about_file_path_dir_endswith_space.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,version 2 | /about /,AboutCode,0.11.0 3 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/lic_issue_450/custom.txt: -------------------------------------------------------------------------------- 1 | This is a custom license. 2 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/lic_issue_450/custom_and_valid_lic_key_with_file.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,license_expression,license_file 2 | test.c,test.c,mit AND custom,custom.txt 3 | test.h,test.h,custom AND mit,custom.txt 4 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/lic_key_custom_lic_file/lic_key_with_custom_lic_file.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,license_expression,license_file 2 | test.c,test.c,custom,custom.txt 3 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/lic_key_custom_lic_file/no_lic_key_with_custom_lic_file.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,license_expression,license_file 2 | test.c,test.c,,custom.txt 3 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/load/simple_sample.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/load/simple_sample.xlsx -------------------------------------------------------------------------------- /tests/testdata/test_gen/multi_lic_issue_443/test.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,version,license_key,license_file 2 | 3rdParty/test,test,1.5,"License1 3 | License2 4 | License3","LIC1.LICENSE 5 | LIC2.LICENSE 6 | LIC3.LICENSE" 7 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/multi_lic_issue_444/test1.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,license_key,license_file 2 | 3rdParty/test.c,test.c,License1,"LIC1.LICENSE, LIC2.LICENSE" 3 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/parser_tests/.ABOUT: -------------------------------------------------------------------------------- 1 | name: Apache HTTP Server 2 | version: 2.4.3 -------------------------------------------------------------------------------- /tests/testdata/test_gen/parser_tests/about_resource.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_gen/parser_tests/about_resource.c -------------------------------------------------------------------------------- /tests/testdata/test_gen/parser_tests/about_resource_field.ABOUT: -------------------------------------------------------------------------------- 1 | name: Apache HTTP Server 2 | about_resource: about_resource.c 3 | -------------------------------------------------------------------------------- /tests/testdata/test_gen/parser_tests/about_resource_field_present.ABOUT: -------------------------------------------------------------------------------- 1 | name: Apache HTTP Server 2 | version: 2.4.3 3 | date: 2012-08-21 4 | license_spdx: Apache-2.0 5 | license_file: httpd.LICENSE 6 | copyright: Copyright 2012 The Apache Software Foundation. 7 | notice_file: httpd.NOTICE 8 | about_resource: about_resource.c 9 | license_expression: apache-2.0 10 | license_name: Apache License 2.0 -------------------------------------------------------------------------------- /tests/testdata/test_gen/parser_tests/missing_about_ref.ABOUT: -------------------------------------------------------------------------------- 1 | name: Apache HTTP Server 2 | version: 2.4.3 3 | about_resource: about_file_missing.c -------------------------------------------------------------------------------- /tests/testdata/test_gen/parser_tests/upper_field_names.ABOUT: -------------------------------------------------------------------------------- 1 | name: Apache HTTP Server 2 | this is a continuation 3 | homepage_URL: http://httpd.apache.org 4 | download_url: http://archive.apache.org/dist/httpd/httpd-2.4.3.tar.gz 5 | version: 2.4.3 6 | date: 2012-08-21 7 | license_spdx: Apache-2.0 8 | license_text_file: httpd.LICENSE 9 | copyright: Copyright 2012 The Apache Software Foundation. 10 | notice_file: httpd.NOTICE 11 | about_resource: about_file_ref.c -------------------------------------------------------------------------------- /tests/testdata/test_gen/this.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: AboutCode 3 | version: 0.11.0 4 | custom1: multi 5 | line 6 | -------------------------------------------------------------------------------- /tests/testdata/test_model/android/expected_NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) xyz 2 | 3 | This component is released to the public domain by the author. -------------------------------------------------------------------------------- /tests/testdata/test_model/android/multi_license.c.ABOUT: -------------------------------------------------------------------------------- 1 | # Generated with AboutCode Toolkit Version 4.0.1 2 | 3 | about_resource: multi_license.c 4 | name: multi_license.c 5 | license_expression: bsd-new OR bsd-simplified 6 | copyright: | 7 | Copyright (c) xyz 8 | Copyright (c) Blah blah BlAh 9 | licenses: 10 | - key: bsd-new 11 | name: BSD-3-Clause 12 | file: bsd-new.LICENSE 13 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:bsd-new 14 | - key: bsd-simplified 15 | name: BSD-2-Clause 16 | file: bsd-simplified.LICENSE 17 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:bsd-simplified 18 | -------------------------------------------------------------------------------- /tests/testdata/test_model/android/public-domain.LICENSE: -------------------------------------------------------------------------------- 1 | This component is released to the public domain by the author. -------------------------------------------------------------------------------- /tests/testdata/test_model/android/single_license.c.ABOUT: -------------------------------------------------------------------------------- 1 | # Generated with AboutCode Toolkit Version 4.0.1 2 | 3 | about_resource: single_license.c 4 | name: single_license.c 5 | license_expression: public-domain 6 | copyright: Copyright (c) xyz 7 | licenses: 8 | - key: public-domain 9 | name: Public Domain 10 | file: public-domain.LICENSE 11 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:public-domain 12 | -------------------------------------------------------------------------------- /tests/testdata/test_model/base_dir/license.LICENSE: -------------------------------------------------------------------------------- 1 | some license text -------------------------------------------------------------------------------- /tests/testdata/test_model/collect_inventory_errors/non-supported_date_format.ABOUT: -------------------------------------------------------------------------------- 1 | name: distribute 2 | version: 1.1 3 | about_resource: distribute_setup.py 4 | date: 01/08/2013 -------------------------------------------------------------------------------- /tests/testdata/test_model/collect_inventory_errors/supported_date_format.ABOUT: -------------------------------------------------------------------------------- 1 | name: date_test 2 | version: 1.1 3 | about_resource: date_test.py 4 | date: 2013-01-08 5 | -------------------------------------------------------------------------------- /tests/testdata/test_model/crlf/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: pytest 3 | description: | 4 | first line 5 | second line 6 | third line 7 | copyright: copyright 8 | 9 | -------------------------------------------------------------------------------- /tests/testdata/test_model/crlf/expected.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,description,copyright 2 | /crlf/,pytest,"first line 3 | second line 4 | third line",copyright 5 | -------------------------------------------------------------------------------- /tests/testdata/test_model/custom_fields/custom_fields.about: -------------------------------------------------------------------------------- 1 | name: optional 2 | about_resource: . 3 | 4 | single_line: README STUFF 5 | 6 | multi_line: | 7 | line1 8 | line2 9 | 10 | other: sasasas 11 | 12 | empty : 13 | -------------------------------------------------------------------------------- /tests/testdata/test_model/dumps/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2014 nexB Inc. http://www.nexb.com/ - All rights reserved. 2 | -------------------------------------------------------------------------------- /tests/testdata/test_model/dumps/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | owner: nexB Inc. 7 | author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez 8 | 9 | homepage_url: http://dejacode.org 10 | 11 | vcs_tool: git 12 | vcs_repository: https://github.com/dejacode/about-code-tool.git 13 | 14 | description: | 15 | AboutCode is a tool 16 | to process ABOUT files. 17 | An ABOUT file is a file. 18 | 19 | license_expression: apache-2.0 20 | license_key: apache-2.0 21 | license_name: Apache 2.0 22 | license_file: apache-2.0.LICENSE 23 | copyright: Copyright (c) 2013-2014 nexB Inc. 24 | 25 | notice_file: NOTICE -------------------------------------------------------------------------------- /tests/testdata/test_model/dumps/apache-2.0.LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/equal/complete/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2014 nexB Inc. 2 | http://www.nexb.com/ - All rights reserved. 3 | -------------------------------------------------------------------------------- /tests/testdata/test_model/equal/complete/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | owner: nexB Inc. 7 | author: | 8 | Jillian Daguil, 9 | Chin Yeung Li, 10 | Philippe Ombredanne, 11 | Thomas Druez 12 | 13 | homepage_url: http://dejacode.org 14 | 15 | vcs_tool: git 16 | vcs_repository: https://github.com/dejacode/about-code-tool.git 17 | 18 | description: AboutCode is a tool to process ABOUT files. An ABOUT file is a file. 19 | 20 | license: | 21 | public-domain 22 | apache-2.0 23 | license_file: apache-2.0.LICENSE 24 | copyright: Copyright (c) 2013-2014 nexB Inc. 25 | 26 | notice_file: NOTICE 27 | attribute: y -------------------------------------------------------------------------------- /tests/testdata/test_model/equal/complete/apache-2.0.LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, 3 | January 2004 4 | http://www.apache.org/licenses/ 5 | -------------------------------------------------------------------------------- /tests/testdata/test_model/equal/complete2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2014 nexB Inc. 2 | 3 | http://www.nexb.com/ - All rights reserved. 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/equal/complete2/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | owner: nexB Inc. 7 | author: | 8 | Jillian Daguil, 9 | Chin Yeung Li, 10 | Philippe Ombredanne, 11 | Thomas Druez 12 | 13 | homepage_url: http://dejacode.org 14 | 15 | vcs_tool: git 16 | vcs_repository: https://github.com/dejacode/about-code-tool.git 17 | 18 | description: | 19 | AboutCode is a tool to process ABOUT files. 20 | An ABOUT file is a file. 21 | 22 | license: | 23 | apache-2.0 24 | public-domain 25 | license_file: apache-2.0.LICENSE 26 | copyright: Copyright (c) 2013-2014 nexB Inc. 27 | 28 | notice_file: NOTICE 29 | attribute: Yes -------------------------------------------------------------------------------- /tests/testdata/test_model/equal/complete2/apache-2.0.LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/expected.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,version 2 | /test_model/,AboutCode,0.11.0 3 | -------------------------------------------------------------------------------- /tests/testdata/test_model/expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "about_resource": "/test_model/", 4 | "name": "AboutCode", 5 | "version": "0.11.0" 6 | } 7 | ] -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/basic/about/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2014 nexB Inc. http://www.nexb.com/ - All rights reserved. 2 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/basic/about/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | owner: nexB Inc. 7 | author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez 8 | 9 | homepage_url: http://dejacode.org 10 | 11 | vcs_tool: git 12 | vcs_repository: https://github.com/dejacode/about-code-tool.git 13 | 14 | description: AboutCode is a tool 15 | to process ABOUT files. 16 | An ABOUT file is a file. 17 | 18 | license_key: apache-2.0 19 | license_expression: apache-2.0 20 | license_file: apache-2.0.LICENSE 21 | copyright: Copyright (c) 2013-2014 nexB Inc. 22 | 23 | notice_file: NOTICE -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/basic/about/apache-2.0.LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/basic/expected.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,version,description,homepage_url,license_expression,license_key,license_file,copyright,notice_file,owner,author,vcs_tool,vcs_repository 2 | /about/,AboutCode,0.11.0,AboutCode is a tool to process ABOUT files. An ABOUT file is a file.,http://dejacode.org,apache-2.0,apache-2.0,apache-2.0.LICENSE,Copyright (c) 2013-2014 nexB Inc.,NOTICE,nexB Inc.,"Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez",git,https://github.com/dejacode/about-code-tool.git 3 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/basic_with_about_resource_path/about/about_with_about_resource_path.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: apache-2.0.LICENSE 2 | name: Apache License 2.0 3 | 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/basic_with_about_resource_path/about/apache-2.0.LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/basic_with_about_resource_path/expected.csv: -------------------------------------------------------------------------------- 1 | about_resource,name 2 | /about/apache-2.0.LICENSE,Apache License 2.0 3 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complete/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2014 nexB Inc. http://www.nexb.com/ - All rights reserved. 2 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complete/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | owner: nexB Inc. 7 | author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez 8 | 9 | homepage_url: http://dejacode.org 10 | 11 | vcs_tool: git 12 | vcs_repository: https://github.com/dejacode/about-code-tool.git 13 | 14 | description: | 15 | AboutCode is a tool 16 | to process ABOUT files. 17 | An ABOUT file is a file. 18 | 19 | license_expression: apache-2.0 20 | license_key: apache-2.0 21 | license_file: apache-2.0.LICENSE 22 | copyright: Copyright (c) 2013-2014 nexB Inc. 23 | 24 | notice_file: NOTICE -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complete/apache-2.0.LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/Jinja2-2.7.3-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/Jinja2-2.7.3-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/Jinja2.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: Jinja2-2.7.3-py2-none-any.whl 2 | version: 2.7.3 3 | download_url: https://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.7.3.tar.gz#md5=b9dffd2f3b43d673802fe857c8445b1a 4 | 5 | name: Jinja2 6 | homepage_url: http://jinja.pocoo.org/ 7 | 8 | license_expression: bsd-new 9 | license_file: Jinja2.LICENSE 10 | 11 | vcs_tool: git 12 | vcs_repository: https://github.com/mitsuhiko/jinja2.git 13 | 14 | owner: Armin Ronacher 15 | copyright: Copyright (c) 2009 by the Jinja Team 16 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/Jinja2.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 by the Jinja Team, see AUTHORS for more details. 2 | 3 | Some rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are 7 | met: 8 | 9 | * Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | 12 | * Redistributions in binary form must reproduce the above 13 | copyright notice, this list of conditions and the following 14 | disclaimer in the documentation and/or other materials provided 15 | with the distribution. 16 | 17 | * The names of the contributors may not be used to endorse or 18 | promote products derived from this software without specific 19 | prior written permission. 20 | 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/MarkupSafe-0.23-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/MarkupSafe-0.23-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/MarkupSafe.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: MarkupSafe-0.23-py2-none-any.whl 2 | version: 0.23 3 | download_url: https://pypi.python.org/packages/source/m/MarkupSafe/MarkupSafe-0.23.tar.gz 4 | 5 | name: MarkupSafe 6 | homepage_url: https://github.com/mitsuhiko/markupsafe 7 | 8 | license_expression: bsd-new 9 | 10 | vcs_tool: git 11 | vcs_repository: https://github.com/mitsuhiko/jinja2.git 12 | license_file: MarkupSafe.LICENSE 13 | 14 | copyright: Copyright (c) 2010 by Armin Ronacher and contributors. 15 | owner: Armin Ronacher 16 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/MarkupSafe.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 by Armin Ronacher and contributors. See AUTHORS 2 | for more details. 3 | 4 | Some rights reserved. 5 | 6 | Redistribution and use in source and binary forms of the software as well 7 | as documentation, with or without modification, are permitted provided 8 | that the following conditions are met: 9 | 10 | * Redistributions of source code must retain the above copyright 11 | notice, this list of conditions and the following disclaimer. 12 | 13 | * Redistributions in binary form must reproduce the above 14 | copyright notice, this list of conditions and the following 15 | disclaimer in the documentation and/or other materials provided 16 | with the distribution. 17 | 18 | * The names of the contributors may not be used to endorse or 19 | promote products derived from this software without specific 20 | prior written permission. 21 | 22 | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND 23 | CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT 24 | NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 25 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 26 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 27 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 28 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 29 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 30 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 31 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 | SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 33 | DAMAGE. 34 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2014 nexB Inc. http://www.nexb.com/ - All rights reserved. 2 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | owner: nexB Inc. 7 | author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez 8 | 9 | homepage_url: http://dejacode.org 10 | 11 | vcs_tool: git 12 | vcs_repository: https://github.com/dejacode/about-code-tool.git 13 | 14 | description: | 15 | AboutCode is a tool 16 | to process ABOUT files. 17 | An ABOUT file is a file. 18 | 19 | license: apache-2.0 20 | license_file: apache-2.0.LICENSE 21 | copyright: Copyright (c) 2013-2014 nexB Inc. 22 | 23 | notice_file: NOTICE -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/certifi-14.05.14-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/certifi-14.05.14-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/certifi.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: certifi-14.05.14-py2.py3-none-any.whl 2 | version: 14.05.14 3 | description: Python package for providing Mozilla's CA Bundle. 4 | 5 | owner: Kenneth Reitz 6 | contact: me@kennethreitz.com 7 | homepage_url: http://python-requests.org 8 | name: certifi 9 | 10 | license_expression: mpl-2.0 -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/certifi.LICENSE: -------------------------------------------------------------------------------- 1 | This packge contains a modified version of ca-bundle.crt: 2 | 3 | ca-bundle.crt -- Bundle of CA Root Certificates 4 | 5 | Certificate data from Mozilla as of: Thu Nov 3 19:04:19 2011# 6 | This is a bundle of X.509 certificates of public Certificate Authorities 7 | (CA). These were automatically extracted from Mozilla's root certificates 8 | file (certdata.txt). This file can be found in the mozilla source tree: 9 | http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1# 10 | It contains the certificates in PEM format and therefore 11 | can be directly used with curl / libcurl / php_curl, or with 12 | an Apache+mod_ssl webserver for SSL client authentication. 13 | Just configure this file as the SSLCACertificateFile.# 14 | 15 | ***** BEGIN LICENSE BLOCK ***** 16 | This Source Code Form is subject to the terms of the Mozilla Public License, 17 | v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain 18 | one at http://mozilla.org/MPL/2.0/. 19 | 20 | ***** END LICENSE BLOCK ***** 21 | @(#) $RCSfile: certdata.txt,v $ $Revision: 1.80 $ $Date: 2011/11/03 15:11:58 $ 22 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/click-3.2-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/click-3.2-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/click.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: click-3.2-py2.py3-none-any.whl 2 | version: 3.2 3 | download_url: https://pypi.python.org/packages/2.7/c/click/click-3.2-py2.py3-none-any.whl#md5=7d0bf0ca4e8ce6056e35cc8135d21abd 4 | name: click 5 | owner: Armin Ronacher 6 | contact: armin.ronacher@active-4.com 7 | homepage_url: http://click.pocoo.org/ 8 | vcs_tool: git 9 | vcs_repository: https://github.com/mitsuhiko/click.git 10 | description: | 11 | A simple wrapper around optparse for 12 | powerful command line utilities. 13 | license_expression: bsd-new 14 | license_file: click.LICENSE 15 | notes: | 16 | Click uses parts of optparse written by Gregory P. Ward and maintained 17 | by the Python software foundation. This is limited to code in the parser.py 18 | module and is under the same license as clikc itself. 19 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/click.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 by Armin Ronacher. 2 | 3 | Click uses parts of optparse written by Gregory P. Ward and maintained by the 4 | Python software foundation. This is limited to code in the parser.py 5 | module: 6 | 7 | Copyright (c) 2001-2006 Gregory P. Ward. All rights reserved. 8 | Copyright (c) 2002-2006 Python Software Foundation. All rights reserved. 9 | 10 | Some rights reserved. 11 | 12 | Redistribution and use in source and binary forms, with or without 13 | modification, are permitted provided that the following conditions are 14 | met: 15 | 16 | * Redistributions of source code must retain the above copyright 17 | notice, this list of conditions and the following disclaimer. 18 | 19 | * Redistributions in binary form must reproduce the above 20 | copyright notice, this list of conditions and the following 21 | disclaimer in the documentation and/or other materials provided 22 | with the distribution. 23 | 24 | * The names of the contributors may not be used to endorse or 25 | promote products derived from this software without specific 26 | prior written permission. 27 | 28 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 29 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 30 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 31 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 32 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 33 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 34 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 35 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 36 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 37 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 38 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 39 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/colorama-0.3.1-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/colorama-0.3.1-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/colorama.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: colorama-0.3.1-py2-none-any.whl 2 | name: colorama 3 | version: 0.3.1 4 | description: Cross-platform colored terminal text. 5 | homepage_url: https://pypi.python.org/pypi/colorama 6 | owner: Jonathan Hartley 7 | contact: tartley@tartley.com 8 | license_expression: bds-new 9 | keywords: color colour terminal text ansi windows crossplatform xplatform 10 | license_file: colorama.LICENSE 11 | download_url: https://pypi.python.org/packages/source/c/colorama/colorama-0.3.1.tar.gz#md5=95ce8bf32f5c25adea14b809db3509cb -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/colorama.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Jonathan Hartley 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the copyright holders, nor those of its contributors 15 | may be used to endorse or promote products derived from this software without 16 | specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 22 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 24 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 25 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | 29 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/pip-1.5.6-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/pip-1.5.6-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/pip.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: pip-1.5.6-py2.py3-none-any.whl 2 | version: 1.5.6 3 | download_url: https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz#md5=01026f87978932060cc86c1dc527903e 4 | 5 | name: pip 6 | owner: The pip developers 7 | contact: python-virtualenv@groups.google.com 8 | homepage_url: http://www.pip-installer.org 9 | 10 | author_file: pip.AUTHORS 11 | license_expression: mit AND lgpl-2.1 12 | license_file: pip.LICENSE 13 | 14 | vcs_tool: git 15 | vcs_repository: https://github.com/pypa/pip.git -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/py-1.4.23-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/py-1.4.23-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: py-1.4.23-py2-none-any.whl 2 | version: 1.4.23 3 | download_url: https://pypi.python.org/packages/source/p/py/py-1.4.23.tar.gz#md5=b40aea711eeb8adba0c44f0b750a3205 4 | 5 | name: py 6 | description: library with cross-python path, ini-parsing, io, code, log facilities 7 | homepage_url: http://pylib.readthedocs.org/ 8 | owner: holger krekel, Ronny Pfannschmidt, Benjamin Peterson and others 9 | contact: pytest-dev@python.org 10 | license_expression: mit 11 | license_file: py.LICENSE 12 | copyright: Holger Krekel and others, 2004-2014 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/py.LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Permission is hereby granted, free of charge, to any person obtaining a copy 3 | of this software and associated documentation files (the "Software"), to deal 4 | in the Software without restriction, including without limitation the rights 5 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 6 | copies of the Software, and to permit persons to whom the Software is 7 | furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in all 10 | copies or substantial portions of the Software. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 18 | SOFTWARE. 19 | 20 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/pytest-2.6.1-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/pytest-2.6.1-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/pytest.ABOUT: -------------------------------------------------------------------------------- 1 | download_url: https://pypi.python.org/packages/source/p/pytest/pytest-2.6.1.tar.gz#md5=bb353f6cf6d9ff83ff7f2dfbeaca47a3 2 | about_resource: pytest-2.6.1-py2.py3-none-any.whl 3 | version: 2.6.1 4 | 5 | name: pytest 6 | description: pytest - simple powerful testing with Python 7 | homepage_url: http://pytest.org 8 | owner: Holger Krekel, Benjamin Peterson, Ronny Pfannschmidt, Floris Bruynooghe and others 9 | contact: holger at merlinux.eu 10 | license_expression: mit 11 | license_file: pytest.LICENSE 12 | copyright: Copyright Holger Krekel and others, 2004-2014 13 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/pytest.LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Permission is hereby granted, free of charge, to any person obtaining a copy 3 | of this software and associated documentation files (the "Software"), to deal 4 | in the Software without restriction, including without limitation the rights 5 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 6 | copies of the Software, and to permit persons to whom the Software is 7 | furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in all 10 | copies or substantial portions of the Software. 11 | 12 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 17 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 18 | SOFTWARE. 19 | 20 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/schematics-0.9_5-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/schematics-0.9_5-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/schematics.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: schematics-0.9_5-py2-none-any.whl 2 | name: schematics 3 | version: 0.9-5 4 | 5 | download_url: https://pypi.python.org/packages/source/s/schematics/schematics-0.9-5.tar.gz#md5=82ba0d67aa2600421877edcd9e7500f7 6 | 7 | homepage_url: https://github.com/schematics/schematics 8 | owner: J2 Labs LLC. 9 | copyright: Copyright (c) 2013, J2 Labs LLC. 10 | 11 | license_expression: bsd-new 12 | license_file: schematics.LICENSE -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/schematics.LICENSE: -------------------------------------------------------------------------------- 1 | (The BSD License) 2 | 3 | Copyright (c) 2013, J2 Labs LLC. 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without modification, 7 | are permitted provided that the following conditions are met: 8 | 9 | 10 | 1. Redistributions of source code must retain the above copyright notice, 11 | this list of conditions and the following disclaimer. 12 | 13 | 2. Redistributions in binary form must reproduce the above copyright 14 | notice, this list of conditions and the following disclaimer in the 15 | documentation and/or other materials provided with the distribution. 16 | 17 | 3. Neither the name of Schematics nor the names of its contributors may be 18 | used to endorse or promote products derived from this software without 19 | specific prior written permission. 20 | 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 24 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 25 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 28 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/setuptools-5.6-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/setuptools-5.6-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/setuptools.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: setuptools-5.6-py2.py3-none-any.whl 2 | name: setuptools 3 | version: 5.6 4 | 5 | download_url: https://pypi.python.org/packages/3.4/s/setuptools/setuptools-5.6-py2.py3-none-any.whl#md5=4503e42d67edc51e293ba9be4af799a5 6 | 7 | homepage_url: https://pypi.python.org/pypi/setuptools 8 | owner: Python Packaging Authority 9 | 10 | license_expression: psf 11 | license_file: PSF.LICENSE -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/unicodecsv-0.9.4-py2-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/unicodecsv-0.9.4-py2-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/unicodecsv.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: unicodecsv-0.9.4-py2-none-any.whl 2 | version: 0.9.4 3 | download_url: https://pypi.python.org/packages/source/u/unicodecsv/unicodecsv-0.9.4.tar.gz#md5=344fa55f299ba198cb73db48546002fd 4 | 5 | name: unicodecsv 6 | homepage_url: https://github.com/jdunck/python-unicodecsv 7 | owner: Jeremy Dunck 8 | 9 | license_expression: bsd-new 10 | license_file: unicodecsv.LICENSE 11 | 12 | vcs_tool: git 13 | vcs_repository: https://github.com/jdunck/python-unicodecsv.git 14 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/unicodecsv.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2010 Jeremy Dunck. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without modification, are 4 | permitted provided that the following conditions are met: 5 | 6 | 1. Redistributions of source code must retain the above copyright notice, this list of 7 | conditions and the following disclaimer. 8 | 9 | 2. Redistributions in binary form must reproduce the above copyright notice, this list 10 | of conditions and the following disclaimer in the documentation and/or other materials 11 | provided with the distribution. 12 | 13 | THIS SOFTWARE IS PROVIDED BY JEREMY DUNCK ``AS IS'' AND ANY EXPRESS OR IMPLIED 14 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 15 | FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JEREMY DUNCK OR 16 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 17 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 18 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 19 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 20 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 21 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 | 23 | The views and conclusions contained in the software and documentation are those of the 24 | authors and should not be interpreted as representing official policies, either expressed 25 | or implied, of Jeremy Dunck. 26 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/virtualenv-1.11.6-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/virtualenv-1.11.6-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/virtualenv.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: virtualenv-1.11.6-py2.py3-none-any.whl 2 | version: 1.11.6 3 | download_url: https://raw.githubusercontent.com/pypa/virtualenv/1.11.6/virtualenv.py 4 | 5 | vcs_tool: git 6 | vcs_repository: https://github.com/pypa/virtualenv.git 7 | 8 | name: virtualenv 9 | homepage_url: http://virtualenv.org/ 10 | owner: The virtualenv developers 11 | 12 | license_url: https://raw.github.com/pypa/virtualenv/develop/LICENSE.txt 13 | license_file: virtualenv.LICENSE 14 | license_expression: mit 15 | copyright: | 16 | Copyright (c) 2007 Ian Bicking and Contributors 17 | Copyright (c) 2009 Ian Bicking, The Open Planning Project 18 | Copyright (c) 2011-2014 The virtualenv developers 19 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/virtualenv.LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2007 Ian Bicking and Contributors 2 | Copyright (c) 2009 Ian Bicking, The Open Planning Project 3 | Copyright (c) 2011-2014 The virtualenv developers 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/virtualenv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/virtualenv.py -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/virtualenv.py.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: virtualenv.py 2 | version: 1.11.6 3 | download_url: https://raw.githubusercontent.com/pypa/virtualenv/1.11.6/virtualenv.py 4 | 5 | vcs_tool: git 6 | vcs_repository: https://github.com/pypa/virtualenv.git 7 | 8 | name: virtualenv 9 | homepage_url: http://virtualenv.org/ 10 | owner: The virtualenv developers 11 | 12 | license_url: https://raw.github.com/pypa/virtualenv/develop/LICENSE.txt 13 | license_file: virtualenv.LICENSE 14 | license_expression: mit 15 | copyright: | 16 | Copyright (c) 2007 Ian Bicking and Contributors 17 | Copyright (c) 2009 Ian Bicking, The Open Planning Project 18 | Copyright (c) 2011-2014 The virtualenv developers 19 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/wheel-0.24.0-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/wheel-0.24.0-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/wheel.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: wheel-0.24.0-py2.py3-none-any.whl 2 | version: 0.24.0 3 | download_url: https://pypi.python.org/packages/py2.py3/w/wheel/wheel-0.24.0-py2.py3-none-any.whl#md5=4c24453cda2177fd42c5d62d6434679a 4 | 5 | name: wheel 6 | homepage_url: https://bitbucket.org/pypa/wheel 7 | vcs_tool: hg 8 | vcs_repository: https://bitbucket.org/pypa/wheel 9 | 10 | copyright: | 11 | copyright (c) 2012-2014 Daniel Holth and 12 | contributors. 13 | license_expression: mit 14 | license_file: wheel.LICENSE 15 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/wheel.LICENSE: -------------------------------------------------------------------------------- 1 | "wheel" copyright (c) 2012-2014 Daniel Holth and 2 | contributors. 3 | 4 | The MIT License 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a 7 | copy of this software and associated documentation files (the "Software"), 8 | to deal in the Software without restriction, including without limitation 9 | the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 | and/or sell copies of the Software, and to permit persons to whom the 11 | Software is furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included 14 | in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/wincertstore-0.2-py2.py3-none-any.whl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/inventory/complex/about/wincertstore-0.2-py2.py3-none-any.whl -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/complex/about/wincertstore.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: wincertstore-0.2-py2.py3-none-any.whl 2 | version: 0.2 3 | download_url: https://pypi.python.org/packages/source/w/wincertstore/wincertstore-0.2.zip 4 | 5 | name: wincertstore 6 | 7 | license_expression: psf 8 | license_file: wincertstore.LICENSE 9 | 10 | contact: christian@python.org 11 | owner: Christian Heimes 12 | homepage_url: https://bitbucket.org/tiran/wincertstore 13 | description: Python module to extract CA and CRL certs from Windows' cert store (ctypes based). 14 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/custom_fields.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: test 3 | resource: . 4 | custom_mapping: test -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/custom_fields2.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: test 3 | resource: . 4 | custom_mapping: test -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/no_about_resource_key/about/about.ABOUT: -------------------------------------------------------------------------------- 1 | name: AboutCode -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/relative/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2014 nexB Inc. http://www.nexb.com/ - All rights reserved. 2 | -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/relative/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | owner: nexB Inc. 7 | author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez 8 | 9 | homepage_url: http://dejacode.org 10 | 11 | vcs_tool: git 12 | vcs_repository: https://github.com/dejacode/about-code-tool.git 13 | 14 | description: | 15 | AboutCode is a tool 16 | to process ABOUT files. 17 | An ABOUT file is a file. 18 | 19 | license_expression: apache-2.0 20 | license_key: apache-2.0 21 | license_file: apache-2.0.LICENSE 22 | copyright: Copyright (c) 2013-2014 nexB Inc. 23 | 24 | notice_file: NOTICE -------------------------------------------------------------------------------- /tests/testdata/test_model/inventory/relative/apache-2.0.LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/longpath.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/longpath.zip -------------------------------------------------------------------------------- /tests/testdata/test_model/multiple_files.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: multiple_files 3 | 4 | notice_file: NOTICE, NOTICE1 5 | author_file: AUTHOR 6 | changelog_file: 7 | 8 | licenses: 9 | - key: lgpl-2.1 10 | file: COPYING, COPYING.LESSER -------------------------------------------------------------------------------- /tests/testdata/test_model/multiple_files_expected.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,notice_file,author_file,changelog_file,license_key,license_file 2 | /test_model/,multiple_files,"NOTICE, NOTICE1",AUTHOR,,lgpl-2.1,"COPYING, COPYING.LESSER" 3 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/basic.about: -------------------------------------------------------------------------------- 1 | single_line: optional 2 | other_field: value 3 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/boolean_chara_data.about: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: data 3 | attribute: 11 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/boolean_data.about: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: boolean_data 3 | attribute: False 4 | modified: true 5 | internal_use_only: no 6 | redistribute: yes 7 | track_changes: -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/boolean_more_than_2_chara_data.about: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: test 3 | attribute: abc 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/boolean_numeric_data.about: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: boolean_data 3 | attribute: 3 4 | modified: true 5 | internal_use_only: no 6 | redistribute: yes 7 | track_changes: 8 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/complete2/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2014 nexB Inc. http://www.nexb.com/ - All rights reserved. 2 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/complete2/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | custom1: | 7 | multi 8 | line 9 | 10 | custom2: -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/complete2/about2.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.1 5 | 6 | redistribute: n 7 | attribute: yes 8 | track_changes: blah 9 | modified: True -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/complete2/apache-2.0.LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/complex.about: -------------------------------------------------------------------------------- 1 | single_line: optional 2 | other_field: value 3 | 4 | 5 | multi_line: some value 6 | and more 7 | and yet more 8 | 9 | yetanother: 10 | sdasd -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/continuation.about: -------------------------------------------------------------------------------- 1 | single_line: optional 2 | other_field: value 3 | multi_line: some value 4 | and more 5 | and yet more 6 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/continuation_verbatim.about: -------------------------------------------------------------------------------- 1 | single_line: optional 2 | other_field: value 3 | 4 | 5 | multi_line: | 6 | some value 7 | and more 8 | and yet more 9 | 10 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/continuation_verbatim_with_tab.about: -------------------------------------------------------------------------------- 1 | single_line: optional 2 | other_field: value 3 | 4 | 5 | multi_line: | 6 | This is a long description 7 | with tab. -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/dupe_field_name.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: old 3 | Name: new 4 | About_Resource: new value -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/dupe_field_name_no_new_value.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: old 3 | Name: old 4 | About_Resource: . -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/empty_notice_field.about: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: Apache HTTP Server 3 | version: 2.4.3 4 | notice_file: -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/empty_required.ABOUT: -------------------------------------------------------------------------------- 1 | name: 2 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/illegal_custom_field.about: -------------------------------------------------------------------------------- 1 | name: optional 2 | about_resource: . 3 | 4 | hydrate: illegal name 5 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/invalid_boolean.about: -------------------------------------------------------------------------------- 1 | name: invalid_boolean 2 | about_resource: . 3 | modified: blah 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/invalid_continuation.about: -------------------------------------------------------------------------------- 1 | single_line: optional 2 | other_field: value 3 | 4 | multi_line: some value 5 | and more 6 | 7 | invalid continuation2 8 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/invalid_names.about: -------------------------------------------------------------------------------- 1 | invalid space:value 2 | other-field: value 3 | val3_id_ : some:value 4 | VALE3_ID_ : some:value 5 | _invalid_dash: value 6 | 3invalid_number: value 7 | invalid.dot: value -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/license_file_notice_file.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: test.template 2 | name: license extraction 3 | license_file: license_text.LICENSE 4 | notice_file: notice_text.NOTICE -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/license_text.LICENSE: -------------------------------------------------------------------------------- 1 | Tester holds the copyright for test component. Tester relinquishes copyright of 2 | this software and releases the component to Public Domain. 3 | 4 | * Email Test@tester.com for any questions -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/missing_notice_file.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: Apache HTTP Server 3 | notice_file: -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/missing_notice_license_files.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: license name 3 | license_file: test.LICENSE 4 | notice_file: test.NOTICE -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/missing_required.ABOUT: -------------------------------------------------------------------------------- 1 | download_url: http://archive.apache.org/dist/httpd/httpd-2.4.3.tar.gz 2 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/multi_line_license_expresion.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: test 3 | license_expression: mit or apache-2.0 4 | licenses: 5 | - key: mit 6 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:mit 7 | - key: apache-2.0 8 | url: https://enterprise.dejacode.com/urn/?urn=urn:dje:license:apache-2.0 -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/name_mapping_test.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: test 3 | resource: . 4 | custom_mapping: test -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/no_file_fields.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: name 3 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/non_ascii_field_name_value.about: -------------------------------------------------------------------------------- 1 | name: name 2 | about_resource: . 3 | owner: Matías Aguirre 4 | Matías: unicode field name 5 | -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/notice_text.NOTICE: -------------------------------------------------------------------------------- 1 | Test component is released to Public Domain. -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/ordered_fields.ABOUT: -------------------------------------------------------------------------------- 1 | download_url: http://some.com/this 2 | name: old 3 | version: new 4 | about_resource: . -------------------------------------------------------------------------------- /tests/testdata/test_model/parse/with_ignored_resources.ABOUT: -------------------------------------------------------------------------------- 1 | name: elasticsearch-sidecar 2 | about_resource: elasticsearch-sidecar 3 | ignored_resources: 4 | - elasticsearch-sidecar/plugins/ 5 | - elasticsearch-sidecar/logs/ 6 | -------------------------------------------------------------------------------- /tests/testdata/test_model/redistribution/test/subdir/test.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: test 3 | redistribute: x -------------------------------------------------------------------------------- /tests/testdata/test_model/redistribution/test/subdir/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/redistribution/test/subdir/test.c -------------------------------------------------------------------------------- /tests/testdata/test_model/redistribution/this.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: this.c 2 | version: 0.11.0 3 | name: this.c 4 | redistribute: x -------------------------------------------------------------------------------- /tests/testdata/test_model/redistribution/this.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/redistribution/this.c -------------------------------------------------------------------------------- /tests/testdata/test_model/redistribution/this2.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: this2.c 2 | name: this2.c 3 | version: 0.11.0 4 | redistribute: N -------------------------------------------------------------------------------- /tests/testdata/test_model/redistribution/this2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/redistribution/this2.c -------------------------------------------------------------------------------- /tests/testdata/test_model/rel/allAboutInOneDir/about_ref/csv_serialize.py.ABOUT: -------------------------------------------------------------------------------- 1 | download_url: http://djangosnippets.org/snippets/2240/download/ 2 | name: csv_serialize 3 | version: 2013-01-16 4 | homepage_url: http://djangosnippets.org/snippets/2240/ 5 | license_url: http://djangosnippets.org/about/tos/ 6 | license_file: ../../thirdparty/django_snippets.LICENSE 7 | 8 | about_resource: ../../thirdparty/csv_serialize.py -------------------------------------------------------------------------------- /tests/testdata/test_model/rel/allAboutInOneDir/about_ref/django_snippets_2413.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: ../../thirdparty/django_snippets_2413.py 2 | version: 2011-04-12 3 | download_url: http://djangosnippets.org/snippets/2413/download/ 4 | 5 | name: Yet another query string template tag 6 | homepage_url: http://djangosnippets.org/snippets/2413/ 7 | 8 | license_url: http://djangosnippets.org/about/tos/ 9 | license_file: ../../thirdparty/django_snippets.LICENSE 10 | notes: This file was modified to include the line "register = Library()" 11 | without which the template tag is not registered. 12 | -------------------------------------------------------------------------------- /tests/testdata/test_model/rel/allAboutInOneDir/about_ref/elasticsearch.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: ../../thirdparty/elasticsearch-0.19.8.zip 2 | download_url: https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.8.zip 3 | version: 0.19.8 4 | scm_rev: badcdee74acec84da3de6c6ea55c692aee4a6f9 5 | 6 | organization: ElasticSearch and Shay Banon 7 | name: ElasticSearch 8 | 9 | homepage_url: http://www.elasticsearch.org/ 10 | 11 | scm_tool: git 12 | scm_repository: https://github.com/elasticsearch/elasticsearch.git 13 | 14 | license_expression: apache-2.0 15 | notice_file: ../../thirdparty/elasticsearch.NOTICE 16 | license_file: ../../thirdparty/elasticsearch.LICENSE 17 | copyright: Copyright 2009-2011 ElasticSearch and Shay Banon 18 | 19 | notes: This a prebuilt version working on all OSes. 20 | The tar.gz works only with POSIX OSses and not Windows. 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/testdata/test_model/rel/allAboutInOneDir/about_ref/ez_setup.py.ABOUT: -------------------------------------------------------------------------------- 1 | date: 2013-01-01 2 | download_url: http://peak.telecommunity.com/dist/ez_setup.py 3 | version: 0.6c11 4 | 5 | name: setuptools boostrap 6 | homepage_url: http://pypi.python.org/pypi/setuptools 7 | author: Phillip J. Eby 8 | 9 | license_expression: zpl-2.1 10 | notes: this is not used by default but embedded in virtualenv 11 | 12 | about_resource: t1/t2/ez_setup.py -------------------------------------------------------------------------------- /tests/testdata/test_model/rel/allAboutInOneDir/about_ref/t1/t2/ez_setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/rel/allAboutInOneDir/about_ref/t1/t2/ez_setup.py -------------------------------------------------------------------------------- /tests/testdata/test_model/rel/thirdparty/django_snippets.LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/rel/thirdparty/django_snippets.LICENSE -------------------------------------------------------------------------------- /tests/testdata/test_model/rel/thirdparty/elasticsearch.LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/rel/thirdparty/elasticsearch.LICENSE -------------------------------------------------------------------------------- /tests/testdata/test_model/rel/thirdparty/elasticsearch.NOTICE: -------------------------------------------------------------------------------- 1 | ElasticSearch 2 | Copyright 2009-2011 ElasticSearch and Shay Banon 3 | 4 | This product includes software developed by The Apache Software 5 | Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /tests/testdata/test_model/serialize/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2014 nexB Inc. http://www.nexb.com/ - All rights reserved. 2 | -------------------------------------------------------------------------------- /tests/testdata/test_model/serialize/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | owner: nexB Inc. 7 | author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez 8 | 9 | homepage_url: http://dejacode.org 10 | 11 | vcs_tool: git 12 | vcs_repository: https://github.com/dejacode/about-code-tool.git 13 | 14 | description: | 15 | AboutCode is a tool 16 | to process ABOUT files. 17 | An ABOUT file is a file. 18 | 19 | license_expression: apache-2.0 20 | license_key: apache-2.0 21 | license_file: apache-2.0.LICENSE 22 | copyright: Copyright (c) 2013-2014 nexB Inc. 23 | 24 | notice_file: NOTICE -------------------------------------------------------------------------------- /tests/testdata/test_model/serialize/apache-2.0.LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/single_file/django_snippets.LICENSE: -------------------------------------------------------------------------------- 1 | Terms of Service 2 | We hate legal-speak as much as anybody, but on a site which is geared toward sharing code there has to be at least a little bit of it, so here goes: 3 | 4 | By creating an account here you agree to three things: 5 | 6 | That you will only post code which you wrote yourself and that you have the legal right to release under these terms. 7 | That you grant any third party who sees the code you post a royalty-free, non-exclusive license to copy and distribute that code and to make and distribute derivative works based on that code. You may include license terms in snippets you post, if you wish to use a particular license (such as the BSD license or GNU GPL), but that license must permit royalty-free copying, distribution and modification of the code to which it is applied. 8 | That if you post code of which you are not the author or for which you do not have the legal right to distribute according to these terms, you will indemnify and hold harmless the operators of this site and any third parties who are exposed to liability as a result of your actions. 9 | If you can't legally agree to these terms, or don't want to, you cannot create an account here. -------------------------------------------------------------------------------- /tests/testdata/test_model/single_file/django_snippets_2413.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: django_snippets_2413.py 2 | version: 2011-04-12 3 | download_url: http://djangosnippets.org/snippets/2413/download/ 4 | 5 | name: Yet another query string template tag 6 | homepage_url: http://djangosnippets.org/snippets/2413/ 7 | 8 | license_url: http://djangosnippets.org/about/tos/ 9 | license_file: django_snippets.LICENSE 10 | notes: This file was modified to include the line "register = Library()" 11 | without which the template tag is not registered. 12 | -------------------------------------------------------------------------------- /tests/testdata/test_model/single_file/django_snippets_2413.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/single_file/django_snippets_2413.py -------------------------------------------------------------------------------- /tests/testdata/test_model/special/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013-2014 nexB Inc. http://www.nexb.com/ - All rights reserved. 2 | -------------------------------------------------------------------------------- /tests/testdata/test_model/special/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | owner: nexB Inc. 7 | author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez 8 | 9 | homepage_url: http://dejacode.org 10 | 11 | vcs_tool: git 12 | vcs_repository: https://github.com/dejacode/about-code-tool.git 13 | 14 | description: | 15 | AboutCode is a tool 16 | to process ABOUT files. 17 | An ABOUT file is a file. 18 | 19 | license_expression: apache-2.0 20 | license_key: apache-2.0 21 | license_file: apache-2.0.LICENSE 22 | copyright: Copyright (c) 2013-2014 nexB Inc. 23 | 24 | notice_file: NOTICE -------------------------------------------------------------------------------- /tests/testdata/test_model/special/apache-2.0.LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/special_char/about.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | 3 | name: AboutCode 4 | version: 0.11.0 5 | 6 | license_key: mit, gpl-2.0 -------------------------------------------------------------------------------- /tests/testdata/test_model/this.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: . 2 | name: AboutCode 3 | version: 0.11.0 4 | -------------------------------------------------------------------------------- /tests/testdata/test_model/unicode/nose-selecttests.ABOUT: -------------------------------------------------------------------------------- 1 | about_resource: nose-selecttests-0.3.zip 2 | version: 0.3 3 | download_url: http://pypi.python.org/packages/source/n/nose-selecttests/nose-selecttests-0.3.zip 4 | 5 | name: nose-selecttests 6 | homepage_url: https://github.com/iElectric/nose-selecttests 7 | 8 | dje_license: bsd-new 9 | license_url: https://github.com/iElectric/nose-selecttests/blob/master/LICENSE 10 | license_text_file: nose-selecttests.LICENSE 11 | copyright: Copyright (c) 2012, Domen Kožar 12 | 13 | scm_tool: git 14 | scm_repository: https://github.com/iElectric/nose-selecttests.git 15 | 16 | test: 測試 -------------------------------------------------------------------------------- /tests/testdata/test_model/unicode/not-unicode.ABOUT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_model/unicode/not-unicode.ABOUT -------------------------------------------------------------------------------- /tests/testdata/test_transform/configuration: -------------------------------------------------------------------------------- 1 | field_renamings: 2 | about_resource : 'Directory/Filename' 3 | name : Component 4 | field_filters: 5 | - about_resource 6 | - name 7 | - version 8 | - temp 9 | required_fields: 10 | - name 11 | - version 12 | exclude_fields: 13 | - temp 14 | -------------------------------------------------------------------------------- /tests/testdata/test_transform/configuration2: -------------------------------------------------------------------------------- 1 | field_renamings: 2 | about_resource : 'Directory/Filename' 3 | name : Component 4 | version : 'Confirmed Version' -------------------------------------------------------------------------------- /tests/testdata/test_transform/configuration3: -------------------------------------------------------------------------------- 1 | field_renamings: 2 | about_resource : 'path' 3 | score_renamed : score 4 | size_renamed : size 5 | required_fields: 6 | - about_resource 7 | - name 8 | exclude_fields: 9 | - sha1 10 | - sha256 11 | - md5 12 | - type 13 | - start_line 14 | - matched_length 15 | - scan_errors 16 | -------------------------------------------------------------------------------- /tests/testdata/test_transform/configuration_new_cols: -------------------------------------------------------------------------------- 1 | field_renamings: 2 | about_resource: 'Directory/Filename' 3 | name: Component 4 | path: 'Directory/Filename' -------------------------------------------------------------------------------- /tests/testdata/test_transform/input.csv: -------------------------------------------------------------------------------- 1 | Directory/Filename,Component,Confirmed Version,notes 2 | /aboutcode-toolkit/,AboutCode-toolkit,123, 3 | -------------------------------------------------------------------------------- /tests/testdata/test_transform/input.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "Directory/Filename": "/aboutcode-toolkit/", 4 | "Component": "AboutCode-toolkit", 5 | "Confirmed Version": "123", 6 | "notes": "" 7 | } 8 | ] -------------------------------------------------------------------------------- /tests/testdata/test_transform/input.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_transform/input.xlsx -------------------------------------------------------------------------------- /tests/testdata/test_transform/input_scancode.json: -------------------------------------------------------------------------------- 1 | { 2 | "headers": [ 3 | { 4 | "tool_name": "scancode-toolkit", 5 | "tool_version": "3.1.1", 6 | "options": { 7 | "input": [ 8 | "samples" 9 | ], 10 | "--copyright": true, 11 | "--email": true, 12 | "--info": true, 13 | "--json-pp": "output.json", 14 | "--license": true, 15 | "--package": true, 16 | "--url": true 17 | }, 18 | "notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", 19 | "start_timestamp": "2020-03-10T072841.008622", 20 | "end_timestamp": "2020-03-10T072953.529915", 21 | "message": null, 22 | "errors": [], 23 | "extra_data": { 24 | "files_count": 33 25 | } 26 | } 27 | ], 28 | "files": [ 29 | { 30 | "path": "samples", 31 | "type": "directory", 32 | "name": "samples", 33 | "base_name": "samples", 34 | "extension": "", 35 | "size": 0, 36 | "date": null, 37 | "sha1": null, 38 | "md5": null, 39 | "mime_type": null, 40 | "file_type": null, 41 | "programming_language": null, 42 | "is_binary": false, 43 | "is_text": false, 44 | "is_archive": false, 45 | "is_media": false, 46 | "is_source": false, 47 | "is_script": false, 48 | "licenses": [], 49 | "license_expressions": [], 50 | "copyrights": [], 51 | "holders": [], 52 | "authors": [], 53 | "packages": [], 54 | "emails": [], 55 | "urls": [], 56 | "files_count": 33, 57 | "dirs_count": 10, 58 | "size_count": 1161083, 59 | "scan_errors": [] 60 | } 61 | ] 62 | } 63 | -------------------------------------------------------------------------------- /tests/testdata/test_transform/simple.csv: -------------------------------------------------------------------------------- 1 | about_resource,name,license_expression 2 | /test.c,test.c,mit 3 | /test2.c,test2.c,mit and apache-2.0 4 | -------------------------------------------------------------------------------- /tests/testdata/test_transform/simple.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_transform/simple.xlsx -------------------------------------------------------------------------------- /tests/testdata/test_util/about_locations/dir1/dir2/file1.about: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_util/about_locations/dir1/dir2/file1.about -------------------------------------------------------------------------------- /tests/testdata/test_util/about_locations/dir1/file2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_util/about_locations/dir1/file2 -------------------------------------------------------------------------------- /tests/testdata/test_util/about_locations/dir1/file2.aBout: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_util/about_locations/dir1/file2.aBout -------------------------------------------------------------------------------- /tests/testdata/test_util/about_locations/dir2/file1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_util/about_locations/dir2/file1 -------------------------------------------------------------------------------- /tests/testdata/test_util/about_locations/file with_spaces.ABOUT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_util/about_locations/file with_spaces.ABOUT -------------------------------------------------------------------------------- /tests/testdata/test_util/about_locations/file1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_util/about_locations/file1 -------------------------------------------------------------------------------- /tests/testdata/test_util/about_locations/file2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_util/about_locations/file2 -------------------------------------------------------------------------------- /tests/testdata/test_util/csv/about.csv: -------------------------------------------------------------------------------- 1 | about_file,about_resource,name,version 2 | about.ABOUT,.,ABOUT tool,0.8.1 3 | -------------------------------------------------------------------------------- /tests/testdata/test_util/csv/about_key_with_upper_case.csv: -------------------------------------------------------------------------------- 1 | about_file,about_resource,nAme,Version 2 | about.ABOUT,.,ABOUT tool,0.8.1 3 | -------------------------------------------------------------------------------- /tests/testdata/test_util/csv/test_ms_utf8.csv: -------------------------------------------------------------------------------- 1 | about_resource,name 2 | /myFile,myName 3 | -------------------------------------------------------------------------------- /tests/testdata/test_util/csv/test_utf8.csv: -------------------------------------------------------------------------------- 1 | about_resource,name 2 | /myFile,名 3 | -------------------------------------------------------------------------------- /tests/testdata/test_util/get_about_locations/NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_util/get_about_locations/NOTICE -------------------------------------------------------------------------------- /tests/testdata/test_util/get_about_locations/about.ABOUT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_util/get_about_locations/about.ABOUT -------------------------------------------------------------------------------- /tests/testdata/test_util/get_about_locations/apache-2.0.LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_util/get_about_locations/apache-2.0.LICENSE -------------------------------------------------------------------------------- /tests/testdata/test_util/json/expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "about_file_path": "/load/this.ABOUT", 4 | "about_resource": ".", 5 | "name": "AboutCode", 6 | "version": "0.11.0" 7 | } 8 | ] -------------------------------------------------------------------------------- /tests/testdata/test_util/json/expected_need_mapping.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "about_file": "/load/this.ABOUT", 4 | "about_resource": ".", 5 | "name": "AboutCode", 6 | "version": "0.11.0" 7 | } 8 | ] -------------------------------------------------------------------------------- /tests/testdata/test_util/json/multi_entries.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "about_file_path": "/load/this.ABOUT", 4 | "about_resource": ".", 5 | "name": "AboutCode", 6 | "version": "0.11.0" 7 | }, 8 | { 9 | "about_file_path": "/load/that.ABOUT", 10 | "about_resource": ".", 11 | "name": "that" 12 | } 13 | ] 14 | -------------------------------------------------------------------------------- /tests/testdata/test_util/json/not_a_list.json: -------------------------------------------------------------------------------- 1 | { 2 | "about_file_path": "/load/this.ABOUT", 3 | "about_resource": ".", 4 | "name": "AboutCode", 5 | "version": "0.11.0" 6 | } 7 | -------------------------------------------------------------------------------- /tests/testdata/test_util/json/not_a_list_need_mapping.json: -------------------------------------------------------------------------------- 1 | { 2 | "path": "/load/this.ABOUT", 3 | "about_resource": ".", 4 | "name": "AboutCode", 5 | "version": "0.11.0" 6 | } -------------------------------------------------------------------------------- /tests/testdata/test_util/licenses/mit.LICENSE: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 2 | 3 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 4 | 5 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.This component is released to the public domain by the author. -------------------------------------------------------------------------------- /tests/testdata/test_util/licenses/mit2.LICENSE: -------------------------------------------------------------------------------- 1 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 2 | 3 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 4 | 5 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.This component is released to the public domain by the author. -------------------------------------------------------------------------------- /tests/testdata/test_util/licenses/public-domain.LICENSE: -------------------------------------------------------------------------------- 1 | This component is released to the public domain by the author. -------------------------------------------------------------------------------- /tests/testdata/test_util/longpath.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboutcode-org/aboutcode-toolkit/0806554a913ff386effc657f5e24dbe8cc4053a4/tests/testdata/test_util/longpath.zip -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | envlist = py{36,37,38,39} 3 | 4 | [testenv] 5 | deps = pytest 6 | mock 7 | commands = {posargs:pytest} -vvs 8 | 9 | [pytest] 10 | testpaths = src tests/ 11 | --------------------------------------------------------------------------------