Skip to content

Commit 0d32c0c

Browse files
authored
fix: allow release to be beta (#624)
1 parent e458b59 commit 0d32c0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ def _get_plugin_version_dict() -> Dict[str, Any]:
2828

2929
def _get_package_version() -> str:
3030
parts = _get_plugin_version_dict()
31-
return f'{parts["major"]}.{parts["minor"]}.{parts["patch"]}'
31+
version = "{major}.{minor}.{patch}".format(**parts)
32+
if parts["prekind"] and parts["pre"]:
33+
version += parts["prekind"] + parts["pre"]
34+
return version
3235

3336

3437
description = "The athena adapter plugin for dbt (data build tool)"

0 commit comments

Comments
 (0)