Skip to content

Commit

Permalink
use current platform by default
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Jan 3, 2025
1 parent 352dc9e commit 883d801
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions tests/integration_python/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
PIXI_VERSION = "0.39.4"


ALL_PLATFORMS = '["linux-64", "osx-64", "win-64", "linux-ppc64le", "linux-aarch64"]'
ALL_PLATFORMS = '["linux-64", "osx-64", "osx-arm64", "win-64", "linux-ppc64le", "linux-aarch64"]'

CURRENT_PLATFORM = str(Platform.current())

EMPTY_BOILERPLATE_PROJECT = f"""
[project]
name = "test"
channels = []
platforms = {ALL_PLATFORMS}
platforms = {CURRENT_PLATFORM}
"""


Expand Down
6 changes: 3 additions & 3 deletions tests/integration_python/test_main_cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from pathlib import Path

from .common import verify_cli_command, ExitCode, PIXI_VERSION, ALL_PLATFORMS
from .common import verify_cli_command, ExitCode, PIXI_VERSION, CURRENT_PLATFORM
import tomllib
import json
import pytest
Expand Down Expand Up @@ -570,8 +570,8 @@ def test_upgrade_dependency_location_pixi(pixi: Path, tmp_path: Path) -> None:
test = ["pytest==6"]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = {ALL_PLATFORMS}
channels = ["https://prefix.dev/conda-forge"]
platforms = {CURRENT_PLATFORM}
[tool.pixi.pypi-dependencies]
polars = "==0.*"
Expand Down

0 comments on commit 883d801

Please sign in to comment.