Alter PEP440 handling to support both sem and cal

This commit is contained in:
Phil Jay
2023-04-27 08:31:46 +10:00
parent bb0e075f8b
commit f81c317cbd
5 changed files with 46 additions and 9 deletions

View File

@@ -75,7 +75,7 @@ fi
# add pre-release info to version if not the default branch
if [[ "${current_ref}" != "refs/heads/${default_branch}" ]] ; then
pre_release="pre.${git_commit}"
if [[ "${scheme}" == 'pep440' ]] ; then
if [[ "${pep440:-}" == 'true' ]] ; then
new_version="${new_version}+${pre_release}"
else
new_version="${new_version}-${pre_release}"