Commit 9b516064 by Arun Babu Neelicattu Committed by Sébastien Eustace

Fix file installation for wheels with no Requires-Dist (#1322)

parent c5e54ad3
......@@ -49,7 +49,7 @@ class Inspector:
"version": "",
"summary": "",
"requires_python": None,
"requires_dist": None,
"requires_dist": [],
}
try:
......
[[package]]
name = "demo"
version = "0.1.0"
description = ""
category = "main"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
[package.source]
type = "file"
reference = ""
url = "tests/fixtures/wheel_with_no_requires_dist/demo-0.1.0-py2.py3-none-any.whl"
[metadata]
python-versions = "*"
content-hash = "123456789"
[metadata.hashes]
demo = ["c25eb81459126848a1788eb3520d1a32014eb51ce3d3bae88c56bfdde4ce02db"]
......@@ -677,6 +677,21 @@ def test_run_installs_with_local_file(installer, locker, repo, package):
assert len(installer.installer.installs) == 2
def test_run_installs_wheel_with_no_requires_dist(installer, locker, repo, package):
file_path = Path(
"tests/fixtures/wheel_with_no_requires_dist/demo-0.1.0-py2.py3-none-any.whl"
)
package.add_dependency("demo", {"file": str(file_path)})
installer.run()
expected = fixture("with-wheel-dependency-no-requires-dist")
assert locker.written_data == expected
assert len(installer.installer.installs) == 1
def test_run_installs_with_local_poetry_directory_and_extras(
installer, locker, repo, package, tmpdir
):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment