Open pgarrison opened 5 days ago
Resolving this may require resolving #424 first
Good idea. I think we can just make that switch, I don't think we're relying on any recent monai changes. However moving forward, I think this arose because pdm prefers the weekly release (because it's more recent?). I see the --pre
flag in pdm to allow prereleases but I don't think we have that enabled. Do you know if there's a way to filter package to just patches/minor versions?
Background
Currently
cyto-dl
depends onmonai-weekly>=1.2.dev2308
(Feb 2023) viapyproject.toml
andmonai-weekly==1.4.dev2411
(March 2024) viarequirements/linux/requirements.txt
.monai-weekly
is the unstable release channel formonai
.monai
includes pre-releases and stable releases. The latest stable release is version1.3.2
(June 2024), and the latest pre-release is1.4.0.rc7
(Sept 2024).Issue
A project like
cyto-dl
might want to usemonai-weekly
to get access to some brand new feature that has not yet made it into a stable release. However, using the unstablemonai-weekly
channel creates dependency management challenges. In particular, it is very challenging to work backwards from amonai-weekly
version number (e.g., 1.2.dev2308) to a commit in the monai git repo.I ran into this issue because I am trying to get code written for two different versions of cyto-dl to be compatible with each other on a single version of cyto-dl. They use different versions of monai-weekly, but it's hard to tell what changed between those versions of
monai-weekly
. Ifcyto-dl
used the stable release channel, it would be easier to comparemonai
releases (both via release notes and git history). Secondarily,cyto-dl
users would be less likely to use unsupported features ofmonai
.Resolution
I see two good options for moving from
monai-weekly
tomonai
.pyproject.toml
is correct and any version since1.2.dev2308
is compatible withcyto-dl
, then we can switch tomonai>=1.3.2
.cyto-dl
has come to rely on newermonai
features (because version1.4.dev2411
is pinned), then we can switch tomonai>=1.4.0.rc7
.