pipgrip 0.10.10__py2.py3-none-any.whl → 0.10.11__py2.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.
pipgrip/_repo_version.py CHANGED
@@ -1 +1 @@
1
- version = "0.10.10"
1
+ version = "0.10.11"
pipgrip/pipper.py CHANGED
@@ -309,9 +309,15 @@ def _get_package_report(
309
309
  "--trusted-host",
310
310
  urlparse(extra_index_url).hostname,
311
311
  ]
312
- args += ["--report", "-", package]
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
- out = stream_bash_command(args)
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
- report = json.loads(out)
324
- return report
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pipgrip
3
- Version: 0.10.10
3
+ Version: 0.10.11
4
4
  Summary: Lightweight pip dependency resolver with deptree preview functionality based on the PubGrub algorithm
5
5
  Home-page: https://github.com/ddelange/pipgrip
6
6
  Author: ddelange
@@ -1,9 +1,9 @@
1
1
  pipgrip/__init__.py,sha256=mLaibXlzSl5M71C0-9eimUNlbB0DzF3nO6YdEZcn5MA,158
2
- pipgrip/_repo_version.py,sha256=mY_-wXCzJ4ro4w9XCnZyiTr0zSgT5I1ZemA-Wd3I84M,20
2
+ pipgrip/_repo_version.py,sha256=R0lPtfuzIiv3dav07VkCrW-90timmIoi4heTmKzTPcE,20
3
3
  pipgrip/cli.py,sha256=0mTSs4HYwJyKtr9vGnOM20Tvg0Rv_O_xCptFHDfQHsg,18570
4
4
  pipgrip/compat.py,sha256=6DdN9JAYbmJTpgw7i2ypQTzqMdzrkGSJZOMB8H4PjRQ,246
5
5
  pipgrip/package_source.py,sha256=ALd_Nkq6wwAB2pgBf6PRQznOW-IHoiP59YSSEfCz9IU,8392
6
- pipgrip/pipper.py,sha256=11Ki6Ppvs8Ok2Iw1IXC_3TPUo-Fm4iv27hW2841nw4k,17361
6
+ pipgrip/pipper.py,sha256=6uk2hIvm4U9q8xjFTVYrKnWgpb2JTiRCqmuo5k21UF4,17683
7
7
  pipgrip/libs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  pipgrip/libs/mixology/__init__.py,sha256=HfjVOrpTnmZ-xVFCYSVmX50EXaBQeJteUHG-PD6iQs8,22
9
9
  pipgrip/libs/mixology/_compat.py,sha256=hPGj-zSfCbwJTN1NlH_i93m-2Dinq7VIMnr2vycx2Ls,129
@@ -29,9 +29,9 @@ pipgrip/libs/semver/version.py,sha256=-l9btQIkRsYDjpBjjd2OSNxJxCg4WPVybFaigeIJs3
29
29
  pipgrip/libs/semver/version_constraint.py,sha256=r2L4U6mqfjsKYro46duqaeroNcEWrBxpZq5oArzrCmQ,896
30
30
  pipgrip/libs/semver/version_range.py,sha256=w1V54cLQjmAUFXr5MsJCVdo5DjNpwl-TEnmfOvHbaGs,13707
31
31
  pipgrip/libs/semver/version_union.py,sha256=I86jcnXylR5RlqRpAvGxsMeUA5_j3fC3LaOubBavEpI,8158
32
- pipgrip-0.10.10.dist-info/LICENSE,sha256=0VQx-FY5ohi5oryC-9Xm8b5aacF-dDDuv8TRevRsRqc,1516
33
- pipgrip-0.10.10.dist-info/METADATA,sha256=AERkC2TSTfnNWN3ickXoSDbGsKy49eb-OaWxG3HlAU0,16576
34
- pipgrip-0.10.10.dist-info/WHEEL,sha256=P2T-6epvtXQ2cBOE_U1K4_noqlJFN3tj15djMgEu4NM,110
35
- pipgrip-0.10.10.dist-info/entry_points.txt,sha256=VGqby8sWTjfkK20Vj_FqBZ_UxBlgmAOzq4rcJLYlRq0,45
36
- pipgrip-0.10.10.dist-info/top_level.txt,sha256=upoyu3ujOmKRvBUtTrwzk58e-r6zJahuT_8-RDsd2p0,8
37
- pipgrip-0.10.10.dist-info/RECORD,,
32
+ pipgrip-0.10.11.dist-info/LICENSE,sha256=0VQx-FY5ohi5oryC-9Xm8b5aacF-dDDuv8TRevRsRqc,1516
33
+ pipgrip-0.10.11.dist-info/METADATA,sha256=9W9peRFiUox9gYycPNpqsyqkhIo6qj6dtI8gMRXIFes,16576
34
+ pipgrip-0.10.11.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
35
+ pipgrip-0.10.11.dist-info/entry_points.txt,sha256=VGqby8sWTjfkK20Vj_FqBZ_UxBlgmAOzq4rcJLYlRq0,45
36
+ pipgrip-0.10.11.dist-info/top_level.txt,sha256=upoyu3ujOmKRvBUtTrwzk58e-r6zJahuT_8-RDsd2p0,8
37
+ pipgrip-0.10.11.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.3)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any