Skip to content

Commit a3313fb

Browse files
committed
tmp
1 parent 7916e65 commit a3313fb

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

pulp_python/app/pypi/views.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -361,16 +361,19 @@ def retrieve(self, request, path, package):
361361
else:
362362
packages = chain([present], packages)
363363
name = present[2]
364-
releases = (
365-
{
366-
"filename": f,
367-
"url": urljoin(self.base_content_url, f"{path}/{f}"),
368-
"sha256": s,
369-
"metadata_sha256": ms,
370-
"requires_python": rp,
371-
}
372-
for f, s, _, ms, rp in packages
373-
)
364+
releases = []
365+
for f, s, name, ms, rp in packages:
366+
log.info(f"Database content: filename={f}, metadata_sha256={ms}")
367+
368+
releases.append(
369+
{
370+
"filename": f,
371+
"url": urljoin(self.base_content_url, f"{path}/{f}"),
372+
"sha256": s,
373+
"metadata_sha256": ms,
374+
"requires_python": rp,
375+
}
376+
)
374377
media_type = request.accepted_renderer.media_type
375378
headers = {"X-PyPI-Last-Serial": str(PYPI_SERIAL_CONSTANT)}
376379

pulp_python/app/serializers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ def deferred_validate(self, data):
326326
)
327327

328328
data.update(_data)
329+
log.info(f"deferred_validate final data metadata_sha256: {data.get('metadata_sha256')}")
329330

330331
return data
331332

pulp_python/tests/functional/api/test_pypi_simple_json_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def test_simple_json_index_api(
4242
assert i in project
4343

4444

45-
@pytest.mark.parallel
4645
def test_simple_json_detail_api(
46+
delete_orphans_pre,
4747
monitor_task,
4848
python_bindings,
4949
python_content_factory,

0 commit comments

Comments
 (0)