Skip to content

Commit

Permalink
ci: Add dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Nov 21, 2024
1 parent ee19136 commit 9aff825
Showing 1 changed file with 21 additions and 33 deletions.
54 changes: 21 additions & 33 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ sync-git-tags = 'python scripts/sync_git_tags.py holoviews'
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"]
test-311 = ["py311", "test-core", "test", "example", "test-example", "test-unit-task"]
test-312 = ["py312", "test-core", "test", "example", "test-example", "test-unit-task"]
test-ui = ["py312", "test-core", "test", "test-ui"]
test-39 = ["py39", "optional", "test-core", "test-example", "test-unit-task"]
test-310 = ["py310", "optional", "test-core", "test-example", "test-unit-task"]
test-311 = ["py311", "optional", "test-core", "test-example", "test-unit-task"]
test-312 = ["py312", "optional", "test-core", "test-example", "test-unit-task"]
test-ui = ["py312", "optional", "test-core", "test-ui"]
test-core = ["py313", "test-core", "test-unit-task"]
test-gpu = ["py312", "test-core", "test", "test-gpu"]
docs = ["py311", "example", "doc"]
test-gpu = ["py312", "test-core", "optional", "test-gpu"]
docs = ["py311", "optional", "doc"]
build = ["py311", "build"]
lint = ["py311", "lint"]
dev = ["py312", "optional", "test-core", "test-example", "test-unit-task", "test-ui", "lint"]

[dependencies]
nomkl = "*"
Expand Down Expand Up @@ -57,13 +58,17 @@ bokeh_sampledata = "*"
python = "3.13.*"
bokeh_sampledata = "*"

[feature.example.dependencies]
[feature.optional.dependencies]
cftime = "*"
contourpy = "*"
dask-core = "*"
dask-expr = "*"
datashader = ">=0.11.1"
ffmpeg = "*"
ibis-sqlite = "*"
ipython = ">=5.4.0"
matplotlib-base = ">=3"
nbconvert = "*"
netcdf4 = "*"
networkx = "*"
notebook = "*"
Expand All @@ -72,10 +77,16 @@ plotly = ">=4.0"
pooch = "*"
pyarrow = "*"
scikit-image = "*"
scipy = "*"
scipy = ">=1.10" # Python 3.9 + Windows downloads 1.9
selenium = "*"
shapely = "*"
spatialpandas = "*"
streamz = ">=0.5.0"
xarray = ">=0.10.4"
xyzservices = "*"

[feature.optional.target.unix.dependencies]
tsdownsample = "*" # currently not available on Windows

# =============================================
# =================== TESTS ===================
Expand All @@ -89,32 +100,9 @@ pytest-github-actions-annotate-failures = "*"
pytest-rerunfailures = "*"
pytest-xdist = "*"

[feature.test-unit-task.tasks] # So it is not showing up in the test-ui environment
[feature.test-unit-task.tasks] # So it is not showing up in the test-gpu + test-ui environment
test-unit = 'pytest holoviews/tests -n logical --dist loadgroup'

[feature.test.dependencies]
cftime = "*"
contourpy = "*"
dask-core = "*"
dask-expr = "*"
datashader = ">=0.11.1"
ffmpeg = "*"
ibis-sqlite = "*"
nbconvert = "*"
matplotlib-base = ">=3"
networkx = "*"
plotly = ">=4.0"
pillow = "*"
scipy = ">=1.10" # Python 3.9 + Windows downloads 1.9
selenium = "*"
shapely = "*"
spatialpandas = "*"
xarray = ">=0.10.4"
xyzservices = "*"

[feature.test.target.unix.dependencies]
tsdownsample = "*" # currently not available on Windows

[feature.test-example.tasks]
test-example = { cmd = 'pytest -n logical --dist loadscope --nbval-lax examples', env = { DASK_DATAFRAME__QUERY_PLANNING = "False" } }

Expand Down

0 comments on commit 9aff825

Please sign in to comment.