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

chore: use current platform by default #2832

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
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
Loading