Skip to content

Commit

Permalink
Move environment variables into Pixi.toml (#6251)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored May 30, 2024
1 parent 1946ef2 commit f39e0a0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ jobs:
outputs:
tag: ${{ steps.vars.outputs.tag }}
env:
MPLBACKEND: "Agg"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MOZ_HEADLESS: 1
PANEL_EMBED: "true"
PANEL_EMBED_JSON: "true"
PANEL_EMBED_JSON_PREFIX: "json"
DASK_DATAFRAME__QUERY_PLANNING: false
steps:
- uses: holoviz-dev/holoviz_tasks/pixi_install@pixi
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ defaults:

env:
DISPLAY: ":99.0"
PYTHONIOENCODING: "utf-8"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DASK_DATAFRAME__QUERY_PLANNING: false
COV: "--cov=./holoviews --cov-report=xml"

jobs:
Expand Down
17 changes: 15 additions & 2 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ check-latest-packages = 'python scripts/check_latest_packages.py'
download-data = 'python scripts/download_data.py'
install = 'python -m pip install --no-deps --disable-pip-version-check -e .'

[activation.env]
DASK_DATAFRAME__QUERY_PLANNING = "False"
PYTHONIOENCODING = "utf-8"

[environments]
test-39 = ["py39", "test-core", "test", "example", "test-example", "test-unit-task"]
test-310 = ["py310", "test-core", "test", "example", "test-example", "test-unit-task"]
Expand Down Expand Up @@ -83,7 +87,6 @@ test-unit = 'pytest holoviews/tests -n logical --dist loadgroup'
[feature.test.dependencies]
cftime = "*"
contourpy = "*"
# dash >=1.16
dask-core = "*"
datashader = ">=0.11.1"
ffmpeg = "*"
Expand Down Expand Up @@ -125,6 +128,9 @@ depends_on = ["_install-ui"]
channels = ["pyviz/label/dev", "rapidsai", "conda-forge"]
platforms = ["linux-64"]

[feature.test-gpu.activation.env]
NUMBA_CUDA_LOW_OCCUPANCY_WARNINGS = "0"

[feature.test-gpu.dependencies]
cuda-version = "12.2.*"
cudf = "24.04.*"
Expand All @@ -133,7 +139,7 @@ cuspatial = "*"
rmm = { version = "*", channel = "rapidsai" }

[feature.test-gpu.tasks]
test-gpu = { cmd = "pytest holoviews/tests --gpu", env = { NUMBA_CUDA_LOW_OCCUPANCY_WARNINGS = '0' } }
test-gpu = "pytest holoviews/tests --gpu"

[feature.numpy2]
channels = ["pyviz/label/dev", "conda-forge/label/numpy_rc", "numba/label/dev", "conda-forge"]
Expand Down Expand Up @@ -178,6 +184,13 @@ pooch = "*"
python-kaleido = "*"
selenium = "*"

[feature.doc.activation.env]
MOZ_HEADLESS = "1"
MPLBACKEND = "Agg"
PANEL_EMBED = "true"
PANEL_EMBED_JSON = "true"
PANEL_EMBED_JSON_PREFIX = "json"

[feature.doc.tasks]
_docs-generate-rst = 'nbsite generate-rst --org holoviz --project-name holoviews'
_docs-refmanual = 'python ./doc/generate_modules.py holoviews -d ./doc/reference_manual -n holoviews -e tests'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ ignore = [
"RUF005", # Consider {expr} instead of concatenation
"RUF012", # Mutable class attributes should use `typing.ClassVar`
]
unfixable = [
extend-unsafe-fixes = [
"F401", # Unused imports
"F841", # Unused variables
]
Expand Down

0 comments on commit f39e0a0

Please sign in to comment.