Skip to content

Simplify python environment setup #310

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

Merged
merged 8 commits into from
Feb 21, 2025
Merged

Conversation

scottyhq
Copy link
Contributor

@scottyhq scottyhq commented Feb 21, 2025

Closes #263, #247, #308, #309

  • remove setup.cfg (move to pyproject.toml)
  • remove conda subfolder (docs all in CONTRIBUTING.md)
  • add recommendation of using pixi for environment management (But keeps .binder/environment.yml in case people want to keep using conda/mamba)
  • use pixi instead of conda-lock for multi-platform environment locks
  • use pixi instead of setupminiconda in CI
  • point to specific Pangeo Docker images for past workshops (scipy) in codespaces config

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

github-actions bot commented Feb 21, 2025

🎊 PR Preview ec7b056 has been successfully built and deployed to https://xarray-contrib-xarray-tutorial-preview-pr-310.surge.sh

🕐 Build time: 0.009s

🤖 By surge-preview

@scottyhq
Copy link
Contributor Author

scottyhq commented Feb 21, 2025

https://tutorial.xarray.dev/intermediate/remote_data/cmip6-cloud.html#reading-from-the-remote-zarr-storage

intermediate/remote_data/cmip6-cloud.err.log

ds = xr.open_zarr(store=store, consolidated=True)
File ~/GitHub/xarray/xarray-tutorial/.pixi/envs/default/lib/python3.12/site-packages/zarr/storage/_common.py:316, in make_store_path(store_like, path, mode, storage_options)
    314     else:
    315         msg = f"Unsupported type for store_like: '{type(store_like).__name__}'"  # type: ignore[unreachable]
--> 316         raise TypeError(msg)
    318     result = await StorePath.open(store, path=path_normalized, mode=mode)
    320 if storage_options and not used_storage_options:

TypeError: Unsupported type for store_like: 'FSMap'

issue with zarr v2 -> zarr v3 I think.... pydata/xarray#9957

@scottyhq
Copy link
Contributor Author

Still some broken links, but I'm going to go ahead and merge this in as it greatly simplifies getting things running locally across different platforms.

@scottyhq scottyhq merged commit 3e5d4ab into xarray-contrib:main Feb 21, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependabot and precommit-bot do not get along
1 participant