Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
python-version: 3.12
python-version: 3.11

- name: configure conda and install code
shell: bash -el {0}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests_mamba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
python-version: 3.12
python-version: 3.11

- name: configure conda and install code
shell: bash -el {0}
Expand Down
30 changes: 17 additions & 13 deletions conda_forge_feedstock_check_solvable/rattler_build.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os
import subprocess
import tempfile
import uuid

import yaml

Expand Down Expand Up @@ -33,19 +35,21 @@ def invoke_rattler_build(
# this is OK since there is an lru cache
virtual_package_repo_url = virtual_package_repodata()
# create a temporary file and dump the variants as YAML
with tempfile.NamedTemporaryFile(mode="w", delete_on_close=False) as variants_file:
channel_sources = variants.get("channel_sources", [])
# Add virtual package repo URL to channel sources
if channel_sources:
variants["channel_sources"] = [
source + f",{virtual_package_repo_url}" for source in channel_sources
]
with tempfile.TemporaryDirectory() as tmpdir:
variants_file_name = os.path.join(tmpdir, str(uuid.uuid4()) + ".yaml")
with open(variants_file_name, "w") as fp:
channel_sources = variants.get("channel_sources", [])
# Add virtual package repo URL to channel sources
if channel_sources:
variants["channel_sources"] = [
source + f",{virtual_package_repo_url}"
for source in channel_sources
]

yaml.dump(
{k: v for k, v in variants.items()},
variants_file,
)
variants_file.flush()
yaml.dump(
{k: v for k, v in variants.items()},
fp,
)

channels_args = []
if not channel_sources:
Expand All @@ -59,7 +63,7 @@ def invoke_rattler_build(
+ channels_args
+ ["--target-platform", host_platform]
+ ["--build-platform", build_platform]
+ ["-m", variants_file.name]
+ ["-m", variants_file_name]
+ ["--render-only", "--with-solve"]
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description = "A mamba-based package to check if a conda-forge feedstock is solv
dynamic = ["version", "dependencies", "optional-dependencies"]
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.11"

[project.urls]
home = "https://github.com/regro/conda-forge-feedstock-check-solvable"
Expand Down
Loading