-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Describe the bug
When installing any of the brainglobe packages, including cellfinder, as an editable install (pip install -e .), pip and python reports the wrong package version. As you can see below, all of them are reported as version 0.1.dev....
The problem is that with multiple such packages, if you install e.g. brainglobe-workflows, it'll see that cellfinder version is too old, uninstall the editable install and install it fresh. So e.g. if you want to install multiple packages as editable it's a game of whack a mole.
The only way is to install the root e.g. workflows and then install the rest with --no-deps. But what if the dependencies between the last release and main have diverged.
To Reproduce
pip list prints:
brainglobe 1.3.1
brainglobe-atlasapi 2.0.13
brainglobe-heatmap 0.5.4
brainglobe-napari-io 0.1.dev104+gcab7fbb D:\code\brainglobe-napari-io
brainglobe-segmentation 1.2.6
brainglobe_space 0.1.dev190+gd5da919 D:\code\brainglobe-space
brainglobe-utils 0.1.dev320+g5d79c85 D:\code\brainglobe-utils
brainglobe-workflows 0.1.dev237+g3e566f6 D:\code\brainglobe-workflows
brainreg 1.0.10
brainrender 2.1.16
brainrender-napari 0.0.7
cellfinder 0.1.dev758+gd0e0c30 D:\code\cellfinder
Expected behaviour
The version reported by pip and python cellfinder.__version__ should be consistent with the actual version.
Additional context
According to pypa/setuptools-scm#273 this is expected behavior. But unless this is intentional, updating fallback_version in [tool.setuptools_scm] in pyproject.toml for each tag would solve this.