Skip to content

Commit

Permalink
Workaround for .dev vs rc version ordering in conda (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp authored Nov 4, 2024
1 parent cf24e73 commit 5d870ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build_installers.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ def _version():
# and git hash; so we discard the date
pre, post = version.split("+", 1)
version = f"{pre}+{post.split('.')[0]}"
return version
if ".dev" in version and "rc" not in version:
# workaround for https://github.com/conda/conda/issues/12568
version = version.replace(".dev", "dev")
return version
else:
# get latest published on conda-forge
Expand Down

0 comments on commit 5d870ec

Please sign in to comment.