package dependency update + enabling worktrees - #21
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21 +/- ##
==========================================
+ Coverage 41.28% 42.46% +1.18%
==========================================
Files 10 10
Lines 1015 1015
==========================================
+ Hits 419 431 +12
+ Misses 596 584 -12 🚀 New features to boost your workflow:
|
…full `uv sync` failed to resolve because the `segmentation` extra listed `instanseg`, and the PyPI project of that name is a dead 0.0.2 release pinned to numpy<2, which conflicts with our numpy>=2 floor. uv resolves every extra together even when it is not selected, so the stale pin broke the base install too. The maintained InstanSeg ships as `instanseg-torch`. The sibling repo peng-lab/spatialrefinery already carries the numpy-2-compatible segmentation stack (instanseg-torch, scikit-image, openslide-python + openslide-bin, verified against zarr 3 / spatialdata 0.8 in its lockfile), so the `full` extra now depends on `spatialrefinery[segmentation]` from its git main and the `segmentation` extra is removed. spatialrefinery is not on PyPI, hence the direct reference, which also needs `tool.hatch.metadata.allow-direct-references`; the wheel is therefore not PyPI-uploadable, which is fine as phoenix installs from git. Consequences: `full` gains spatialrefinery's base dependencies (dask, geopandas, opencv-python-headless, spatialdata-io/-plot, ...) and an anndata>=0.13 floor; helpers/segmentor.py is now importable in CI and the docs env, so its import test moved to the `full` case and NucleiPatchExtractor joins the API reference. `.vscode/settings.json` and `.worktreeinclude` only carry prek formatter fixes. Verified on CPU against spatialrefinery 799472d: `uv lock`, `uv sync`, `uv sync --all-extras`, importing spatialrefinery/instanseg/openslide/skimage and phoenix.helpers.segmentor, `pytest tests` (28 passed, 4 apex skips), `uv build` + `twine check --strict`, a dry-run `phoenix[full]` install into an empty venv resolving spatialrefinery from GitHub, `prek run -a`, and `hatch check types`. The `-W` docs build fails before and after with the same 381 torch/lightning cross-reference warnings; no new warnings, tracked separately. Claude-Session: https://claude.ai/code/session_01GG873AhByfhuLZcPrMabwL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updating package dependency to python 3.12 with newer zarr > 3 and numpy > 2 support. This is important to maintain the python stack.