Skip to content

Commit

Permalink
Fix failing test: test_skeleton_pypi (#5577)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp authored Jan 7, 2025
1 parent 20bb9c7 commit b8724c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/test_api_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import uuid
from collections import OrderedDict
from contextlib import nullcontext
from datetime import datetime
from glob import glob
from pathlib import Path
from shutil import which
Expand Down Expand Up @@ -1419,6 +1420,10 @@ def test_recursion_layers(testing_config):
sys.platform != "win32",
reason="spaces break openssl prefix replacement on *nix",
)
@pytest.mark.skipif(
datetime.now() < datetime(2025, 1, 31),
reason="Unblock CI while https://github.com/mamba-org/mamba/issues/3730 gets a fix",
)
def test_croot_with_spaces(testing_metadata, testing_workdir):
testing_metadata.config.croot = os.path.join(testing_workdir, "space path")
api.build(testing_metadata)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_published_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def test_skeleton_pypi():
"""published in docs at https://docs.conda.io/projects/conda-build/en/latest/user-guide/tutorials/build-pkgs-skeleton.html"""
conda_path = os.path.join(sys.prefix, BIN_DIRECTORY, "conda")

check_call_env([conda_path, "skeleton", "pypi", "click"])
# 8.1.7 is the last version with 'setup.py', which is required
check_call_env([conda_path, "skeleton", "pypi", "click", "--version", "8.1.7"])
check_call_env([conda_path, "build", "click"])


Expand Down

0 comments on commit b8724c6

Please sign in to comment.