python-inspector 0.14.2__py3-none-any.whl → 0.14.4__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/pypi.py +4 -2
- python_inspector/resolution.py +3 -1
- python_inspector/resolve_cli.py +3 -3
- python_inspector/utils_pypi.py +1 -0
- {python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/METADATA +1 -1
- {python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/RECORD +15 -15
- {python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/licenses/AUTHORS.rst +1 -0
- {python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/licenses/CHANGELOG.rst +24 -0
- {python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/WHEEL +0 -0
- {python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/entry_points.txt +0 -0
- {python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/licenses/CODE_OF_CONDUCT.rst +0 -0
- {python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/licenses/NOTICE +0 -0
- {python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/licenses/README.rst +0 -0
- {python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/licenses/apache-2.0.LICENSE +0 -0
- {python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/top_level.txt +0 -0
_packagedcode/pypi.py
CHANGED
|
@@ -534,7 +534,7 @@ class PypiWheelHandler(BasePypiHandler):
|
|
|
534
534
|
for metapath in path.iterdir():
|
|
535
535
|
if not metapath.name.endswith('METADATA'):
|
|
536
536
|
continue
|
|
537
|
-
|
|
537
|
+
|
|
538
538
|
yield parse_metadata(
|
|
539
539
|
location=metapath,
|
|
540
540
|
datasource_id=cls.datasource_id,
|
|
@@ -945,6 +945,8 @@ def get_requirements_txt_dependencies(location, include_nested=False):
|
|
|
945
945
|
|
|
946
946
|
purl = purl and purl.to_string() or None
|
|
947
947
|
|
|
948
|
+
hash_options = req.hash_options or []
|
|
949
|
+
req.hash_options = []
|
|
948
950
|
requirement = req.dumps()
|
|
949
951
|
|
|
950
952
|
if location.endswith(
|
|
@@ -973,7 +975,7 @@ def get_requirements_txt_dependencies(location, include_nested=False):
|
|
|
973
975
|
extra_data=dict(
|
|
974
976
|
is_editable=req.is_editable,
|
|
975
977
|
link=req.link and req.link.url or None,
|
|
976
|
-
hash_options=
|
|
978
|
+
hash_options=hash_options,
|
|
977
979
|
is_constraint=req.is_constraint,
|
|
978
980
|
is_archive=req.is_archive,
|
|
979
981
|
is_wheel=req.is_wheel,
|
python_inspector/resolution.py
CHANGED
|
@@ -172,7 +172,9 @@ def is_valid_version(
|
|
|
172
172
|
"""
|
|
173
173
|
if parsed_version in bad_versions:
|
|
174
174
|
return False
|
|
175
|
-
if any(
|
|
175
|
+
if any(
|
|
176
|
+
not r.specifier.contains(parsed_version, prereleases=True) for r in requirements[identifier]
|
|
177
|
+
):
|
|
176
178
|
if all(not r.specifier for r in requirements[identifier]):
|
|
177
179
|
return True
|
|
178
180
|
return False
|
python_inspector/resolve_cli.py
CHANGED
|
@@ -13,6 +13,7 @@ from typing import Dict
|
|
|
13
13
|
|
|
14
14
|
import click
|
|
15
15
|
|
|
16
|
+
from python_inspector import pyinspector_settings
|
|
16
17
|
from python_inspector import settings
|
|
17
18
|
from python_inspector import utils_pypi
|
|
18
19
|
from python_inspector.cli_utils import FileOptionType
|
|
@@ -20,7 +21,7 @@ from python_inspector.utils import write_output_in_file
|
|
|
20
21
|
|
|
21
22
|
TRACE = False
|
|
22
23
|
|
|
23
|
-
__version__ = "0.14.
|
|
24
|
+
__version__ = "0.14.4"
|
|
24
25
|
|
|
25
26
|
DEFAULT_PYTHON_VERSION = settings.DEFAULT_PYTHON_VERSION
|
|
26
27
|
PYPI_SIMPLE_URL = settings.PYPI_SIMPLE_URL
|
|
@@ -93,8 +94,7 @@ def print_version(ctx, param, value):
|
|
|
93
94
|
type=str,
|
|
94
95
|
metavar="INDEX",
|
|
95
96
|
show_default=True,
|
|
96
|
-
|
|
97
|
-
default=[settings.PYPI_SIMPLE_URL],
|
|
97
|
+
default=pyinspector_settings.INDEX_URL,
|
|
98
98
|
multiple=True,
|
|
99
99
|
help="PyPI simple index URL(s) to use in order of preference. "
|
|
100
100
|
"This option can be used multiple times.",
|
python_inspector/utils_pypi.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-inspector
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.4
|
|
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/aboutcode-org/python-inspector
|
|
6
6
|
Author: nexB. Inc. and others
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
_packagedcode/__init__.py,sha256=cLQgRA2EjQgdVdz1i_o_pTsQakHBykIv4sMzFXV2Ntg,366
|
|
2
2
|
_packagedcode/models.py,sha256=n2xL9HSLfC0QQwQlH1yzOPZjjHOcfTCJ36E8t45Qxis,48917
|
|
3
|
-
_packagedcode/pypi.py,sha256=
|
|
3
|
+
_packagedcode/pypi.py,sha256=dxEg2GYUa8ChUFL3tyZVjXjufZZ655BMEaPZEKIn89Q,70217
|
|
4
4
|
_packagedcode/pypi.py.ABOUT,sha256=rqbtXJyYak0Sg-NCM3qDF7-JxCKXN5HEoU-qse_IqKA,551
|
|
5
5
|
_packagedcode/pypi.py.NOTICE,sha256=QtJl8lok4abmslH7UT1UaOPFsuZPwM7hjd58UASQJ7o,1884
|
|
6
6
|
_packagedcode/pypi_setup_py.py,sha256=8uXo28HFZeIQL9cbZZxkk98jrYzgvWKASRgjRi8D3Vo,5785
|
|
@@ -14,10 +14,10 @@ python_inspector/dependencies.py,sha256=4-y2MprEg91cGR0NPJpiMc4tbwJZky4L7ZrIB-lk
|
|
|
14
14
|
python_inspector/error.py,sha256=K3kRjIr8AXgSFMyhLa9MerhMfq8MhPKxLvDT6RiWD4M,457
|
|
15
15
|
python_inspector/lockfile.py,sha256=I-xLXQjluh7RXJIB6-P9L_qR3reFpYioR0a4gApcfM0,790
|
|
16
16
|
python_inspector/package_data.py,sha256=D4ilQazsa898_ysKI73Vg9DoTEK5eNctXNys7E20BCc,6552
|
|
17
|
-
python_inspector/resolution.py,sha256=
|
|
17
|
+
python_inspector/resolution.py,sha256=ufStgDuFNuR2nRJrBC9MamBH_4F9-MCOTjyTRSN-AiE,30076
|
|
18
18
|
python_inspector/resolution.py.ABOUT,sha256=tYLeHLgyo4zZrPlMXlVF59EjC-GGDaQeFKogf7M7rXg,705
|
|
19
19
|
python_inspector/resolution.py.LICENSE,sha256=84j9OMrRMRLB3A9mm76A5_hFQe26-3LzAw0sp2QsPJ0,751
|
|
20
|
-
python_inspector/resolve_cli.py,sha256=
|
|
20
|
+
python_inspector/resolve_cli.py,sha256=Z_UEGO6EXb7mTLuw85oF1uvQVkSc1W4lX6NJ3OkY79Q,12129
|
|
21
21
|
python_inspector/settings.py,sha256=r4711MS_nFyXU4pWWhLtXt3mGo3QJBIZV28IttZT7gI,2304
|
|
22
22
|
python_inspector/setup_py_live_eval.py,sha256=6uJLJT_Aw5SEeybe8JEaEiWCHOTbpsJ0BinN4mlprUE,7601
|
|
23
23
|
python_inspector/setup_py_live_eval.py.ABOUT,sha256=ecRsdi0Z--mX8gnSwQzE2OqucpmD0AsmPlojp70uPxI,396
|
|
@@ -25,18 +25,18 @@ python_inspector/setup_py_live_eval.py.LICENSE,sha256=5wfEqJLf5ANizw20WUURuTgoZO
|
|
|
25
25
|
python_inspector/utils.py,sha256=cQWtdVT0RZ8XGj_sxYu_lX_sg-Iz3NCCtsg-haYbwiM,3541
|
|
26
26
|
python_inspector/utils_pip_compatibility_tags.py,sha256=8ZQkXLldhqqO4sJ0aVXQwWYdw3Qo1_C9MhntShVlgE8,6831
|
|
27
27
|
python_inspector/utils_pip_compatibility_tags.py.ABOUT,sha256=tFhzj7qUEA9H-Tg6K1BI5QBtmQEq0vHg0X2Ws7t073U,540
|
|
28
|
-
python_inspector/utils_pypi.py,sha256=
|
|
28
|
+
python_inspector/utils_pypi.py,sha256=mNRufXI6_AcqI4eWG4BZr6akTg-ORSYMM7RxRbIIkr8,59018
|
|
29
29
|
python_inspector/utils_pypi.py.ABOUT,sha256=7s9WCNmS-qJJgHC979fI4whrM5Y41-Ar-LZoIfZXPVU,635
|
|
30
30
|
python_inspector/utils_pypi_supported_tags.py,sha256=SdbIlKoCgyqBZIesEdrFhVMnYikBirvSDvPUPIomTSo,2850
|
|
31
31
|
python_inspector/utils_pypi_supported_tags.py.ABOUT,sha256=ndJ1kQS6u7caYmLc6XVnNIdKfpnvGjKepxpmhQJWJyA,741
|
|
32
|
-
python_inspector-0.14.
|
|
33
|
-
python_inspector-0.14.
|
|
34
|
-
python_inspector-0.14.
|
|
35
|
-
python_inspector-0.14.
|
|
36
|
-
python_inspector-0.14.
|
|
37
|
-
python_inspector-0.14.
|
|
38
|
-
python_inspector-0.14.
|
|
39
|
-
python_inspector-0.14.
|
|
40
|
-
python_inspector-0.14.
|
|
41
|
-
python_inspector-0.14.
|
|
42
|
-
python_inspector-0.14.
|
|
32
|
+
python_inspector-0.14.4.dist-info/licenses/AUTHORS.rst,sha256=cLH597eiqyd4cSHJ9Ny_CcbSWzTT7_VTCg3Zw43b4Ns,107
|
|
33
|
+
python_inspector-0.14.4.dist-info/licenses/CHANGELOG.rst,sha256=80u-zOpevH1F_JsvTjb3n3xi09vkpOPzJid4HPVzouc,6121
|
|
34
|
+
python_inspector-0.14.4.dist-info/licenses/CODE_OF_CONDUCT.rst,sha256=xXDTFpYY3Y7JoxrWADihieUvhGlwJc_oxsbmLJaBvE4,3422
|
|
35
|
+
python_inspector-0.14.4.dist-info/licenses/NOTICE,sha256=fkLIlzyP8zWNnPbFSXkTInNgYl35THH5-J8vMKuNzhc,761
|
|
36
|
+
python_inspector-0.14.4.dist-info/licenses/README.rst,sha256=ucUCSQt39WlNfVdOl_1WbuvBqEN0NZm_h5o_vltNFps,7033
|
|
37
|
+
python_inspector-0.14.4.dist-info/licenses/apache-2.0.LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
38
|
+
python_inspector-0.14.4.dist-info/METADATA,sha256=e22S9yx9gcmgBzLRUiMvYbbWKtMMVzi26S41z4qeT7Q,9380
|
|
39
|
+
python_inspector-0.14.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
40
|
+
python_inspector-0.14.4.dist-info/entry_points.txt,sha256=2s9F95rPWbgz3cOnKN3Z7PwzglPt2EsX2qf7W0Xubpk,87
|
|
41
|
+
python_inspector-0.14.4.dist-info/top_level.txt,sha256=C-KAHTL8C6jd7QULvFk83YjOBVxDrnyefG3RikRHRlw,31
|
|
42
|
+
python_inspector-0.14.4.dist-info/RECORD,,
|
{python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/licenses/CHANGELOG.rst
RENAMED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
v0.14.4
|
|
5
|
+
-----------
|
|
6
|
+
|
|
7
|
+
- Cleanup requirement string to avoid packvers parsing issues https://github.com/aboutcode-org/python-inspector/pull/244
|
|
8
|
+
- Fix resolution issues for pre-release versions https://github.com/aboutcode-org/python-inspector/pull/248
|
|
9
|
+
|
|
10
|
+
v0.14.3
|
|
11
|
+
-----------
|
|
12
|
+
|
|
13
|
+
- Update version number displayed in CLI, forgotten from previous releases.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
v0.14.2
|
|
17
|
+
-----------
|
|
18
|
+
|
|
19
|
+
- Respect the HTTP_PROXY environment variable.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
v0.14.1
|
|
23
|
+
-----------
|
|
24
|
+
|
|
25
|
+
- Improve netrc support with aiohttp. Also fix related bugs.
|
|
26
|
+
|
|
27
|
+
|
|
4
28
|
v0.14.0
|
|
5
29
|
-----------
|
|
6
30
|
|
|
File without changes
|
|
File without changes
|
{python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/licenses/CODE_OF_CONDUCT.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_inspector-0.14.2.dist-info → python_inspector-0.14.4.dist-info}/licenses/apache-2.0.LICENSE
RENAMED
|
File without changes
|
|
File without changes
|