Housekeeping: optional Beam, CI retry, version cleanup#91
Merged
CalNightingale merged 4 commits intomainfrom Feb 17, 2026
Merged
Housekeeping: optional Beam, CI retry, version cleanup#91CalNightingale merged 4 commits intomainfrom
CalNightingale merged 4 commits intomainfrom
Conversation
apache-beam[gcp] pulls in 18+ transitive dependencies that are irrelevant for users who only need to read/write cloud-optimized DICOM outside of Beam pipelines. Move it to an optional extra so `pip install cloud-optimized-dicom` stays lightweight, while `pip install cloud-optimized-dicom[beam]` enables Beam metrics as before. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1dd70f6 to
abeee62
Compare
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
abeee62 to
b200f2b
Compare
Version is now read from pyproject.toml at runtime instead of being duplicated as a hardcoded string in __init__.py. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
apache-beamoptional: Moveapache-beam[gcp]from core dependencies to a[beam]optional extra, reducing install footprint by 18+ transitive packages for users who don't need Beam pipelines. Add_NoOpCounterfallback inmetrics.pyso metric counters silently no-op when Beam is not installed.__version__in__init__.pywithimportlib.metadata.version()so onlypyproject.tomlneeds updating on version bumps.pip install cloud-optimized-dicom[beam])Motivation (internal to gradient)
As we transition away from dataflow towards cloud batch, this will make our docker images lighter once we remove beam imports
Test plan
pip install -e ".[dev]")from cloud_optimized_dicom.metrics import ...works without Beam (simulated via mocked import block)__version__reads correctly frompyproject.tomlviaimportlib.metadata🤖 Generated with Claude Code