python-inspector 0.10.0__tar.gz → 0.11.0__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.10.0 → python-inspector-0.11.0}/.gitignore +1 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/CHANGELOG.rst +7 -0
- {python-inspector-0.10.0/src/python_inspector.egg-info → python-inspector-0.11.0}/PKG-INFO +2 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/azure-pipelines.yml +2 -10
- {python-inspector-0.10.0 → python-inspector-0.11.0}/setup.cfg +1 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/api.py +7 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/resolution.py +11 -3
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/resolve_cli.py +6 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/utils.py +3 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0/src/python_inspector.egg-info}/PKG-INFO +2 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector.egg-info/SOURCES.txt +2 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector.egg-info/requires.txt +1 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/azure-devops.req-310-expected.json +186 -182
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/azure-devops.req-38-expected.json +186 -182
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/default-url-expected.json +1 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/environment-marker-test-requirements.txt-expected.json +1 -1
- python-inspector-0.11.0/tests/data/error-requirements.txt +2 -0
- python-inspector-0.11.0/tests/data/example-requirements-ignore-errors-expected.json +894 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/frozen-requirements.txt-expected.json +24 -24
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/insecure-setup/setup.py-expected.json +1 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/insecure-setup-2/setup.py-expected.json +64 -64
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/pdt-requirements.txt-expected.json +1 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/pinned-pdt-requirements.txt-expected.json +56 -70
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/pinned-requirements.txt-expected.json +59 -73
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/prefer-source-expected.json +1 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/requirements-test.txt +2 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup/no-direct-dependencies-setup.py-expected.json +1 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup/simple-setup.py-expected.json +1 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup/spdx-setup.py-expected.json +1 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/single-url-except-simple-expected.json +95 -109
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/single-url-expected.json +1 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/test-api-expected.json +39 -53
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/test-api-pdt-expected.json +37 -51
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/test-api-with-prefer-source.json +22 -29
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/test-api-with-python-311.json +22 -29
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/test-api-with-requirement-file.json +24 -24
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/tilde_req-expected.json +1 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_cli.py +22 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_requirement_parsing.py +2 -1
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_resolution.py +13 -13
- {python-inspector-0.10.0 → python-inspector-0.11.0}/.gitattributes +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/.github/workflows/docs-ci.yml +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/.github/workflows/pypi-release.yml +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/.readthedocs.yml +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/AUTHORS.rst +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/CODE_OF_CONDUCT.rst +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/MANIFEST.in +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/Makefile +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/NOTICE +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/README.rst +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/apache-2.0.LICENSE +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/configure +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/configure.bat +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/docs/Makefile +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/docs/make.bat +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/docs/scripts/doc8_style_check.sh +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/docs/scripts/sphinx_build_link_check.sh +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/docs/source/_static/theme_overrides.css +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/docs/source/conf.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/docs/source/dependencies-design.rst +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/docs/source/index.rst +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/docs/source/test-protocol.rst +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/ci/azure-container-deb.yml +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/ci/azure-container-rpm.yml +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/ci/azure-posix.yml +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/ci/azure-win.yml +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/ci/install_sudo.sh +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/ci/macports-ci +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/ci/macports-ci.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/ci/mit.LICENSE +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/README.rst +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/check_thirdparty.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/fetch_thirdparty.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/gen_pypi_simple.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/gen_pypi_simple.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/gen_pypi_simple.py.NOTICE +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/gen_requirements.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/gen_requirements_dev.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/requirements.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/test_utils_pip_compatibility_tags.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/test_utils_pip_compatibility_tags.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/test_utils_pypi_supported_tags.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/test_utils_pypi_supported_tags.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/utils_dejacode.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/utils_pip_compatibility_tags.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/utils_pip_compatibility_tags.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/utils_pypi_supported_tags.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/utils_pypi_supported_tags.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/utils_requirements.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/utils_thirdparty.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/etc/scripts/utils_thirdparty.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/pyproject.toml +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/requirements-dev.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/requirements.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/requirements_builder.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/setup.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/_packagedcode/__init__.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/_packagedcode/models.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/_packagedcode/pypi.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/_packagedcode/pypi.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/_packagedcode/pypi.py.NOTICE +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/_packagedcode/pypi_setup_py.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/_packagedcode/pypi_setup_py.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/_packagedcode/pypi_setup_py.py.LICENSE +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/_packagedcode/utils.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/__init__.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/cli_utils.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/dependencies.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/error.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/package_data.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/resolution.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/resolution.py.LICENSE +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/setup_py_live_eval.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/setup_py_live_eval.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/setup_py_live_eval.py.LICENSE +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/utils_pip_compatibility_tags.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/utils_pip_compatibility_tags.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/utils_pypi.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/utils_pypi.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/utils_pypi_supported_tags.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector/utils_pypi_supported_tags.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector.egg-info/dependency_links.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector.egg-info/entry_points.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector.egg-info/not-zip-safe +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector.egg-info/top_level.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/conftest.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/azure-devops.req.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/environment-marker-test-requirements.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/fetch_links_test.html +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/frozen-requirements.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/insecure-setup/rdflib/__init__.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/insecure-setup/setup.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/insecure-setup-2/setup.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/insecure-setup-2/testpkh/__init__.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/other_req.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/parse-reqs-with-setup_requires-and-python-requires.json +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/parse-reqs.json +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/partial-setup.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/pdt-requirements.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/pinned-pdt-requirements.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/pinned-requirements.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/psycopg2-links-expected.json +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/psycopg2.html +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/recursive_requirements/com.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/recursive_requirements/r.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/relative-links-expected.json +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/req.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/requirements.devel.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/secure-setup/setup-emptyrequires.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/secure-setup/setup-norequires.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/secure-setup/setup-requires.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup/no-direct-dependencies-setup.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup/simple-setup.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup/spdx-setup.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup-distutils-asnames.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup-distutils-qualifiedfct.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup-distutils.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup-qualifiedfct.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup.cfg +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup.txt +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup_if_main.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/setup_with_setup_requires_and_python_requires.cfg +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/test-api-with-partial-setup-py.json +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/test-api-with-recursive-requirement-file.json +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/test-commented.netrc +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/data/test.netrc +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_api.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_codestyle.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_packagecode_pypi.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_pypi.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_setup_py_live_eval.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_setup_py_live_eval.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_setup_py_live_eval.py.LICENSE +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_setup_py_live_eval_cli.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_setup_py_live_eval_cli.py.LICENSE +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_setup_py_parsing.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_skeleton_codestyle.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_utils.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_utils_pip_compatibility_tags.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_utils_pip_compatibility_tags.py.ABOUT +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_utils_pypi.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_utils_pypi_supported_tags.py +0 -0
- {python-inspector-0.10.0 → python-inspector-0.11.0}/tests/test_utils_pypi_supported_tags.py.ABOUT +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-inspector
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: python-inspector is is a collection of utilities to collect PyPI package metadata and resolve packages dependencies.
|
|
5
5
|
Home-page: https://github.com/nexB/python-inspector
|
|
6
6
|
Author: nexB. Inc. and others
|
|
@@ -43,6 +43,7 @@ Requires-Dist: pycodestyle>=2.8.0; extra == "testing"
|
|
|
43
43
|
Requires-Dist: twine; extra == "testing"
|
|
44
44
|
Requires-Dist: black; extra == "testing"
|
|
45
45
|
Requires-Dist: isort; extra == "testing"
|
|
46
|
+
Requires-Dist: pytest-rerunfailures; extra == "testing"
|
|
46
47
|
Provides-Extra: docs
|
|
47
48
|
Requires-Dist: Sphinx>=5.0.2; extra == "docs"
|
|
48
49
|
Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "docs"
|
|
@@ -36,21 +36,13 @@ jobs:
|
|
|
36
36
|
job_name: macos12_cpython
|
|
37
37
|
image_name: macOS-12
|
|
38
38
|
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
|
|
39
|
-
test_suites:
|
|
40
|
-
all: venv/bin/pytest -n 2 -vvs
|
|
41
|
-
|
|
42
|
-
- template: etc/ci/azure-posix.yml
|
|
43
|
-
parameters:
|
|
44
|
-
job_name: macos13_cpython
|
|
45
|
-
image_name: macOS-13
|
|
46
|
-
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
|
|
47
39
|
test_suites:
|
|
48
40
|
all: venv/bin/pytest -n 2 -vvs --reruns 2
|
|
49
41
|
|
|
50
42
|
- template: etc/ci/azure-posix.yml
|
|
51
43
|
parameters:
|
|
52
|
-
job_name:
|
|
53
|
-
image_name: macos-
|
|
44
|
+
job_name: macos13_cpython
|
|
45
|
+
image_name: macos-13
|
|
54
46
|
python_versions: ['3.7', '3.8', '3.9', '3.10', '3.11']
|
|
55
47
|
test_suites:
|
|
56
48
|
all: venv/bin/pytest -n 2 -vvs --reruns 2
|
|
@@ -65,7 +65,6 @@ class Resolution(NamedTuple):
|
|
|
65
65
|
for file in files:
|
|
66
66
|
path = file["path"]
|
|
67
67
|
file["path"] = utils.remove_test_data_dir_variable_prefix(path=path)
|
|
68
|
-
|
|
69
68
|
return {
|
|
70
69
|
"files": files,
|
|
71
70
|
"packages": [package for package in self.packages],
|
|
@@ -90,6 +89,7 @@ def resolve_dependencies(
|
|
|
90
89
|
prefer_source=False,
|
|
91
90
|
printer=print,
|
|
92
91
|
generic_paths=False,
|
|
92
|
+
ignore_errors=False,
|
|
93
93
|
):
|
|
94
94
|
"""
|
|
95
95
|
Resolve the dependencies for the package requirements listed in one or
|
|
@@ -154,6 +154,7 @@ def resolve_dependencies(
|
|
|
154
154
|
deps = dependencies.get_dependencies_from_requirements(requirements_file=req_file)
|
|
155
155
|
for extra_data in dependencies.get_extra_data_from_requirements(requirements_file=req_file):
|
|
156
156
|
index_urls = (*index_urls, *tuple(extra_data.get("extra_index_urls") or []))
|
|
157
|
+
index_urls = (*index_urls, *tuple(extra_data.get("index_url") or []))
|
|
157
158
|
direct_dependencies.extend(deps)
|
|
158
159
|
package_data = [
|
|
159
160
|
pkg_data.to_dict() for pkg_data in PipRequirementsFileHandler.parse(location=req_file)
|
|
@@ -284,6 +285,7 @@ def resolve_dependencies(
|
|
|
284
285
|
max_rounds=max_rounds,
|
|
285
286
|
pdt_output=pdt_output,
|
|
286
287
|
analyze_setup_py_insecurely=analyze_setup_py_insecurely,
|
|
288
|
+
ignore_errors=ignore_errors,
|
|
287
289
|
)
|
|
288
290
|
|
|
289
291
|
packages = []
|
|
@@ -321,6 +323,7 @@ def resolve(
|
|
|
321
323
|
max_rounds=200000,
|
|
322
324
|
pdt_output=False,
|
|
323
325
|
analyze_setup_py_insecurely=False,
|
|
326
|
+
ignore_errors=False,
|
|
324
327
|
):
|
|
325
328
|
"""
|
|
326
329
|
Resolve dependencies given a ``direct_dependencies`` list of
|
|
@@ -346,6 +349,7 @@ def resolve(
|
|
|
346
349
|
max_rounds=max_rounds,
|
|
347
350
|
pdt_output=pdt_output,
|
|
348
351
|
analyze_setup_py_insecurely=analyze_setup_py_insecurely,
|
|
352
|
+
ignore_errors=ignore_errors,
|
|
349
353
|
)
|
|
350
354
|
|
|
351
355
|
return resolved_dependencies, packages
|
|
@@ -359,6 +363,7 @@ def get_resolved_dependencies(
|
|
|
359
363
|
max_rounds: int = 200000,
|
|
360
364
|
pdt_output: bool = False,
|
|
361
365
|
analyze_setup_py_insecurely: bool = False,
|
|
366
|
+
ignore_errors: bool = False,
|
|
362
367
|
):
|
|
363
368
|
"""
|
|
364
369
|
Return resolved dependencies of a ``requirements`` list of Requirement for
|
|
@@ -373,6 +378,7 @@ def get_resolved_dependencies(
|
|
|
373
378
|
environment=environment,
|
|
374
379
|
repos=repos,
|
|
375
380
|
analyze_setup_py_insecurely=analyze_setup_py_insecurely,
|
|
381
|
+
ignore_errors=ignore_errors,
|
|
376
382
|
),
|
|
377
383
|
reporter=BaseReporter(),
|
|
378
384
|
)
|
|
@@ -352,7 +352,11 @@ DEFAULT_ENVIRONMENT = utils_pypi.Environment.from_pyver_and_os(
|
|
|
352
352
|
|
|
353
353
|
class PythonInputProvider(AbstractProvider):
|
|
354
354
|
def __init__(
|
|
355
|
-
self,
|
|
355
|
+
self,
|
|
356
|
+
environment=DEFAULT_ENVIRONMENT,
|
|
357
|
+
repos=tuple(),
|
|
358
|
+
analyze_setup_py_insecurely=True,
|
|
359
|
+
ignore_errors=False,
|
|
356
360
|
):
|
|
357
361
|
self.environment = environment
|
|
358
362
|
self.environment_marker = get_environment_marker_from_environment(self.environment)
|
|
@@ -361,6 +365,7 @@ class PythonInputProvider(AbstractProvider):
|
|
|
361
365
|
self.dependencies_by_purl = {}
|
|
362
366
|
self.wheel_or_sdist_by_package = {}
|
|
363
367
|
self.analyze_setup_py_insecurely = analyze_setup_py_insecurely
|
|
368
|
+
self.ignore_errors = ignore_errors
|
|
364
369
|
|
|
365
370
|
def identify(self, requirement_or_candidate: Union[Candidate, Requirement]) -> str:
|
|
366
371
|
"""Given a requirement, return an identifier for it. Overridden."""
|
|
@@ -583,8 +588,11 @@ class PythonInputProvider(AbstractProvider):
|
|
|
583
588
|
versions.extend(self.get_versions_for_package(name=name, repo=repo))
|
|
584
589
|
|
|
585
590
|
if not versions:
|
|
586
|
-
|
|
587
|
-
|
|
591
|
+
if self.ignore_errors:
|
|
592
|
+
yield from [Candidate("NonExistant", "0.0.0", "")]
|
|
593
|
+
return
|
|
594
|
+
else:
|
|
595
|
+
raise NoVersionsFound(f"This package does not exist: {name}")
|
|
588
596
|
yield from self.get_candidates(
|
|
589
597
|
all_versions=versions,
|
|
590
598
|
requirements=requirements,
|
|
@@ -19,7 +19,7 @@ from python_inspector.utils import write_output_in_file
|
|
|
19
19
|
|
|
20
20
|
TRACE = False
|
|
21
21
|
|
|
22
|
-
__version__ = "0.
|
|
22
|
+
__version__ = "0.11.0"
|
|
23
23
|
|
|
24
24
|
DEFAULT_PYTHON_VERSION = "38"
|
|
25
25
|
PYPI_SIMPLE_URL = "https://pypi.org/simple"
|
|
@@ -173,6 +173,9 @@ def print_version(ctx, param, value):
|
|
|
173
173
|
callback=print_version,
|
|
174
174
|
help="Show the version and exit.",
|
|
175
175
|
)
|
|
176
|
+
@click.option(
|
|
177
|
+
"--ignore-errors", is_flag=True, default=False, help="Ignore errors and continue execution."
|
|
178
|
+
)
|
|
176
179
|
@click.help_option("-h", "--help")
|
|
177
180
|
@click.option(
|
|
178
181
|
"--generic-paths",
|
|
@@ -199,6 +202,7 @@ def resolve_dependencies(
|
|
|
199
202
|
prefer_source=False,
|
|
200
203
|
verbose=TRACE,
|
|
201
204
|
generic_paths=False,
|
|
205
|
+
ignore_errors=False,
|
|
202
206
|
):
|
|
203
207
|
"""
|
|
204
208
|
Resolve the dependencies for the package requirements listed in one or
|
|
@@ -266,6 +270,7 @@ def resolve_dependencies(
|
|
|
266
270
|
analyze_setup_py_insecurely=analyze_setup_py_insecurely,
|
|
267
271
|
printer=click.secho,
|
|
268
272
|
prefer_source=prefer_source,
|
|
273
|
+
ignore_errors=ignore_errors,
|
|
269
274
|
generic_paths=generic_paths,
|
|
270
275
|
)
|
|
271
276
|
|
|
@@ -79,8 +79,10 @@ def remove_test_data_dir_variable_prefix(path, placeholder="<file>"):
|
|
|
79
79
|
Return a clean path, removing variable test path prefix or using a ``placeholder``.
|
|
80
80
|
Used for testing to ensure that results are stable across runs.
|
|
81
81
|
"""
|
|
82
|
+
path = path.replace("\\", "/")
|
|
82
83
|
if "tests/data/" in path:
|
|
83
84
|
_junk, test_dir, cleaned = path.partition("tests/data/")
|
|
84
|
-
|
|
85
|
+
cleaned = f"{test_dir}{cleaned}"
|
|
86
|
+
return cleaned.replace("\\", "/")
|
|
85
87
|
else:
|
|
86
88
|
return placeholder
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-inspector
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: python-inspector is is a collection of utilities to collect PyPI package metadata and resolve packages dependencies.
|
|
5
5
|
Home-page: https://github.com/nexB/python-inspector
|
|
6
6
|
Author: nexB. Inc. and others
|
|
@@ -43,6 +43,7 @@ Requires-Dist: pycodestyle>=2.8.0; extra == "testing"
|
|
|
43
43
|
Requires-Dist: twine; extra == "testing"
|
|
44
44
|
Requires-Dist: black; extra == "testing"
|
|
45
45
|
Requires-Dist: isort; extra == "testing"
|
|
46
|
+
Requires-Dist: pytest-rerunfailures; extra == "testing"
|
|
46
47
|
Provides-Extra: docs
|
|
47
48
|
Requires-Dist: Sphinx>=5.0.2; extra == "docs"
|
|
48
49
|
Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "docs"
|
{python-inspector-0.10.0 → python-inspector-0.11.0}/src/python_inspector.egg-info/SOURCES.txt
RENAMED
|
@@ -121,6 +121,8 @@ tests/data/azure-devops.req.txt
|
|
|
121
121
|
tests/data/default-url-expected.json
|
|
122
122
|
tests/data/environment-marker-test-requirements.txt
|
|
123
123
|
tests/data/environment-marker-test-requirements.txt-expected.json
|
|
124
|
+
tests/data/error-requirements.txt
|
|
125
|
+
tests/data/example-requirements-ignore-errors-expected.json
|
|
124
126
|
tests/data/fetch_links_test.html
|
|
125
127
|
tests/data/frozen-requirements.txt
|
|
126
128
|
tests/data/frozen-requirements.txt-expected.json
|