Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG make sure to restrict noarch depfinder packages to py<3.10 #463

Merged
merged 2 commits into from
Jun 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions recipe/gen_patch_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -3044,6 +3044,26 @@ def _gen_new_index_per_key(repodata, subdir, index_key):
_replace_pin("werkzeug >=1.0,<3.0", "werkzeug >=1.0,<2.3", record["depends"], record)
record["depends"].remove("importlib-metadata >=1")

# noarch depfinder packages are broken for python >=3.10
if (
record_name == "depfinder"
and record.get("timestamp", 0) < 1659704295850
and subdir == "noarch"
and any(
"<" not in dep
for dep in record.get("depends", [])
if dep.startswith("python ")
)
):
pind = None
for i, dep in enumerate(record.get("depends", [])):
if dep.startswith("python "):
pind = i
break

if pind is not None:
record["depends"][pind] = record["depends"][pind] + ",<3.10"

return index


Expand Down