python-inspector 0.11.0__tar.gz → 0.12.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python-inspector-0.11.0 → python_inspector-0.12.1}/CHANGELOG.rst +12 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/Makefile +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/NOTICE +21 -2
- {python-inspector-0.11.0/src/python_inspector.egg-info → python_inspector-0.12.1}/PKG-INFO +7 -7
- {python-inspector-0.11.0 → python_inspector-0.12.1}/README.rst +5 -5
- python_inspector-0.12.1/azure-pipelines.yml +54 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/configure +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/configure.bat +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/docs/source/test-protocol.rst +3 -3
- {python-inspector-0.11.0 → python_inspector-0.12.1}/requirements.txt +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/requirements_builder.ABOUT +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/setup.cfg +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/_packagedcode/__init__.py +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/_packagedcode/models.py +2 -2
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/_packagedcode/pypi.py +6 -6
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/_packagedcode/pypi_setup_py.py +6 -6
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/_packagedcode/utils.py +4 -3
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/__init__.py +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/api.py +22 -12
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/cli_utils.py +4 -3
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/error.py +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/package_data.py +3 -2
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/resolution.py +25 -14
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/resolve_cli.py +10 -7
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/utils.py +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/utils_pypi.py +5 -3
- {python-inspector-0.11.0 → python_inspector-0.12.1/src/python_inspector.egg-info}/PKG-INFO +7 -7
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector.egg-info/SOURCES.txt +1 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/azure-devops.req-310-expected.json +120 -118
- python_inspector-0.12.1/tests/data/azure-devops.req-312-expected.json +2595 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/azure-devops.req-38-expected.json +120 -118
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/default-url-expected.json +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/environment-marker-test-requirements.txt-expected.json +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/example-requirements-ignore-errors-expected.json +46 -46
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/frozen-requirements.txt-expected.json +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/insecure-setup/setup.py-expected.json +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/pdt-requirements.txt-expected.json +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/pinned-pdt-requirements.txt-expected.json +20 -20
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/pinned-requirements.txt-expected.json +21 -21
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/prefer-source-expected.json +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup/no-direct-dependencies-setup.py-expected.json +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup/simple-setup.py-expected.json +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup/spdx-setup.py-expected.json +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/single-url-except-simple-expected.json +41 -41
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/single-url-expected.json +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/tilde_req-expected.json +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_api.py +1 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_cli.py +21 -1
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_resolution.py +4 -4
- python-inspector-0.11.0/azure-pipelines.yml +0 -64
- {python-inspector-0.11.0 → python_inspector-0.12.1}/.gitattributes +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/.github/workflows/docs-ci.yml +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/.github/workflows/pypi-release.yml +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/.gitignore +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/.readthedocs.yml +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/AUTHORS.rst +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/CODE_OF_CONDUCT.rst +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/MANIFEST.in +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/apache-2.0.LICENSE +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/docs/Makefile +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/docs/make.bat +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/docs/scripts/doc8_style_check.sh +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/docs/scripts/sphinx_build_link_check.sh +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/docs/source/_static/theme_overrides.css +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/docs/source/conf.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/docs/source/dependencies-design.rst +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/docs/source/index.rst +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/ci/azure-container-deb.yml +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/ci/azure-container-rpm.yml +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/ci/azure-posix.yml +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/ci/azure-win.yml +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/ci/install_sudo.sh +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/ci/macports-ci +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/ci/macports-ci.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/ci/mit.LICENSE +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/README.rst +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/check_thirdparty.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/fetch_thirdparty.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/gen_pypi_simple.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/gen_pypi_simple.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/gen_pypi_simple.py.NOTICE +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/gen_requirements.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/gen_requirements_dev.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/requirements.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/test_utils_pip_compatibility_tags.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/test_utils_pip_compatibility_tags.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/test_utils_pypi_supported_tags.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/test_utils_pypi_supported_tags.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/utils_dejacode.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/utils_pip_compatibility_tags.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/utils_pip_compatibility_tags.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/utils_pypi_supported_tags.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/utils_pypi_supported_tags.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/utils_requirements.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/utils_thirdparty.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/etc/scripts/utils_thirdparty.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/pyproject.toml +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/requirements-dev.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/setup.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/_packagedcode/pypi.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/_packagedcode/pypi.py.NOTICE +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/_packagedcode/pypi_setup_py.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/_packagedcode/pypi_setup_py.py.LICENSE +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/dependencies.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/resolution.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/resolution.py.LICENSE +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/setup_py_live_eval.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/setup_py_live_eval.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/setup_py_live_eval.py.LICENSE +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/utils_pip_compatibility_tags.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/utils_pip_compatibility_tags.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/utils_pypi.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/utils_pypi_supported_tags.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector/utils_pypi_supported_tags.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector.egg-info/dependency_links.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector.egg-info/entry_points.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector.egg-info/not-zip-safe +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector.egg-info/requires.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/src/python_inspector.egg-info/top_level.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/conftest.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/azure-devops.req.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/environment-marker-test-requirements.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/error-requirements.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/fetch_links_test.html +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/frozen-requirements.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/insecure-setup/rdflib/__init__.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/insecure-setup/setup.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/insecure-setup-2/setup.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/insecure-setup-2/setup.py-expected.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/insecure-setup-2/testpkh/__init__.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/other_req.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/parse-reqs-with-setup_requires-and-python-requires.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/parse-reqs.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/partial-setup.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/pdt-requirements.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/pinned-pdt-requirements.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/pinned-requirements.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/psycopg2-links-expected.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/psycopg2.html +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/recursive_requirements/com.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/recursive_requirements/r.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/relative-links-expected.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/req.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/requirements-test.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/requirements.devel.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/secure-setup/setup-emptyrequires.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/secure-setup/setup-norequires.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/secure-setup/setup-requires.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup/no-direct-dependencies-setup.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup/simple-setup.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup/spdx-setup.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup-distutils-asnames.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup-distutils-qualifiedfct.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup-distutils.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup-qualifiedfct.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup.cfg +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup.txt +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup_if_main.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/setup_with_setup_requires_and_python_requires.cfg +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/test-api-expected.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/test-api-pdt-expected.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/test-api-with-partial-setup-py.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/test-api-with-prefer-source.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/test-api-with-python-311.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/test-api-with-recursive-requirement-file.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/test-api-with-requirement-file.json +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/test-commented.netrc +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/data/test.netrc +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_codestyle.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_packagecode_pypi.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_pypi.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_requirement_parsing.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_setup_py_live_eval.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_setup_py_live_eval.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_setup_py_live_eval.py.LICENSE +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_setup_py_live_eval_cli.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_setup_py_live_eval_cli.py.LICENSE +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_setup_py_parsing.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_skeleton_codestyle.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_utils.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_utils_pip_compatibility_tags.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_utils_pip_compatibility_tags.py.ABOUT +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_utils_pypi.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_utils_pypi_supported_tags.py +0 -0
- {python-inspector-0.11.0 → python_inspector-0.12.1}/tests/test_utils_pypi_supported_tags.py.ABOUT +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# ScanCode is a trademark of nexB Inc.
|
|
5
5
|
# SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
7
|
-
# See https://github.com/
|
|
7
|
+
# See https://github.com/aboutcode-org/python-inspector for support or download.
|
|
8
8
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
9
9
|
#
|
|
10
10
|
|
|
@@ -1,20 +1,39 @@
|
|
|
1
1
|
#
|
|
2
|
+
|
|
2
3
|
# Copyright (c) nexB Inc. and others.
|
|
4
|
+
|
|
3
5
|
# SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
|
|
4
7
|
#
|
|
5
|
-
|
|
8
|
+
|
|
9
|
+
# Visit https://aboutcode.org and https://github.com/aboutcode-org/python-inspector
|
|
10
|
+
|
|
6
11
|
# for support and download.
|
|
12
|
+
|
|
7
13
|
# ScanCode is a trademark of nexB Inc.
|
|
14
|
+
|
|
8
15
|
#
|
|
16
|
+
|
|
9
17
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
18
|
+
|
|
10
19
|
# you may not use this file except in compliance with the License.
|
|
20
|
+
|
|
11
21
|
# You may obtain a copy of the License at
|
|
22
|
+
|
|
12
23
|
#
|
|
13
|
-
|
|
24
|
+
|
|
25
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
26
|
+
|
|
14
27
|
#
|
|
28
|
+
|
|
15
29
|
# Unless required by applicable law or agreed to in writing, software
|
|
30
|
+
|
|
16
31
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
32
|
+
|
|
17
33
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
34
|
+
|
|
18
35
|
# See the License for the specific language governing permissions and
|
|
36
|
+
|
|
19
37
|
# limitations under the License.
|
|
38
|
+
|
|
20
39
|
#
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-inspector
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.12.1
|
|
4
4
|
Summary: python-inspector is is a collection of utilities to collect PyPI package metadata and resolve packages dependencies.
|
|
5
|
-
Home-page: https://github.com/
|
|
5
|
+
Home-page: https://github.com/aboutcode-org/python-inspector
|
|
6
6
|
Author: nexB. Inc. and others
|
|
7
7
|
Author-email: info@aboutcode.org
|
|
8
8
|
License: Apache-2.0
|
|
@@ -56,7 +56,7 @@ python-inspector - inspect Python packages dependencies and metadata
|
|
|
56
56
|
|
|
57
57
|
Copyright (c) nexB Inc. and others.
|
|
58
58
|
SPDX-License-Identifier: Apache-2.0
|
|
59
|
-
Homepage: https://github.com/
|
|
59
|
+
Homepage: https://github.com/aboutcode-org/python-inspector and https://www.aboutcode.org/
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
``python-inspector`` is a collection of utilities to:
|
|
@@ -88,7 +88,7 @@ Testing
|
|
|
88
88
|
pytest -vvs
|
|
89
89
|
|
|
90
90
|
- These are live tests to regenrate the tests with updated data run::
|
|
91
|
-
|
|
91
|
+
|
|
92
92
|
PYINSP_REGEN_TEST_FIXTURES=yes pytest -vvs
|
|
93
93
|
|
|
94
94
|
Usage
|
|
@@ -96,7 +96,7 @@ Usage
|
|
|
96
96
|
|
|
97
97
|
- Install with pip::
|
|
98
98
|
|
|
99
|
-
pip install git+https://github.com/
|
|
99
|
+
pip install git+https://github.com/aboutcode-org/python-inspector
|
|
100
100
|
|
|
101
101
|
- Run the command line utility with::
|
|
102
102
|
|
|
@@ -123,5 +123,5 @@ Its companion libraries are:
|
|
|
123
123
|
installed site-packages and their metadata formats.
|
|
124
124
|
|
|
125
125
|
- ``packageurl-python`` to use Package URL to reference Python packages
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
|
|
127
|
+
|
|
@@ -4,7 +4,7 @@ python-inspector - inspect Python packages dependencies and metadata
|
|
|
4
4
|
|
|
5
5
|
Copyright (c) nexB Inc. and others.
|
|
6
6
|
SPDX-License-Identifier: Apache-2.0
|
|
7
|
-
Homepage: https://github.com/
|
|
7
|
+
Homepage: https://github.com/aboutcode-org/python-inspector and https://www.aboutcode.org/
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
``python-inspector`` is a collection of utilities to:
|
|
@@ -36,7 +36,7 @@ Testing
|
|
|
36
36
|
pytest -vvs
|
|
37
37
|
|
|
38
38
|
- These are live tests to regenrate the tests with updated data run::
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
PYINSP_REGEN_TEST_FIXTURES=yes pytest -vvs
|
|
41
41
|
|
|
42
42
|
Usage
|
|
@@ -44,7 +44,7 @@ Usage
|
|
|
44
44
|
|
|
45
45
|
- Install with pip::
|
|
46
46
|
|
|
47
|
-
pip install git+https://github.com/
|
|
47
|
+
pip install git+https://github.com/aboutcode-org/python-inspector
|
|
48
48
|
|
|
49
49
|
- Run the command line utility with::
|
|
50
50
|
|
|
@@ -71,5 +71,5 @@ Its companion libraries are:
|
|
|
71
71
|
installed site-packages and their metadata formats.
|
|
72
72
|
|
|
73
73
|
- ``packageurl-python`` to use Package URL to reference Python packages
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
|
|
75
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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: ubuntu20_cpython
|
|
11
|
+
image_name: ubuntu-20.04
|
|
12
|
+
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
13
|
+
test_suites:
|
|
14
|
+
all: venv/bin/pytest -n 2 -vvs --reruns 2
|
|
15
|
+
|
|
16
|
+
- template: etc/ci/azure-posix.yml
|
|
17
|
+
parameters:
|
|
18
|
+
job_name: ubuntu22_cpython
|
|
19
|
+
image_name: ubuntu-22.04
|
|
20
|
+
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
21
|
+
test_suites:
|
|
22
|
+
all: venv/bin/pytest -n 2 -vvs --reruns 2
|
|
23
|
+
|
|
24
|
+
- template: etc/ci/azure-posix.yml
|
|
25
|
+
parameters:
|
|
26
|
+
job_name: macos12_cpython
|
|
27
|
+
image_name: macOS-12
|
|
28
|
+
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
29
|
+
test_suites:
|
|
30
|
+
all: venv/bin/pytest -n 2 -vvs --reruns 2
|
|
31
|
+
|
|
32
|
+
- template: etc/ci/azure-posix.yml
|
|
33
|
+
parameters:
|
|
34
|
+
job_name: macos13_cpython
|
|
35
|
+
image_name: macos-13
|
|
36
|
+
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
37
|
+
test_suites:
|
|
38
|
+
all: venv/bin/pytest -n 2 -vvs --reruns 2
|
|
39
|
+
|
|
40
|
+
- template: etc/ci/azure-win.yml
|
|
41
|
+
parameters:
|
|
42
|
+
job_name: win2019_cpython
|
|
43
|
+
image_name: windows-2019
|
|
44
|
+
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
45
|
+
test_suites:
|
|
46
|
+
all: venv\Scripts\pytest -n 2 -vvs --reruns 2
|
|
47
|
+
|
|
48
|
+
- template: etc/ci/azure-win.yml
|
|
49
|
+
parameters:
|
|
50
|
+
job_name: win2022_cpython
|
|
51
|
+
image_name: windows-2022
|
|
52
|
+
python_versions: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
53
|
+
test_suites:
|
|
54
|
+
all: venv\Scripts\pytest -n 2 -vvs --reruns 2
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# Copyright (c) nexB Inc. and others. All rights reserved.
|
|
4
4
|
# SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
6
|
-
# See https://github.com/
|
|
6
|
+
# See https://github.com/aboutcode-org/ for support or download.
|
|
7
7
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
8
8
|
#
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@rem Copyright (c) nexB Inc. and others. All rights reserved.
|
|
5
5
|
@rem SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
@rem See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
7
|
-
@rem See https://github.com/
|
|
7
|
+
@rem See https://github.com/aboutcode-org/ for support or download.
|
|
8
8
|
@rem See https://aboutcode.org for more information about nexB OSS projects.
|
|
9
9
|
|
|
10
10
|
|
|
@@ -161,13 +161,13 @@ Another example could be https://github.com/digitalocean/sample-django
|
|
|
161
161
|
|
|
162
162
|
We use the latest main branch from python-inspector and scancode-toolkit 31.0.0rc2
|
|
163
163
|
installed on Linux with Python 3.8 using the release tarball from:
|
|
164
|
-
https://github.com/
|
|
164
|
+
https://github.com/aboutcode-org/scancode-toolkit/releases/tag/v31.0.0rc2
|
|
165
165
|
|
|
166
166
|
ScanCode setup::
|
|
167
167
|
|
|
168
168
|
mkdir -p ~/tmp/pyinsp-example/tools
|
|
169
169
|
cd ~/tmp/pyinsp-example/tools
|
|
170
|
-
wget https://github.com/
|
|
170
|
+
wget https://github.com/aboutcode-org/scancode-toolkit/releases/download/v31.0.0rc2/scancode-toolkit-31.0.0rc2_py38-linux.tar.xz
|
|
171
171
|
tar -xf scancode-toolkit-31.0.0rc2_py38-linux.tar.xz
|
|
172
172
|
cd scancode-toolkit-31.0.0rc2/
|
|
173
173
|
./scancode --help
|
|
@@ -175,7 +175,7 @@ ScanCode setup::
|
|
|
175
175
|
python-inspector setup::
|
|
176
176
|
|
|
177
177
|
cd ~/tmp/pyinsp-example/tools
|
|
178
|
-
git clone https://github.com/
|
|
178
|
+
git clone https://github.com/aboutcode-org/python-inspector
|
|
179
179
|
python3.8 -m venv venv
|
|
180
180
|
source venv/bin/activate
|
|
181
181
|
pip install --upgrade pip setuptools wheel
|
|
@@ -6,7 +6,7 @@ license = Apache-2.0
|
|
|
6
6
|
description = python-inspector is is a collection of utilities to collect PyPI package metadata and resolve packages dependencies.
|
|
7
7
|
long_description = file:README.rst
|
|
8
8
|
long_description_content_type = text/x-rst
|
|
9
|
-
url = https://github.com/
|
|
9
|
+
url = https://github.com/aboutcode-org/python-inspector
|
|
10
10
|
|
|
11
11
|
author = nexB. Inc. and others
|
|
12
12
|
author_email = info@aboutcode.org
|
|
@@ -4,7 +4,7 @@ license = Apache-2.0
|
|
|
4
4
|
description = python-inspector is is a collection of utilities to collect PyPI package metadata and resolve packages dependencies.
|
|
5
5
|
long_description = file:README.rst
|
|
6
6
|
long_description_content_type = text/x-rst
|
|
7
|
-
url = https://github.com/
|
|
7
|
+
url = https://github.com/aboutcode-org/python-inspector
|
|
8
8
|
author = nexB. Inc. and others
|
|
9
9
|
author_email = info@aboutcode.org
|
|
10
10
|
classifiers =
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
# ScanCode is a trademark of nexB Inc.
|
|
4
4
|
# SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
6
|
-
# See https://github.com/
|
|
6
|
+
# See https://github.com/aboutcode-org/scancode-toolkit for support or download.
|
|
7
7
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
8
8
|
#
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# ScanCode is a trademark of nexB Inc.
|
|
4
4
|
# SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
6
|
-
# See https://github.com/
|
|
6
|
+
# See https://github.com/aboutcode-org/scancode-toolkit for support or download.
|
|
7
7
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
8
8
|
#
|
|
9
9
|
|
|
@@ -373,7 +373,7 @@ class DependentPackage(ModelMixin):
|
|
|
373
373
|
'either from the datafile or collected from another source. Some '
|
|
374
374
|
'lockfiles for Composer or Cargo contain extra dependency data.'
|
|
375
375
|
)
|
|
376
|
-
|
|
376
|
+
|
|
377
377
|
extra_data = Mapping(
|
|
378
378
|
label='extra data',
|
|
379
379
|
help='A mapping of arbitrary extra data.',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# ScanCode is a trademark of nexB Inc.
|
|
5
5
|
# SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
7
|
-
# See https://github.com/
|
|
7
|
+
# See https://github.com/aboutcode-org/scancode-toolkit for support or download.
|
|
8
8
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
9
9
|
#
|
|
10
10
|
|
|
@@ -457,7 +457,7 @@ def parse_metadata(location, datasource_id, package_type):
|
|
|
457
457
|
name=name,
|
|
458
458
|
version=version,
|
|
459
459
|
description=get_description(metainfo=meta, location=str(location)),
|
|
460
|
-
#TODO: https://github.com/
|
|
460
|
+
#TODO: https://github.com/aboutcode-org/scancode-toolkit/issues/3014
|
|
461
461
|
declared_license=get_declared_license(meta),
|
|
462
462
|
keywords=get_keywords(meta),
|
|
463
463
|
parties=get_parties(meta),
|
|
@@ -781,7 +781,7 @@ class SetupCfgHandler(BaseExtractedPythonLayout):
|
|
|
781
781
|
def parse_reqs(cls, reqs, scope):
|
|
782
782
|
"""
|
|
783
783
|
Parse a list of requirements and return a list of dependencies
|
|
784
|
-
"""
|
|
784
|
+
"""
|
|
785
785
|
dependent_packages = []
|
|
786
786
|
for req in reqs:
|
|
787
787
|
req_parsed = packaging.requirements.Requirement(str(req))
|
|
@@ -816,7 +816,7 @@ def get_resolved_purl(purl: PackageURL, specifiers: SpecifierSet):
|
|
|
816
816
|
return ResolvedPurl(
|
|
817
817
|
purl=purl,
|
|
818
818
|
is_resolved=is_resolved,
|
|
819
|
-
)
|
|
819
|
+
)
|
|
820
820
|
|
|
821
821
|
class PipfileHandler(BaseDependencyFileHandler):
|
|
822
822
|
datasource_id = 'pipfile'
|
|
@@ -918,7 +918,7 @@ def get_requirements_txt_dependencies(location, include_nested=False):
|
|
|
918
918
|
if isinstance(value, list):
|
|
919
919
|
extra_data[name].extend(value)
|
|
920
920
|
else:
|
|
921
|
-
extra_data[name] = value
|
|
921
|
+
extra_data[name] = value
|
|
922
922
|
dependent_packages = []
|
|
923
923
|
for req in req_file.requirements:
|
|
924
924
|
|
|
@@ -987,7 +987,7 @@ def can_process_dependent_package(dep: models.DependentPackage):
|
|
|
987
987
|
requirement_flags.pop("hash_options", None)
|
|
988
988
|
if not requirement_flags:
|
|
989
989
|
return True
|
|
990
|
-
# we can not process the requirement if it has any flag set
|
|
990
|
+
# we can not process the requirement if it has any flag set
|
|
991
991
|
# because this means it is not a standard specifier
|
|
992
992
|
# but rather some pip specific option of sorts
|
|
993
993
|
return not any(requirement_flags.values())
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Copyright (c) Gram and others.
|
|
3
3
|
# This code is copied and modified from dephell_setuptools https://github.com/pypa/setuptools
|
|
4
4
|
# SPDX-License-Identifier: MIT
|
|
5
|
-
# See https://github.com/
|
|
5
|
+
# See https://github.com/aboutcode-org/scancode-toolkit for support or download.
|
|
6
6
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
7
7
|
#
|
|
8
8
|
|
|
@@ -192,11 +192,11 @@ def clean_setup(data):
|
|
|
192
192
|
Return a cleaned mapping from a setup ``data`` mapping.
|
|
193
193
|
"""
|
|
194
194
|
result = {k: v
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
195
|
+
for k, v in data.items()
|
|
196
|
+
if k in FIELDS
|
|
197
|
+
and (v and v is not False)
|
|
198
|
+
and str(v) != 'UNKNOWN'
|
|
199
|
+
}
|
|
200
200
|
|
|
201
201
|
# split keywords in words
|
|
202
202
|
keywords = result.get('keywords')
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# ScanCode is a trademark of nexB Inc.
|
|
4
4
|
# SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
6
|
-
# See https://github.com/
|
|
6
|
+
# See https://github.com/aboutcode-org/scancode-toolkit for support or download.
|
|
7
7
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
8
8
|
#
|
|
9
9
|
|
|
@@ -123,7 +123,7 @@ def build_description(summary, description):
|
|
|
123
123
|
description = summary
|
|
124
124
|
else:
|
|
125
125
|
if summary and summary not in description:
|
|
126
|
-
description = '\n'.join([summary
|
|
126
|
+
description = '\n'.join([summary, description])
|
|
127
127
|
|
|
128
128
|
return description
|
|
129
129
|
|
|
@@ -142,7 +142,8 @@ def combine_expressions(
|
|
|
142
142
|
license ``expressions`` strings or LicenseExpression objects.
|
|
143
143
|
"""
|
|
144
144
|
if not licensing:
|
|
145
|
-
raise Exception(
|
|
145
|
+
raise Exception(
|
|
146
|
+
'combine_expressions: cannot combine combine_expressions without license_expression package.')
|
|
146
147
|
return expressions and str(le_combine_expressions(expressions, relation, unique, licensing)) or None
|
|
147
148
|
|
|
148
149
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# ScanCode is a trademark of nexB Inc.
|
|
4
4
|
# SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
6
|
-
# See https://github.com/
|
|
6
|
+
# See https://github.com/aboutcode-org/scancode-toolkit for support or download.
|
|
7
7
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
8
8
|
#
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# ScanCode is a trademark of nexB Inc.
|
|
6
6
|
# SPDX-License-Identifier: Apache-2.0
|
|
7
7
|
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
8
|
-
# See https://
|
|
8
|
+
# See https://aboutcode-orgnexB/python-inspector for support or download.
|
|
9
9
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
10
10
|
#
|
|
11
11
|
|
|
@@ -64,7 +64,8 @@ class Resolution(NamedTuple):
|
|
|
64
64
|
# clean file paths
|
|
65
65
|
for file in files:
|
|
66
66
|
path = file["path"]
|
|
67
|
-
file["path"] = utils.remove_test_data_dir_variable_prefix(
|
|
67
|
+
file["path"] = utils.remove_test_data_dir_variable_prefix(
|
|
68
|
+
path=path)
|
|
68
69
|
return {
|
|
69
70
|
"files": files,
|
|
70
71
|
"packages": [package for package in self.packages],
|
|
@@ -151,16 +152,20 @@ def resolve_dependencies(
|
|
|
151
152
|
|
|
152
153
|
# requirements
|
|
153
154
|
for req_file in requirement_files:
|
|
154
|
-
deps = dependencies.get_dependencies_from_requirements(
|
|
155
|
+
deps = dependencies.get_dependencies_from_requirements(
|
|
156
|
+
requirements_file=req_file)
|
|
155
157
|
for extra_data in dependencies.get_extra_data_from_requirements(requirements_file=req_file):
|
|
156
|
-
index_urls = (
|
|
157
|
-
|
|
158
|
+
index_urls = (
|
|
159
|
+
*index_urls, *tuple(extra_data.get("extra_index_urls") or []))
|
|
160
|
+
index_urls = (
|
|
161
|
+
*index_urls, *tuple(extra_data.get("index_url") or []))
|
|
158
162
|
direct_dependencies.extend(deps)
|
|
159
163
|
package_data = [
|
|
160
164
|
pkg_data.to_dict() for pkg_data in PipRequirementsFileHandler.parse(location=req_file)
|
|
161
165
|
]
|
|
162
166
|
if generic_paths:
|
|
163
|
-
req_file = utils.remove_test_data_dir_variable_prefix(
|
|
167
|
+
req_file = utils.remove_test_data_dir_variable_prefix(
|
|
168
|
+
path=req_file)
|
|
164
169
|
|
|
165
170
|
files.append(
|
|
166
171
|
dict(
|
|
@@ -213,13 +218,15 @@ def resolve_dependencies(
|
|
|
213
218
|
files=[setup_py_file],
|
|
214
219
|
analyze_setup_py_insecurely=analyze_setup_py_insecurely,
|
|
215
220
|
)
|
|
216
|
-
setup_py_file_deps = list(
|
|
221
|
+
setup_py_file_deps = list(
|
|
222
|
+
get_dependent_packages_from_reqs(reqs))
|
|
217
223
|
direct_dependencies.extend(setup_py_file_deps)
|
|
218
224
|
|
|
219
225
|
package_data.dependencies = setup_py_file_deps
|
|
220
226
|
file_package_data = [package_data.to_dict()]
|
|
221
227
|
if generic_paths:
|
|
222
|
-
setup_py_file = utils.remove_test_data_dir_variable_prefix(
|
|
228
|
+
setup_py_file = utils.remove_test_data_dir_variable_prefix(
|
|
229
|
+
path=setup_py_file)
|
|
223
230
|
files.append(
|
|
224
231
|
dict(
|
|
225
232
|
type="file",
|
|
@@ -260,9 +267,11 @@ def resolve_dependencies(
|
|
|
260
267
|
else:
|
|
261
268
|
credentials = None
|
|
262
269
|
if parsed_netrc:
|
|
263
|
-
login, password = utils.get_netrc_auth(
|
|
270
|
+
login, password = utils.get_netrc_auth(
|
|
271
|
+
index_url, parsed_netrc)
|
|
264
272
|
credentials = (
|
|
265
|
-
dict(login=login,
|
|
273
|
+
dict(login=login,
|
|
274
|
+
password=password) if login and password else None
|
|
266
275
|
)
|
|
267
276
|
repo = utils_pypi.PypiSimpleRepository(
|
|
268
277
|
index_url=index_url,
|
|
@@ -382,7 +391,8 @@ def get_resolved_dependencies(
|
|
|
382
391
|
),
|
|
383
392
|
reporter=BaseReporter(),
|
|
384
393
|
)
|
|
385
|
-
resolver_results = resolver.resolve(
|
|
394
|
+
resolver_results = resolver.resolve(
|
|
395
|
+
requirements=requirements, max_rounds=max_rounds)
|
|
386
396
|
package_list = get_package_list(results=resolver_results)
|
|
387
397
|
if pdt_output:
|
|
388
398
|
return (format_pdt_tree(resolver_results), package_list)
|
|
@@ -401,7 +411,7 @@ def get_requirements_from_direct_dependencies(
|
|
|
401
411
|
for dependency in direct_dependencies:
|
|
402
412
|
# FIXME We are skipping editable requirements
|
|
403
413
|
# and other pip options for now
|
|
404
|
-
# https://github.com/
|
|
414
|
+
# https://github.com/aboutcode-org/python-inspector/issues/41
|
|
405
415
|
if not can_process_dependent_package(dependency):
|
|
406
416
|
continue
|
|
407
417
|
req = Requirement(requirement_string=dependency.extracted_requirement)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# ScanCode is a trademark of nexB Inc.
|
|
4
4
|
# SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
6
|
-
# See https://github.com/
|
|
6
|
+
# See https://github.com/aboutcode-org/scancode-toolkit for support or download.
|
|
7
7
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
8
8
|
#
|
|
9
9
|
|
|
@@ -21,12 +21,13 @@ class FileOptionType(click.File):
|
|
|
21
21
|
|
|
22
22
|
def convert(self, value, param, ctx):
|
|
23
23
|
known_opts = set(
|
|
24
|
-
chain.from_iterable(
|
|
24
|
+
chain.from_iterable(
|
|
25
|
+
p.opts for p in ctx.command.params if isinstance(p, click.Option))
|
|
25
26
|
)
|
|
26
27
|
if value in known_opts:
|
|
27
28
|
self.fail(
|
|
28
29
|
"Illegal file name conflicting with an option name: "
|
|
29
|
-
f"{
|
|
30
|
+
f"{os.fsdecode(value)}. "
|
|
30
31
|
'Use the special "-" file name to print results on screen/stdout.',
|
|
31
32
|
param,
|
|
32
33
|
ctx,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# ScanCode is a trademark of nexB Inc.
|
|
6
6
|
# SPDX-License-Identifier: Apache-2.0
|
|
7
7
|
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
8
|
-
# See https://github.com/
|
|
8
|
+
# See https://github.com/aboutcode-org/python-inspector for support or download.
|
|
9
9
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
10
10
|
#
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# ScanCode is a trademark of nexB Inc.
|
|
6
6
|
# SPDX-License-Identifier: Apache-2.0
|
|
7
7
|
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
8
|
-
# See https://github.com/
|
|
8
|
+
# See https://github.com/aboutcode-org/python-inspector for support or download.
|
|
9
9
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
10
10
|
#
|
|
11
11
|
|
|
@@ -53,7 +53,8 @@ def get_pypi_data_from_purl(
|
|
|
53
53
|
project_urls = info.get("project_urls") or {}
|
|
54
54
|
code_view_url = get_pypi_codeview_url(project_urls)
|
|
55
55
|
bug_tracking_url = get_pypi_bugtracker_url(project_urls)
|
|
56
|
-
python_version = get_python_version_from_env_tag(
|
|
56
|
+
python_version = get_python_version_from_env_tag(
|
|
57
|
+
python_version=environment.python_version)
|
|
57
58
|
valid_distribution_urls = []
|
|
58
59
|
|
|
59
60
|
valid_distribution_urls.append(
|