This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-atr-experiments.git
The following commit(s) were added to refs/heads/main by this push:
new af36899 Restore underscores on functions in the version module
af36899 is described below
commit af368991e109ce612d46d74d74aefb3706d96413
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu Mar 6 00:13:38 2025 +0200
Restore underscores on functions in the version module
---
atr/version.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/atr/version.py b/atr/version.py
index b4c6ab7..9e1d846 100644
--- a/atr/version.py
+++ b/atr/version.py
@@ -18,7 +18,7 @@
import os
-def get_development_version() -> tuple[str, str] | None:
+def _get_development_version() -> tuple[str, str] | None:
"""Returns the version when within a development environment."""
try:
@@ -54,7 +54,7 @@ def get_development_version() -> tuple[str, str] | None:
return None
-def get_version_from_env() -> tuple[str, str | None]:
+def _get_version_from_env() -> tuple[str, str | None]:
"""Returns the version from an environment variable."""
# Use the commit where dunamai was added by default
@@ -65,4 +65,4 @@ def get_version_from_env() -> tuple[str, str | None]:
# Try to determine the version from a development environment first.
# If this fails, try to get it from environment variables that are set when
building a docker image.
# We don't use __version__ and __commit__ as these are not reserved words in
Python
-version, commit = get_development_version() or get_version_from_env()
+version, commit = _get_development_version() or _get_version_from_env()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]