Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.1.1"
current_version = "0.1.2"
commit = true
allow_dirty = false
commit_args = "--no-verify"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "mach-beamform"
version = "0.1.1" # Update via bump-my-version, not manually
version = "0.1.2" # Update via bump-my-version, not manually
description = "Ultrafast GPU-accelerated beamforming kernel for ultrasound imaging"
authors = [
{ name = "Charles Guan" },
Expand Down
2 changes: 1 addition & 1 deletion src/mach/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
__version__ = version("mach")
except PackageNotFoundError:
# Update via bump-my-version, not manually
__version__ = "0.1.1"
__version__ = "0.1.2"
Comment on lines 11 to +14
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Wrong dist version lookup 🐞 Bug ≡ Correctness

src/mach/__init__.py calls importlib.metadata.version("mach"), but the distribution name declared in
pyproject.toml is "mach-beamform". In normal installs this will raise PackageNotFoundError and
always use the hardcoded fallback __version__, making metadata-based version reporting unreliable.
Agent Prompt
## Issue description
`src/mach/__init__.py` tries to read the installed package version via `importlib.metadata.version("mach")`, but the distribution name configured for packaging is `mach-beamform`. This mismatch makes the metadata lookup fail and forces the code to always use the hardcoded fallback version.

## Issue Context
- Module name (`mach`) and distribution/project name (`mach-beamform`) can differ; `importlib.metadata.version()` expects the distribution name.

## Fix Focus Areas
- src/mach/__init__.py[11-14]
- pyproject.toml[5-8]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


# Import main modules to make them available as mach.module_name
from . import geometry, kernel, wavefront
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading