Make development version strings PEP 440 compliant #366

Merged
fnux merged 2 commits from :pep-440-fix into master 2024-05-01 12:11:08 +00:00
1 changed files with 2 additions and 1 deletions

View File

@ -534,7 +534,8 @@ eof
;;
version)
printf "VERSION = \"%s\"\n" "$(git describe)" > cdist/version.py
target_version="$(git describe | sed 's/-/.dev/; s/-/+/g')"
printf "VERSION = \"%s\"\n" "${target_version}" > cdist/version.py
;;
target-version)