Skip to content

Commit

Permalink
removed dependency on conda-index
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille committed Nov 8, 2023
1 parent 2b948ce commit e137d45
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
1 change: 0 additions & 1 deletion dev/environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ dependencies:
- requests
- sel(win): pywin32
- sel(win): menuinst
- conda-index
- conda-content-trust
- conda-package-handling
- cryptography<40.0 # Or breaks conda-content-trust
Expand Down
35 changes: 0 additions & 35 deletions micromamba/tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import subprocess
from pathlib import Path

import conda_index.index
import pytest
import requests
import yaml
Expand Down Expand Up @@ -1161,37 +1160,3 @@ def download(url: str, out: Path):
else:
raise Exception(f'Failed to download URL "{url}"')


@pytest.mark.skipif(
platform.system() == "Windows",
reason="Too many bugs runnning conda-index on Windows CI",
)
def test_create_local(tmp_home, tmp_root_prefix):
"""The name "local" is a hard-coded custom multichannel."""
name = "attrs"
plat = "noarch"
fn = "attrs-23.1.0-pyh71513ae_1.conda"

conda_bld = (tmp_root_prefix / "conda-bld").expanduser().resolve()
(conda_bld / plat).mkdir(parents=True)

download(
url=f"https://conda.anaconda.org/conda-forge/{plat}/{fn}",
out=conda_bld / plat / fn,
)

conda_index.index.ChannelIndex(
str(conda_bld), channel_name="conda-bld", threads=1
).index(None)

res = helpers.create(
"-n", "myenv", "--override-channels", "-c", "local", "-y", name, "--json"
)

attrs_link_pkg = None
for pkg in res["actions"]["LINK"]:
if pkg["name"] == name:
attrs_link_pkg = pkg

assert attrs_link_pkg["url"].startswith("file://")
assert attrs_link_pkg["url"].endswith(fn)

0 comments on commit e137d45

Please sign in to comment.