Skip to content

Commit bc81c2f

Browse files
fix: integration test and upstream_artifacts bug from merge conflict resolution
Signed-off-by: Abhinav Pradeep <[email protected]>
1 parent 93938c3 commit bc81c2f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/macaron/build_spec_generator/common_spec/pypi_spec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def resolve_fields(self, purl: PackageURL) -> None:
145145
try:
146146
# The wheel function handles downloading binaries in the case that we cannot find a pure wheel.
147147
with pypi_package_json.wheel(download_binaries=self.data["has_binaries"]):
148+
artifacts["wheel"] = pypi_package_json.wheel_url
148149
logger.debug("Wheel at %s", pypi_package_json.wheel_path)
149150
# Should only have .dist-info directory.
150151
logger.debug("It has directories %s", ",".join(os.listdir(pypi_package_json.wheel_path)))

tests/integration/cases/pypi_tree-sitter/expected_default.buildspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@
2222
},
2323
"build_backends": [
2424
"setuptools.build_meta"
25-
]
25+
],
26+
"upstream_artifacts": {
27+
"sdist": "https://files.pythonhosted.org/packages/66/7c/0350cfc47faadc0d3cf7d8237a4e34032b3014ddf4a12ded9933e1648b55/tree-sitter-0.25.2.tar.gz"
28+
}
2629
}

0 commit comments

Comments
 (0)