Skip to content

Commit

Permalink
Merge pull request #852 from consideRatio/pr/version-info
Browse files Browse the repository at this point in the history
Add KubeSpawner.version_info
  • Loading branch information
consideRatio authored Sep 22, 2024
2 parents 7cb33ac + 49de7ea commit 8991edb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kubespawner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
# We export KubeSpawner specifically here. This simplifies import for users.
# Users can simply import kubespawner.KubeSpawner in their applications
# instead of the more verbose import kubespawner.spawner.KubeSpawner.
from ._version import __version__
from ._version import __version__, version_info
from .spawner import KubeSpawner
3 changes: 3 additions & 0 deletions kubespawner/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
# pyproject.toml, according to instructions in RELEASE.md.
#
__version__ = "6.2.1.dev"

# version_info looks like (1, 2, 3, "dev") if __version__ is 1.2.3.dev
version_info = tuple(int(p) if p.isdigit() else p for p in __version__.split("."))

0 comments on commit 8991edb

Please sign in to comment.