pipgrip 0.10.9__tar.gz → 0.10.11__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.
- {pipgrip-0.10.9/src/pipgrip.egg-info → pipgrip-0.10.11}/PKG-INFO +1 -1
- pipgrip-0.10.11/src/pipgrip/_repo_version.py +1 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/cli.py +10 -7
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/pipper.py +13 -4
- {pipgrip-0.10.9 → pipgrip-0.10.11/src/pipgrip.egg-info}/PKG-INFO +1 -1
- pipgrip-0.10.9/src/pipgrip/_repo_version.py +0 -1
- {pipgrip-0.10.9 → pipgrip-0.10.11}/LICENSE +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/README.md +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/requirements/prod.txt +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/setup.cfg +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/setup.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/__init__.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/compat.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/__init__.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/__init__.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/_compat.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/assignment.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/constraint.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/failure.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/incompatibility.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/incompatibility_cause.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/package.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/package_source.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/partial_solution.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/range.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/result.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/set_relation.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/term.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/union.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/mixology/version_solver.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/semver/__init__.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/semver/empty_constraint.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/semver/exceptions.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/semver/patterns.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/semver/version.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/semver/version_constraint.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/semver/version_range.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/libs/semver/version_union.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip/package_source.py +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip.egg-info/SOURCES.txt +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip.egg-info/dependency_links.txt +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip.egg-info/entry_points.txt +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip.egg-info/requires.txt +0 -0
- {pipgrip-0.10.9 → pipgrip-0.10.11}/src/pipgrip.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
version = "0.10.11"
|
|
@@ -2,6 +2,7 @@ import io
|
|
|
2
2
|
import logging
|
|
3
3
|
import os
|
|
4
4
|
import re
|
|
5
|
+
import sys
|
|
5
6
|
from collections import OrderedDict
|
|
6
7
|
from functools import partial
|
|
7
8
|
from json import dumps
|
|
@@ -163,13 +164,15 @@ def build_tree(source, decision_packages):
|
|
|
163
164
|
|
|
164
165
|
|
|
165
166
|
def render_tree(tree_root, max_depth, tree_ascii=False):
|
|
166
|
-
# Windows' cp1252 encoding does not supports anytree's unicode markers
|
|
167
|
-
#
|
|
168
|
-
#
|
|
169
|
-
#
|
|
170
|
-
#
|
|
171
|
-
|
|
172
|
-
|
|
167
|
+
# click.echo on Windows' cp1252 encoding does not supports anytree's unicode markers
|
|
168
|
+
# ref https://github.com/pallets/click/issues/2121#issuecomment-1809693939
|
|
169
|
+
# so check for UTF-8 mode https://docs.python.org/3/library/os.html#utf8-mode
|
|
170
|
+
# PEP 686: Python 3.15 will make Python UTF-8 Mode default
|
|
171
|
+
if ( # pragma: no cover
|
|
172
|
+
not tree_ascii
|
|
173
|
+
and hasattr(sys.stdout, "encoding")
|
|
174
|
+
and not sys.stdout.encoding.lower().startswith("utf")
|
|
175
|
+
):
|
|
173
176
|
tree_ascii = True
|
|
174
177
|
style = AsciiStyle() if tree_ascii else ContStyle()
|
|
175
178
|
output = []
|
|
@@ -309,9 +309,15 @@ def _get_package_report(
|
|
|
309
309
|
"--trusted-host",
|
|
310
310
|
urlparse(extra_index_url).hostname,
|
|
311
311
|
]
|
|
312
|
-
|
|
312
|
+
|
|
313
|
+
# Windows disallows opening fp a second time (within the pip subprocess)
|
|
314
|
+
# So close it here, and delete it manually
|
|
315
|
+
with NamedTemporaryFile(delete=False, mode="w+") as fp:
|
|
316
|
+
report_file = fp.name
|
|
317
|
+
|
|
318
|
+
args += ["--report", report_file, package]
|
|
313
319
|
try:
|
|
314
|
-
|
|
320
|
+
stream_bash_command(args)
|
|
315
321
|
except subprocess.CalledProcessError as err:
|
|
316
322
|
output = getattr(err, "output") or ""
|
|
317
323
|
logger.error(
|
|
@@ -320,8 +326,11 @@ def _get_package_report(
|
|
|
320
326
|
)
|
|
321
327
|
)
|
|
322
328
|
raise RuntimeError("Failed to get report for {}".format(package))
|
|
323
|
-
|
|
324
|
-
|
|
329
|
+
else:
|
|
330
|
+
with io.open(report_file, "r", encoding="utf-8") as fp:
|
|
331
|
+
return json.load(fp)
|
|
332
|
+
finally:
|
|
333
|
+
os.remove(report_file)
|
|
325
334
|
|
|
326
335
|
|
|
327
336
|
def _download_wheel(
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version = "0.10.9"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|