Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make post releases instead of dev releases (DEV-3130) #705

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ mypy = "mypy ."
unittests = "pytest test/unittests/"
e2e-tests = "pytest test/e2e/"
bump-version = """
# get current version, append ".devN" (N=no. of commits since last release), write back into pyproject.toml
# get current version, append ".postN" (N=no. of commits since last release), write back into pyproject.toml
version=$(git describe --tags --abbrev=0)
commit_cnt=$(git rev-list --count HEAD ^$version)
commit_cnt=$((commit_cnt - 1)) # N in ".devN" is zero-based
commit_cnt=$((commit_cnt - 1)) # N in ".postN" is zero-based
if [ $commit_cnt -eq -1 ]; then exit 0; fi
new_version=$(poetry version -s).dev$commit_cnt # pyproject.toml contains clean numbers, .devN isn't commited
new_version=$(poetry version -s).post$commit_cnt # pyproject.toml contains clean numbers, .postN isn't commited
poetry version $new_version # write back into pyproject.toml
"""

Expand Down