python-inspector 0.12.0__py3-none-any.whl → 0.13.1__py3-none-any.whl
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.
- _packagedcode/__init__.py +1 -1
- _packagedcode/models.py +2 -2
- _packagedcode/pypi.py +6 -6
- _packagedcode/pypi_setup_py.py +6 -6
- _packagedcode/utils.py +4 -3
- python_inspector/__init__.py +1 -1
- python_inspector/api.py +2 -2
- python_inspector/cli_utils.py +1 -1
- python_inspector/error.py +1 -1
- python_inspector/package_data.py +4 -1
- python_inspector/resolution.py +3 -3
- python_inspector/resolve_cli.py +4 -4
- python_inspector/utils.py +1 -1
- python_inspector/utils_pip_compatibility_tags.py.ABOUT +1 -1
- python_inspector/utils_pypi.py +6 -1
- python_inspector-0.13.1.dist-info/METADATA +240 -0
- python_inspector-0.13.1.dist-info/RECORD +39 -0
- {python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info}/WHEEL +1 -1
- {python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info/licenses}/CHANGELOG.rst +15 -0
- {python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info/licenses}/NOTICE +21 -2
- python_inspector-0.12.0.dist-info/METADATA +0 -127
- python_inspector-0.12.0.dist-info/RECORD +0 -39
- {python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info}/entry_points.txt +0 -0
- {python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info/licenses}/AUTHORS.rst +0 -0
- {python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info/licenses}/CODE_OF_CONDUCT.rst +0 -0
- {python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info/licenses}/apache-2.0.LICENSE +0 -0
- {python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info}/top_level.txt +0 -0
_packagedcode/__init__.py
CHANGED
|
@@ -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
|
#
|
_packagedcode/models.py
CHANGED
|
@@ -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.',
|
_packagedcode/pypi.py
CHANGED
|
@@ -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())
|
_packagedcode/pypi_setup_py.py
CHANGED
|
@@ -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')
|
_packagedcode/utils.py
CHANGED
|
@@ -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
|
|
python_inspector/__init__.py
CHANGED
|
@@ -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
|
|
python_inspector/api.py
CHANGED
|
@@ -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
|
|
|
@@ -401,7 +401,7 @@ def get_requirements_from_direct_dependencies(
|
|
|
401
401
|
for dependency in direct_dependencies:
|
|
402
402
|
# FIXME We are skipping editable requirements
|
|
403
403
|
# and other pip options for now
|
|
404
|
-
# https://github.com/
|
|
404
|
+
# https://github.com/aboutcode-org/python-inspector/issues/41
|
|
405
405
|
if not can_process_dependent_package(dependency):
|
|
406
406
|
continue
|
|
407
407
|
req = Requirement(requirement_string=dependency.extracted_requirement)
|
python_inspector/cli_utils.py
CHANGED
|
@@ -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
|
|
python_inspector/error.py
CHANGED
|
@@ -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
|
|
python_inspector/package_data.py
CHANGED
|
@@ -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
|
|
|
@@ -64,6 +64,8 @@ def get_pypi_data_from_purl(
|
|
|
64
64
|
)
|
|
65
65
|
)
|
|
66
66
|
|
|
67
|
+
valid_distribution_urls = [url for url in valid_distribution_urls if url]
|
|
68
|
+
|
|
67
69
|
# if prefer_source is True then only source distribution is used
|
|
68
70
|
# in case of no source distribution available then wheel is used
|
|
69
71
|
if not valid_distribution_urls or not prefer_source:
|
|
@@ -93,6 +95,7 @@ def get_pypi_data_from_purl(
|
|
|
93
95
|
api_data_url=api_url,
|
|
94
96
|
bug_tracking_url=bug_tracking_url,
|
|
95
97
|
code_view_url=code_view_url,
|
|
98
|
+
license_expression=info.get("license_expression"),
|
|
96
99
|
declared_license=get_declared_license(info),
|
|
97
100
|
download_url=dist_url,
|
|
98
101
|
size=url.get("size"),
|
python_inspector/resolution.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# SPDX-License-Identifier: ISC AND Apache-2.0
|
|
4
4
|
# derived and heavily modified from https://github.com/sarugaku/resolvelib
|
|
5
5
|
|
|
6
|
-
# See https://github.com/
|
|
6
|
+
# See https://github.com/aboutcode-org/python-inspector for support or download.
|
|
7
7
|
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
8
8
|
#
|
|
9
9
|
|
|
@@ -241,7 +241,7 @@ def get_requirements_from_dependencies(
|
|
|
241
241
|
|
|
242
242
|
# FIXME We are skipping editable requirements
|
|
243
243
|
# and other pip options for now
|
|
244
|
-
# https://github.com/
|
|
244
|
+
# https://github.com/aboutcode-org/python-inspector/issues/41
|
|
245
245
|
if can_process_dependent_package(dep):
|
|
246
246
|
yield Requirement(str(dep.extracted_requirement))
|
|
247
247
|
|
|
@@ -629,7 +629,7 @@ class PythonInputProvider(AbstractProvider):
|
|
|
629
629
|
Yield dependencies for the given candidate.
|
|
630
630
|
"""
|
|
631
631
|
name = packvers.utils.canonicalize_name(candidate.name)
|
|
632
|
-
# TODO: handle extras https://github.com/
|
|
632
|
+
# TODO: handle extras https://github.com/aboutcode-org/python-inspector/issues/10
|
|
633
633
|
if candidate.extras:
|
|
634
634
|
r = f"{name}=={candidate.version}"
|
|
635
635
|
yield Requirement(r)
|
python_inspector/resolve_cli.py
CHANGED
|
@@ -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
|
|
|
@@ -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.13.0"
|
|
23
23
|
|
|
24
24
|
DEFAULT_PYTHON_VERSION = "38"
|
|
25
25
|
PYPI_SIMPLE_URL = "https://pypi.org/simple"
|
|
@@ -240,12 +240,12 @@ def resolve_dependencies(
|
|
|
240
240
|
notice = (
|
|
241
241
|
"Dependency tree generated with python-inspector.\n"
|
|
242
242
|
"python-inspector is a free software tool from nexB Inc. and others.\n"
|
|
243
|
-
"Visit https://github.com/
|
|
243
|
+
"Visit https://github.com/aboutcode-org/python-inspector/ for support and download."
|
|
244
244
|
)
|
|
245
245
|
|
|
246
246
|
headers = dict(
|
|
247
247
|
tool_name="python-inspector",
|
|
248
|
-
tool_homepageurl="https://github.com/
|
|
248
|
+
tool_homepageurl="https://github.com/aboutcode-org/python-inspector",
|
|
249
249
|
tool_version=__version__,
|
|
250
250
|
options=options,
|
|
251
251
|
notice=notice,
|
python_inspector/utils.py
CHANGED
|
@@ -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
|
|
|
@@ -11,4 +11,4 @@ package_url: pkg:github/pypa/pip@20.3.1#src/pip/_internal/utils/compatibility_ta
|
|
|
11
11
|
download_url: https://github.com/pypa/pip/blob/20.3.1/src/pip/_internal/utils/compatibility_tags.py
|
|
12
12
|
copyright: Copyright (c) 2008-2020 The pip developers (see AUTHORS.txt file)
|
|
13
13
|
license_expression: mit
|
|
14
|
-
notes: subset copied from pip for tag handling
|
|
14
|
+
notes: subset copied from pip for tag handling. Modified copy of pip compatibility_tags.py.
|
python_inspector/utils_pypi.py
CHANGED
|
@@ -102,7 +102,7 @@ TRACE_DEEP = False
|
|
|
102
102
|
TRACE_ULTRA_DEEP = False
|
|
103
103
|
|
|
104
104
|
# Supported environments
|
|
105
|
-
PYTHON_VERSIONS = "27", "36", "37", "38", "39", "310", "311", "312"
|
|
105
|
+
PYTHON_VERSIONS = "27", "36", "37", "38", "39", "310", "311", "312", "313"
|
|
106
106
|
|
|
107
107
|
PYTHON_DOT_VERSIONS_BY_VER = {
|
|
108
108
|
"27": "2.7",
|
|
@@ -113,6 +113,7 @@ PYTHON_DOT_VERSIONS_BY_VER = {
|
|
|
113
113
|
"310": "3.10",
|
|
114
114
|
"311": "3.11",
|
|
115
115
|
"312": "3.12",
|
|
116
|
+
"313": "3.13",
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
valid_python_versions = list(PYTHON_DOT_VERSIONS_BY_VER.keys())
|
|
@@ -135,6 +136,7 @@ ABIS_BY_PYTHON_VERSION = {
|
|
|
135
136
|
"310": ["cp310", "cp310m", "abi3"],
|
|
136
137
|
"311": ["cp311", "cp311m", "abi3"],
|
|
137
138
|
"312": ["cp312", "cp312m", "abi3"],
|
|
139
|
+
"313": ["cp313", "cp313m", "abi3"],
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
PLATFORMS_BY_OS = {
|
|
@@ -143,6 +145,9 @@ PLATFORMS_BY_OS = {
|
|
|
143
145
|
"manylinux1_x86_64",
|
|
144
146
|
"manylinux2010_x86_64",
|
|
145
147
|
"manylinux2014_x86_64",
|
|
148
|
+
"manylinux2014_aarch6",
|
|
149
|
+
"musllinux_1_2_x86_64",
|
|
150
|
+
"manylinux_2_33_aarch64",
|
|
146
151
|
],
|
|
147
152
|
"macos": [
|
|
148
153
|
"macosx_10_6_intel",
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: python-inspector
|
|
3
|
+
Version: 0.13.1
|
|
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/aboutcode-org/python-inspector
|
|
6
|
+
Author: nexB. Inc. and others
|
|
7
|
+
Author-email: info@aboutcode.org
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Keywords: open source,scan,package,dependency,pypi,python,SBOM,sca,dependencies,dependency resolution,resolver,resolvelib,pip,requirements
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Topic :: Software Development
|
|
15
|
+
Classifier: Topic :: Utilities
|
|
16
|
+
Requires-Python: >=3.7
|
|
17
|
+
Description-Content-Type: text/x-rst
|
|
18
|
+
License-File: apache-2.0.LICENSE
|
|
19
|
+
License-File: NOTICE
|
|
20
|
+
License-File: AUTHORS.rst
|
|
21
|
+
License-File: CHANGELOG.rst
|
|
22
|
+
License-File: CODE_OF_CONDUCT.rst
|
|
23
|
+
Requires-Dist: attrs!=20.1.0,>=18.1
|
|
24
|
+
Requires-Dist: click>7.0
|
|
25
|
+
Requires-Dist: colorama>=0.3.9
|
|
26
|
+
Requires-Dist: commoncode>=30.0.0
|
|
27
|
+
Requires-Dist: dparse2>=0.7.0
|
|
28
|
+
Requires-Dist: importlib_metadata>=4.12.0
|
|
29
|
+
Requires-Dist: packageurl_python>=0.9.0
|
|
30
|
+
Requires-Dist: pkginfo2>=30.0.0
|
|
31
|
+
Requires-Dist: pip-requirements-parser>=32.0.1
|
|
32
|
+
Requires-Dist: requests>=2.18.0
|
|
33
|
+
Requires-Dist: resolvelib>=1.0.0
|
|
34
|
+
Requires-Dist: saneyaml>=0.5.2
|
|
35
|
+
Requires-Dist: toml>=0.10.0
|
|
36
|
+
Requires-Dist: mock>=3.0.5
|
|
37
|
+
Requires-Dist: packvers>=21.5
|
|
38
|
+
Provides-Extra: testing
|
|
39
|
+
Requires-Dist: pytest!=7.0.0,>=6; extra == "testing"
|
|
40
|
+
Requires-Dist: pytest-xdist>=2; extra == "testing"
|
|
41
|
+
Requires-Dist: aboutcode-toolkit>=7.0.2; extra == "testing"
|
|
42
|
+
Requires-Dist: pycodestyle>=2.8.0; extra == "testing"
|
|
43
|
+
Requires-Dist: twine; extra == "testing"
|
|
44
|
+
Requires-Dist: black; extra == "testing"
|
|
45
|
+
Requires-Dist: isort; extra == "testing"
|
|
46
|
+
Requires-Dist: pytest-rerunfailures; extra == "testing"
|
|
47
|
+
Provides-Extra: docs
|
|
48
|
+
Requires-Dist: Sphinx>=5.0.2; extra == "docs"
|
|
49
|
+
Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "docs"
|
|
50
|
+
Requires-Dist: sphinx-reredirects>=0.1.2; extra == "docs"
|
|
51
|
+
Requires-Dist: doc8>=0.11.2; extra == "docs"
|
|
52
|
+
Dynamic: license-file
|
|
53
|
+
|
|
54
|
+
python-inspector - inspect Python packages dependencies and metadata
|
|
55
|
+
=====================================================================
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
Copyright (c) nexB Inc. and others.
|
|
59
|
+
SPDX-License-Identifier: Apache-2.0
|
|
60
|
+
Homepage: https://github.com/aboutcode-org/python-inspector and https://www.aboutcode.org/
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
``python-inspector`` is a collection of utilities to:
|
|
64
|
+
|
|
65
|
+
- resolve PyPI packages dependencies
|
|
66
|
+
|
|
67
|
+
- parse various requirements.txt files and setup.py files as input
|
|
68
|
+
for resolving dependencies.
|
|
69
|
+
|
|
70
|
+
- parse additionally various manifests and packages files such as
|
|
71
|
+
Pipfile, pyproject.toml, poetry.lock and setup.cfg and legacy and
|
|
72
|
+
current metadata file formats for eggs, wheels and sdist. These
|
|
73
|
+
have not been wired with the command line yet.
|
|
74
|
+
|
|
75
|
+
- query PyPI JSON and simple APIs for package information
|
|
76
|
+
|
|
77
|
+
It grew out of ScanCode toolkit to find and analyze PyPI archives and
|
|
78
|
+
installed Python packages and their files.
|
|
79
|
+
|
|
80
|
+
The goal of python-inspector is to be a comprehensive library
|
|
81
|
+
that can handle every style of Python package layouts, manifests and lockfiles.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
Testing
|
|
85
|
+
--------
|
|
86
|
+
|
|
87
|
+
- Run the tests with::
|
|
88
|
+
|
|
89
|
+
pytest -vvs
|
|
90
|
+
|
|
91
|
+
- These are live tests to regenrate the tests with updated data run::
|
|
92
|
+
|
|
93
|
+
PYINSP_REGEN_TEST_FIXTURES=yes pytest -vvs
|
|
94
|
+
|
|
95
|
+
Usage
|
|
96
|
+
--------
|
|
97
|
+
|
|
98
|
+
- Install with pip::
|
|
99
|
+
|
|
100
|
+
pip install git+https://github.com/aboutcode-org/python-inspector
|
|
101
|
+
|
|
102
|
+
- Run the command line utility with::
|
|
103
|
+
|
|
104
|
+
python-inspector --help
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
Its companion libraries are:
|
|
109
|
+
|
|
110
|
+
- ``pip-requirements-parser``, a mostly correct pip requirements parsing
|
|
111
|
+
library extracted from pip.
|
|
112
|
+
|
|
113
|
+
- ``pkginfo2``, a safer fork of pkginfo to parse various installed and extracted
|
|
114
|
+
package layouts and their metadata files.
|
|
115
|
+
|
|
116
|
+
- ``dparse2``, a safer fork of dparse to parse various package manifests
|
|
117
|
+
|
|
118
|
+
- ``resolvelib``, the library used by pip for dependency resolution
|
|
119
|
+
|
|
120
|
+
- ``packaging``, the official Python packaging utility library to process
|
|
121
|
+
versions, specifiers, markers and other packaging data formats.
|
|
122
|
+
|
|
123
|
+
- ``importlib_metadata``, the official Python utility library to process
|
|
124
|
+
installed site-packages and their metadata formats.
|
|
125
|
+
|
|
126
|
+
- ``packageurl-python`` to use Package URL to reference Python packages
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
Acknowledgements, Funding, Support and Sponsoring
|
|
131
|
+
--------------------------------------------------------
|
|
132
|
+
|
|
133
|
+
This project is funded, supported and sponsored by:
|
|
134
|
+
|
|
135
|
+
- Generous support and contributions from users like you!
|
|
136
|
+
- the European Commission NGI programme
|
|
137
|
+
- the NLnet Foundation
|
|
138
|
+
- the Swiss State Secretariat for Education, Research and Innovation (SERI)
|
|
139
|
+
- Google, including the Google Summer of Code and the Google Seasons of Doc programmes
|
|
140
|
+
- Mercedes-Benz Group
|
|
141
|
+
- Microsoft and Microsoft Azure
|
|
142
|
+
- AboutCode ASBL
|
|
143
|
+
- nexB Inc.
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|europa| |dgconnect|
|
|
148
|
+
|
|
149
|
+
|ngi| |nlnet|
|
|
150
|
+
|
|
151
|
+
|aboutcode| |nexb|
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
This project was funded through the NGI0 Discovery Fund, a fund established by NLnet with financial
|
|
155
|
+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
|
|
156
|
+
Communications Networks, Content and Technology under grant agreement No 825322.
|
|
157
|
+
|
|
158
|
+
|ngidiscovery| https://nlnet.nl/project/vulnerabilitydatabase/
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
This project was funded through the NGI0 Core Fund, a fund established by NLnet with financial
|
|
162
|
+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
|
|
163
|
+
Communications Networks, Content and Technology under grant agreement No 101092990.
|
|
164
|
+
|
|
165
|
+
|ngizerocore| https://nlnet.nl/project/Back2source-next/
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
.. |nlnet| image:: https://nlnet.nl/logo/banner.png
|
|
170
|
+
:target: https://nlnet.nl
|
|
171
|
+
:height: 50
|
|
172
|
+
:alt: NLnet foundation logo
|
|
173
|
+
|
|
174
|
+
.. |ngi| image:: https://ngi.eu/wp-content/uploads/thegem-logos/logo_8269bc6efcf731d34b6385775d76511d_1x.png
|
|
175
|
+
:target: https://ngi.eu35
|
|
176
|
+
:height: 50
|
|
177
|
+
:alt: NGI logo
|
|
178
|
+
|
|
179
|
+
.. |nexb| image:: https://nexb.com/wp-content/uploads/2022/04/nexB.svg
|
|
180
|
+
:target: https://nexb.com
|
|
181
|
+
:height: 30
|
|
182
|
+
:alt: nexB logo
|
|
183
|
+
|
|
184
|
+
.. |europa| image:: https://ngi.eu/wp-content/uploads/sites/77/2017/10/bandiera_stelle.png
|
|
185
|
+
:target: http://ec.europa.eu/index_en.htm
|
|
186
|
+
:height: 40
|
|
187
|
+
:alt: Europa logo
|
|
188
|
+
|
|
189
|
+
.. |aboutcode| image:: https://aboutcode.org/wp-content/uploads/2023/10/AboutCode.svg
|
|
190
|
+
:target: https://aboutcode.org/
|
|
191
|
+
:height: 30
|
|
192
|
+
:alt: AboutCode logo
|
|
193
|
+
|
|
194
|
+
.. |swiss| image:: https://www.sbfi.admin.ch/sbfi/en/_jcr_content/logo/image.imagespooler.png/1493119032540/logo.png
|
|
195
|
+
:target: https://www.sbfi.admin.ch/sbfi/en/home/seri/seri.html
|
|
196
|
+
:height: 40
|
|
197
|
+
:alt: Swiss logo
|
|
198
|
+
|
|
199
|
+
.. |dgconnect| image:: https://commission.europa.eu/themes/contrib/oe_theme/dist/ec/images/logo/positive/logo-ec--en.svg
|
|
200
|
+
:target: https://commission.europa.eu/about-european-commission/departments-and-executive-agencies/communications-networks-content-and-technology_en
|
|
201
|
+
:height: 40
|
|
202
|
+
:alt: EC DG Connect logo
|
|
203
|
+
|
|
204
|
+
.. |ngizerocore| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
|
|
205
|
+
:target: https://nlnet.nl/core
|
|
206
|
+
:height: 40
|
|
207
|
+
:alt: NGI Zero Core Logo
|
|
208
|
+
|
|
209
|
+
.. |ngizerocommons| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
|
|
210
|
+
:target: https://nlnet.nl/commonsfund/
|
|
211
|
+
:height: 40
|
|
212
|
+
:alt: NGI Zero Commons Logo
|
|
213
|
+
|
|
214
|
+
.. |ngizeropet| image:: https://nlnet.nl/image/logos/NGI0PET_tag.svg
|
|
215
|
+
:target: https://nlnet.nl/PET
|
|
216
|
+
:height: 40
|
|
217
|
+
:alt: NGI Zero PET logo
|
|
218
|
+
|
|
219
|
+
.. |ngizeroentrust| image:: https://nlnet.nl/image/logos/NGI0Entrust_tag.svg
|
|
220
|
+
:target: https://nlnet.nl/entrust
|
|
221
|
+
:height: 38
|
|
222
|
+
:alt: NGI Zero Entrust logo
|
|
223
|
+
|
|
224
|
+
.. |ngiassure| image:: https://nlnet.nl/image/logos/NGIAssure_tag.svg
|
|
225
|
+
:target: https://nlnet.nl/image/logos/NGIAssure_tag.svg
|
|
226
|
+
:height: 32
|
|
227
|
+
:alt: NGI Assure logo
|
|
228
|
+
|
|
229
|
+
.. |ngidiscovery| image:: https://nlnet.nl/image/logos/NGI0Discovery_tag.svg
|
|
230
|
+
:target: https://nlnet.nl/discovery/
|
|
231
|
+
:height: 40
|
|
232
|
+
:alt: NGI Discovery logo
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
_packagedcode/__init__.py,sha256=cLQgRA2EjQgdVdz1i_o_pTsQakHBykIv4sMzFXV2Ntg,366
|
|
2
|
+
_packagedcode/models.py,sha256=n2xL9HSLfC0QQwQlH1yzOPZjjHOcfTCJ36E8t45Qxis,48917
|
|
3
|
+
_packagedcode/pypi.py,sha256=jcN4FFTAwpHEvrYXj8KUHSMb1KMiLcxdUlLsg7b4wrs,69526
|
|
4
|
+
_packagedcode/pypi.py.ABOUT,sha256=rqbtXJyYak0Sg-NCM3qDF7-JxCKXN5HEoU-qse_IqKA,551
|
|
5
|
+
_packagedcode/pypi.py.NOTICE,sha256=QtJl8lok4abmslH7UT1UaOPFsuZPwM7hjd58UASQJ7o,1884
|
|
6
|
+
_packagedcode/pypi_setup_py.py,sha256=8uXo28HFZeIQL9cbZZxkk98jrYzgvWKASRgjRi8D3Vo,5785
|
|
7
|
+
_packagedcode/pypi_setup_py.py.ABOUT,sha256=7FLC7R73YDfzEu47fij39PxteCqmojKSexChYZYpQlQ,300
|
|
8
|
+
_packagedcode/pypi_setup_py.py.LICENSE,sha256=EsVAqcPMzlhNkyJ3j6EW_yF02WLs94p0w2igJYrUcxs,1077
|
|
9
|
+
_packagedcode/utils.py,sha256=uxkWaSeZRY69LinSFdVFHirpuyLI4YcvYb2wLztU6T4,6970
|
|
10
|
+
python_inspector/__init__.py,sha256=pGKExHJptu-HGhCyTD2APi6cMBqYYcmib7yRHo1f4lc,398
|
|
11
|
+
python_inspector/api.py,sha256=PLq2mwKDX5_KhSAbMe2aS8f7AvW6Qm3pTQLrRfHxNY0,14502
|
|
12
|
+
python_inspector/cli_utils.py,sha256=EOgbryv9DppCjP1-IbVHg1QnWJANJcvdQ3BhM9huN98,1139
|
|
13
|
+
python_inspector/dependencies.py,sha256=2MYJZSUGokE3zSrOxUUyMfItyDSZ7YgMHgtVC-bglOU,2817
|
|
14
|
+
python_inspector/error.py,sha256=K3kRjIr8AXgSFMyhLa9MerhMfq8MhPKxLvDT6RiWD4M,457
|
|
15
|
+
python_inspector/package_data.py,sha256=eZHUC3CrTqk8rhind4nJZyY1uOKz2uSClVxJFavQqc8,6000
|
|
16
|
+
python_inspector/resolution.py,sha256=lUJs7344Y8dwMwvKstDJmo0IOyaj2wsKvHKE_Y1O548,29383
|
|
17
|
+
python_inspector/resolution.py.ABOUT,sha256=tYLeHLgyo4zZrPlMXlVF59EjC-GGDaQeFKogf7M7rXg,705
|
|
18
|
+
python_inspector/resolution.py.LICENSE,sha256=84j9OMrRMRLB3A9mm76A5_hFQe26-3LzAw0sp2QsPJ0,751
|
|
19
|
+
python_inspector/resolve_cli.py,sha256=37qFpgvM7GbWa-qfWabEHICGGXhFc9kcLqz6dH2467Q,12066
|
|
20
|
+
python_inspector/setup_py_live_eval.py,sha256=6iFI1u1fusqa_zF2w1V8buZgmLl2dUSZASclwuI551E,7607
|
|
21
|
+
python_inspector/setup_py_live_eval.py.ABOUT,sha256=ecRsdi0Z--mX8gnSwQzE2OqucpmD0AsmPlojp70uPxI,396
|
|
22
|
+
python_inspector/setup_py_live_eval.py.LICENSE,sha256=5wfEqJLf5ANizw20WUURuTgoZOzMRK_4iGA39BApyRk,1643
|
|
23
|
+
python_inspector/utils.py,sha256=kJYyKpyTkNjY-6Kh618ZAvvfCB1--W4XiuwToO0dWWA,2431
|
|
24
|
+
python_inspector/utils_pip_compatibility_tags.py,sha256=oD6elof52LxPF9HOtPXPAi2mZkbqAXjDd1dCeRHI3Q4,6825
|
|
25
|
+
python_inspector/utils_pip_compatibility_tags.py.ABOUT,sha256=tFhzj7qUEA9H-Tg6K1BI5QBtmQEq0vHg0X2Ws7t073U,540
|
|
26
|
+
python_inspector/utils_pypi.py,sha256=6isi-UGRF6DKmna9jRHDmWqMWgNRFkNUm9eqNmvxz2I,57626
|
|
27
|
+
python_inspector/utils_pypi.py.ABOUT,sha256=7s9WCNmS-qJJgHC979fI4whrM5Y41-Ar-LZoIfZXPVU,635
|
|
28
|
+
python_inspector/utils_pypi_supported_tags.py,sha256=SdbIlKoCgyqBZIesEdrFhVMnYikBirvSDvPUPIomTSo,2850
|
|
29
|
+
python_inspector/utils_pypi_supported_tags.py.ABOUT,sha256=ndJ1kQS6u7caYmLc6XVnNIdKfpnvGjKepxpmhQJWJyA,741
|
|
30
|
+
python_inspector-0.13.1.dist-info/licenses/AUTHORS.rst,sha256=rRa-_IwbfBl84NqT5QZWFTXHsJnvRz8SP9dymwrEDAE,87
|
|
31
|
+
python_inspector-0.13.1.dist-info/licenses/CHANGELOG.rst,sha256=rEqpYtb_S7_99YKL1YSYioO-U3UxF3jxSSLHVn0haSs,3924
|
|
32
|
+
python_inspector-0.13.1.dist-info/licenses/CODE_OF_CONDUCT.rst,sha256=xXDTFpYY3Y7JoxrWADihieUvhGlwJc_oxsbmLJaBvE4,3422
|
|
33
|
+
python_inspector-0.13.1.dist-info/licenses/NOTICE,sha256=yOCrvf_do6vlpp9TAQ57LZn5bp9eB2uQCQ9FnKm8QUM,794
|
|
34
|
+
python_inspector-0.13.1.dist-info/licenses/apache-2.0.LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
35
|
+
python_inspector-0.13.1.dist-info/METADATA,sha256=Q3Lf7NEPUIj0M4_8qXlqxHgSs-f43U7Ejj9AiOwHG-c,7848
|
|
36
|
+
python_inspector-0.13.1.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
|
37
|
+
python_inspector-0.13.1.dist-info/entry_points.txt,sha256=2s9F95rPWbgz3cOnKN3Z7PwzglPt2EsX2qf7W0Xubpk,87
|
|
38
|
+
python_inspector-0.13.1.dist-info/top_level.txt,sha256=C-KAHTL8C6jd7QULvFk83YjOBVxDrnyefG3RikRHRlw,31
|
|
39
|
+
python_inspector-0.13.1.dist-info/RECORD,,
|
{python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info/licenses}/CHANGELOG.rst
RENAMED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
v0.13.1
|
|
5
|
+
-----------
|
|
6
|
+
|
|
7
|
+
- Fix ResolutionImpossible for lief==0.15.1 #202
|
|
8
|
+
- Add license expression data from pypi API #208
|
|
9
|
+
- Add python 3.13 in python-inspector #196
|
|
10
|
+
- Update homepage_url and fix CI and tests
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
v0.12.1
|
|
14
|
+
-----------
|
|
15
|
+
|
|
16
|
+
- Update link references of ownership from nexB to aboutcode-org
|
|
17
|
+
|
|
18
|
+
|
|
4
19
|
v0.12.0
|
|
5
20
|
-----------
|
|
6
21
|
|
|
@@ -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,127 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: python-inspector
|
|
3
|
-
Version: 0.12.0
|
|
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/nexB/python-inspector
|
|
6
|
-
Author: nexB. Inc. and others
|
|
7
|
-
Author-email: info@aboutcode.org
|
|
8
|
-
License: Apache-2.0
|
|
9
|
-
Keywords: open source,scan,package,dependency,pypi,python,SBOM,sca,dependencies,dependency resolution,resolver,resolvelib,pip,requirements
|
|
10
|
-
Classifier: Development Status :: 4 - Beta
|
|
11
|
-
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: Programming Language :: Python :: 3
|
|
13
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
-
Classifier: Topic :: Software Development
|
|
15
|
-
Classifier: Topic :: Utilities
|
|
16
|
-
Requires-Python: >=3.7
|
|
17
|
-
Description-Content-Type: text/x-rst
|
|
18
|
-
License-File: apache-2.0.LICENSE
|
|
19
|
-
License-File: NOTICE
|
|
20
|
-
License-File: AUTHORS.rst
|
|
21
|
-
License-File: CHANGELOG.rst
|
|
22
|
-
License-File: CODE_OF_CONDUCT.rst
|
|
23
|
-
Requires-Dist: attrs !=20.1.0,>=18.1
|
|
24
|
-
Requires-Dist: click >7.0
|
|
25
|
-
Requires-Dist: colorama >=0.3.9
|
|
26
|
-
Requires-Dist: commoncode >=30.0.0
|
|
27
|
-
Requires-Dist: dparse2 >=0.7.0
|
|
28
|
-
Requires-Dist: importlib-metadata >=4.12.0
|
|
29
|
-
Requires-Dist: packageurl-python >=0.9.0
|
|
30
|
-
Requires-Dist: pkginfo2 >=30.0.0
|
|
31
|
-
Requires-Dist: pip-requirements-parser >=32.0.1
|
|
32
|
-
Requires-Dist: requests >=2.18.0
|
|
33
|
-
Requires-Dist: resolvelib >=1.0.0
|
|
34
|
-
Requires-Dist: saneyaml >=0.5.2
|
|
35
|
-
Requires-Dist: toml >=0.10.0
|
|
36
|
-
Requires-Dist: mock >=3.0.5
|
|
37
|
-
Requires-Dist: packvers >=21.5
|
|
38
|
-
Provides-Extra: docs
|
|
39
|
-
Requires-Dist: Sphinx >=5.0.2 ; extra == 'docs'
|
|
40
|
-
Requires-Dist: sphinx-rtd-theme >=1.0.0 ; extra == 'docs'
|
|
41
|
-
Requires-Dist: sphinx-reredirects >=0.1.2 ; extra == 'docs'
|
|
42
|
-
Requires-Dist: doc8 >=0.11.2 ; extra == 'docs'
|
|
43
|
-
Provides-Extra: testing
|
|
44
|
-
Requires-Dist: pytest !=7.0.0,>=6 ; extra == 'testing'
|
|
45
|
-
Requires-Dist: pytest-xdist >=2 ; extra == 'testing'
|
|
46
|
-
Requires-Dist: aboutcode-toolkit >=7.0.2 ; extra == 'testing'
|
|
47
|
-
Requires-Dist: pycodestyle >=2.8.0 ; extra == 'testing'
|
|
48
|
-
Requires-Dist: twine ; extra == 'testing'
|
|
49
|
-
Requires-Dist: black ; extra == 'testing'
|
|
50
|
-
Requires-Dist: isort ; extra == 'testing'
|
|
51
|
-
Requires-Dist: pytest-rerunfailures ; extra == 'testing'
|
|
52
|
-
|
|
53
|
-
python-inspector - inspect Python packages dependencies and metadata
|
|
54
|
-
=====================================================================
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Copyright (c) nexB Inc. and others.
|
|
58
|
-
SPDX-License-Identifier: Apache-2.0
|
|
59
|
-
Homepage: https://github.com/nexB/python-inspector and https://www.aboutcode.org/
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
``python-inspector`` is a collection of utilities to:
|
|
63
|
-
|
|
64
|
-
- resolve PyPI packages dependencies
|
|
65
|
-
|
|
66
|
-
- parse various requirements.txt files and setup.py files as input
|
|
67
|
-
for resolving dependencies.
|
|
68
|
-
|
|
69
|
-
- parse additionally various manifests and packages files such as
|
|
70
|
-
Pipfile, pyproject.toml, poetry.lock and setup.cfg and legacy and
|
|
71
|
-
current metadata file formats for eggs, wheels and sdist. These
|
|
72
|
-
have not been wired with the command line yet.
|
|
73
|
-
|
|
74
|
-
- query PyPI JSON and simple APIs for package information
|
|
75
|
-
|
|
76
|
-
It grew out of ScanCode toolkit to find and analyze PyPI archives and
|
|
77
|
-
installed Python packages and their files.
|
|
78
|
-
|
|
79
|
-
The goal of python-inspector is to be a comprehensive library
|
|
80
|
-
that can handle every style of Python package layouts, manifests and lockfiles.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
Testing
|
|
84
|
-
--------
|
|
85
|
-
|
|
86
|
-
- Run the tests with::
|
|
87
|
-
|
|
88
|
-
pytest -vvs
|
|
89
|
-
|
|
90
|
-
- These are live tests to regenrate the tests with updated data run::
|
|
91
|
-
|
|
92
|
-
PYINSP_REGEN_TEST_FIXTURES=yes pytest -vvs
|
|
93
|
-
|
|
94
|
-
Usage
|
|
95
|
-
--------
|
|
96
|
-
|
|
97
|
-
- Install with pip::
|
|
98
|
-
|
|
99
|
-
pip install git+https://github.com/nexB/python-inspector
|
|
100
|
-
|
|
101
|
-
- Run the command line utility with::
|
|
102
|
-
|
|
103
|
-
python-inspector --help
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
Its companion libraries are:
|
|
108
|
-
|
|
109
|
-
- ``pip-requirements-parser``, a mostly correct pip requirements parsing
|
|
110
|
-
library extracted from pip.
|
|
111
|
-
|
|
112
|
-
- ``pkginfo2``, a safer fork of pkginfo to parse various installed and extracted
|
|
113
|
-
package layouts and their metadata files.
|
|
114
|
-
|
|
115
|
-
- ``dparse2``, a safer fork of dparse to parse various package manifests
|
|
116
|
-
|
|
117
|
-
- ``resolvelib``, the library used by pip for dependency resolution
|
|
118
|
-
|
|
119
|
-
- ``packaging``, the official Python packaging utility library to process
|
|
120
|
-
versions, specifiers, markers and other packaging data formats.
|
|
121
|
-
|
|
122
|
-
- ``importlib_metadata``, the official Python utility library to process
|
|
123
|
-
installed site-packages and their metadata formats.
|
|
124
|
-
|
|
125
|
-
- ``packageurl-python`` to use Package URL to reference Python packages
|
|
126
|
-
|
|
127
|
-
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
_packagedcode/__init__.py,sha256=c7O1kuxsgVV7MgK0EvVffZtquexe78dQRTPcMP2UiDs,357
|
|
2
|
-
_packagedcode/models.py,sha256=mp7x92CG6_tet7URuNvdXzmEZeOi8FXVbPBYGKhFqgg,48912
|
|
3
|
-
_packagedcode/pypi.py,sha256=hK89jjlowXs2xtJzGcujqd7xCkyVhEC4uMwbzzF5icA,69518
|
|
4
|
-
_packagedcode/pypi.py.ABOUT,sha256=rqbtXJyYak0Sg-NCM3qDF7-JxCKXN5HEoU-qse_IqKA,551
|
|
5
|
-
_packagedcode/pypi.py.NOTICE,sha256=QtJl8lok4abmslH7UT1UaOPFsuZPwM7hjd58UASQJ7o,1884
|
|
6
|
-
_packagedcode/pypi_setup_py.py,sha256=IeFskjV4z4SOk4-GmHXoktMqOSXMdECpsflocacPgjw,5742
|
|
7
|
-
_packagedcode/pypi_setup_py.py.ABOUT,sha256=7FLC7R73YDfzEu47fij39PxteCqmojKSexChYZYpQlQ,300
|
|
8
|
-
_packagedcode/pypi_setup_py.py.LICENSE,sha256=EsVAqcPMzlhNkyJ3j6EW_yF02WLs94p0w2igJYrUcxs,1077
|
|
9
|
-
_packagedcode/utils.py,sha256=ibgl7lQLUFuC09Go9mSY4D455W4AvagaJ_kg1EO9eXo,6949
|
|
10
|
-
python_inspector/__init__.py,sha256=-WeiNn9hvD3sGqwxrZQr0by1J7oo5QDPDAMe_cT5okQ,389
|
|
11
|
-
python_inspector/api.py,sha256=u95X6NvnhcsqWpDkTXY01S38Nh50bQWRL0flyZrqZic,14491
|
|
12
|
-
python_inspector/cli_utils.py,sha256=eBavSBaGpZV8_7kHhSO6zRYEBqaDOkIrdiOk0Jq-A4o,1130
|
|
13
|
-
python_inspector/dependencies.py,sha256=2MYJZSUGokE3zSrOxUUyMfItyDSZ7YgMHgtVC-bglOU,2817
|
|
14
|
-
python_inspector/error.py,sha256=WvTR5JTjziD42hxKftedb-pe2LUWWTsagW66gT3rtBo,448
|
|
15
|
-
python_inspector/package_data.py,sha256=kCKHlc8yX25jdNBMvtn4fiw99YTs57DMQow8uwFW3jU,5849
|
|
16
|
-
python_inspector/resolution.py,sha256=Q-UoLg7gDT-YJw2zvVWOas5iS5kuNXyhH-I71jhiCss,29356
|
|
17
|
-
python_inspector/resolution.py.ABOUT,sha256=tYLeHLgyo4zZrPlMXlVF59EjC-GGDaQeFKogf7M7rXg,705
|
|
18
|
-
python_inspector/resolution.py.LICENSE,sha256=84j9OMrRMRLB3A9mm76A5_hFQe26-3LzAw0sp2QsPJ0,751
|
|
19
|
-
python_inspector/resolve_cli.py,sha256=MnbkdS6UF_dDTu_Jq3E3oDqSKntumDx0GtTf8LxMhjM,12039
|
|
20
|
-
python_inspector/setup_py_live_eval.py,sha256=6iFI1u1fusqa_zF2w1V8buZgmLl2dUSZASclwuI551E,7607
|
|
21
|
-
python_inspector/setup_py_live_eval.py.ABOUT,sha256=ecRsdi0Z--mX8gnSwQzE2OqucpmD0AsmPlojp70uPxI,396
|
|
22
|
-
python_inspector/setup_py_live_eval.py.LICENSE,sha256=5wfEqJLf5ANizw20WUURuTgoZOzMRK_4iGA39BApyRk,1643
|
|
23
|
-
python_inspector/utils.py,sha256=czDA_6lmXrX3PzY222xUTrUDYmfN_uWmNPMjTRc8OuE,2422
|
|
24
|
-
python_inspector/utils_pip_compatibility_tags.py,sha256=oD6elof52LxPF9HOtPXPAi2mZkbqAXjDd1dCeRHI3Q4,6825
|
|
25
|
-
python_inspector/utils_pip_compatibility_tags.py.ABOUT,sha256=v9PEBLLQGH1cJuJU7SeHd7q4b2li3_HOTlvgsQoMuRw,494
|
|
26
|
-
python_inspector/utils_pypi.py,sha256=9PDpKtJygBwI7n7_oLfHUF9weoogN9y2kMoX56kJMoI,57462
|
|
27
|
-
python_inspector/utils_pypi.py.ABOUT,sha256=7s9WCNmS-qJJgHC979fI4whrM5Y41-Ar-LZoIfZXPVU,635
|
|
28
|
-
python_inspector/utils_pypi_supported_tags.py,sha256=SdbIlKoCgyqBZIesEdrFhVMnYikBirvSDvPUPIomTSo,2850
|
|
29
|
-
python_inspector/utils_pypi_supported_tags.py.ABOUT,sha256=ndJ1kQS6u7caYmLc6XVnNIdKfpnvGjKepxpmhQJWJyA,741
|
|
30
|
-
python_inspector-0.12.0.dist-info/AUTHORS.rst,sha256=rRa-_IwbfBl84NqT5QZWFTXHsJnvRz8SP9dymwrEDAE,87
|
|
31
|
-
python_inspector-0.12.0.dist-info/CHANGELOG.rst,sha256=-EQB4SBAha94Z1KNWI98gvzbioOwgNbzgzafw0663RI,3629
|
|
32
|
-
python_inspector-0.12.0.dist-info/CODE_OF_CONDUCT.rst,sha256=xXDTFpYY3Y7JoxrWADihieUvhGlwJc_oxsbmLJaBvE4,3422
|
|
33
|
-
python_inspector-0.12.0.dist-info/METADATA,sha256=e7mbUy9dGRX0KApkaqRHDKe1rWLQLXsQeAnAZF8r6Kk,4264
|
|
34
|
-
python_inspector-0.12.0.dist-info/NOTICE,sha256=uEf5AAY7zIAS_ILkcEjEJ0Wt6wYWyU9d6FGPiAlpig4,770
|
|
35
|
-
python_inspector-0.12.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
36
|
-
python_inspector-0.12.0.dist-info/apache-2.0.LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
37
|
-
python_inspector-0.12.0.dist-info/entry_points.txt,sha256=2s9F95rPWbgz3cOnKN3Z7PwzglPt2EsX2qf7W0Xubpk,87
|
|
38
|
-
python_inspector-0.12.0.dist-info/top_level.txt,sha256=C-KAHTL8C6jd7QULvFk83YjOBVxDrnyefG3RikRHRlw,31
|
|
39
|
-
python_inspector-0.12.0.dist-info/RECORD,,
|
|
File without changes
|
{python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info/licenses}/AUTHORS.rst
RENAMED
|
File without changes
|
{python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info/licenses}/CODE_OF_CONDUCT.rst
RENAMED
|
File without changes
|
{python_inspector-0.12.0.dist-info → python_inspector-0.13.1.dist-info/licenses}/apache-2.0.LICENSE
RENAMED
|
File without changes
|
|
File without changes
|